.foton-slider-wrapper {
    position: relative;
    width: 100%;
}

.foton-slider-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.foton-slider-container .swiper-wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: visible;
    /* Ensure slides are not clipped while transitioning */
}

.foton-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    box-sizing: border-box;
    height: 100% !important;
    width: 100%;
    flex-shrink: 0;
}





.foton-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%);
    }
}

.foton-slide-bg img,
.foton-slide-bg video {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.foton-slide-content {
    position: absolute;
    z-index: 2;
    padding: 0 20px;
    max-width: 550px;
    width: 100%;
    display: flex;
    flex-direction: column;

    @media (min-width: 480px) {
        padding: 40px 40px 40px 115px;
    }
}

/* Caption Positions */
.foton-caption-top-left {
    top: 0;
    left: 0;
}

.foton-caption-top-center {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    align-items: center;
}

.foton-caption-top-right {
    top: 0;
    right: 0;
    text-align: right;
    align-items: flex-end;
}

.foton-caption-middle-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.foton-caption-middle-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    align-items: center;
}

.foton-caption-middle-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    text-align: right;
    align-items: flex-end;
}

.foton-caption-bottom-left {
    bottom: 120px;
    left: 20px;

    @media (min-width: 800px) {
        left: 40px;
    }
}

.foton-caption-bottom-center {
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    align-items: center;

    @media (min-width: 480px) {
        bottom: 120px;
    }
}

.foton-caption-bottom-right {
    bottom: 120px;
    right: 40px;
    text-align: right;
    align-items: flex-end;
}

.foton-slide-title {
    margin-bottom: 15px;
    margin-top: 0;
}

.foton-slide-description {
    margin-bottom: 25px;
    margin-top: 0;
}

.foton-slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.foton-button {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


.elementor-align-icon-left {
    margin-right: 10px;
}

.elementor-align-icon-right {
    margin-left: 10px;
}

/* Navigation */

.foton-slider-nav-wrapper {
    position: absolute;
    z-index: 10;
    display: flex;
    gap: 20px;
}

.foton-nav-bottom-right {
    bottom: 40px;
    right: 20px;

    @media (min-width: 800px) {
        right: 40px;
    }
}

.foton-nav-bottom-left {
    bottom: 40px;
    left: 40px;
}

.foton-nav-middle {
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    pointer-events: none;
}

.foton-slider-nav {
    position: static;
    cursor: pointer;
    font-size: 24px;
    width: auto;
    height: auto;
    margin-top: 0;
    pointer-events: auto;
}

.foton-slider-nav::after {
    display: none;
    /* Hide default Swiper icons */
}

/* Pagination */
.foton-slider-pagination-wrapper {
    position: absolute;
    z-index: 10;
}

.foton-pag-bottom-left {
    bottom: 60px;
    left: 20px;

    @media (min-width: 800px) {
        left: 80px;
    }
}

.foton-pag-bottom-right {
    bottom: 60px;
    right: 80px;
}

.foton-slider-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
}


.foton-pag-line {
    display: inline-block;
    width: 65px;
    height: 1px;
    background-color: #000;
}

/* Transitions and hidden states */
.foton-slider-nav.swiper-button-disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Elementor Responsive Control Overrides */

@media (max-width: 1024px) {

    /* Captions */
    .foton-caption-tablet-top-left {
        top: 0 !important;
        left: 0 !important;
        bottom: auto !important;
        right: auto !important;
        transform: none !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .foton-caption-tablet-top-center {
        top: 0 !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        align-items: center !important;
    }

    .foton-caption-tablet-top-right {
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        text-align: right !important;
        align-items: flex-end !important;
    }

    .foton-caption-tablet-middle-left {
        top: 50% !important;
        left: 0 !important;
        bottom: auto !important;
        right: auto !important;
        transform: translateY(-50%) !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .foton-caption-tablet-middle-center {
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        align-items: center !important;
    }

    .foton-caption-tablet-middle-right {
        top: 50% !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        transform: translateY(-50%) !important;
        text-align: right !important;
        align-items: flex-end !important;
    }

    .foton-caption-tablet-bottom-left {
        bottom: 120px !important;
        left: 20px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .foton-caption-tablet-bottom-center {
        bottom: 120px !important;
        left: 50% !important;
        top: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        align-items: center !important;
    }

    .foton-caption-tablet-bottom-right {
        bottom: 120px !important;
        right: 40px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        text-align: right !important;
        align-items: flex-end !important;
    }

    /* Navigation */
    .foton-nav-tablet-bottom-right {
        bottom: 40px !important;
        right: 40px !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        transform: none !important;
    }

    .foton-nav-tablet-bottom-left {
        bottom: 40px !important;
        left: 40px !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
        transform: none !important;
    }

    .foton-nav-tablet-middle {
        top: 50% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
    }

    /* Pagination */
    .foton-pag-tablet-bottom-left {
        bottom: 40px !important;
        left: 40px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .foton-pag-tablet-bottom-center {
        bottom: 40px !important;
        left: 50% !important;
        top: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .foton-pag-tablet-bottom-right {
        bottom: 40px !important;
        right: 40px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .foton-pag-tablet-top-left {
        top: 40px !important;
        left: 40px !important;
        bottom: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .foton-pag-tablet-top-center {
        top: 40px !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .foton-pag-tablet-top-right {
        top: 40px !important;
        right: 40px !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }
}

@media (max-width: 767px) {

    /* Captions */
    .foton-caption-mobile-top-left {
        top: 0 !important;
        left: 0 !important;
        bottom: auto !important;
        right: auto !important;
        transform: none !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .foton-caption-mobile-top-center {
        top: 0 !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        align-items: center !important;
    }

    .foton-caption-mobile-top-right {
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        text-align: right !important;
        align-items: flex-end !important;
    }

    .foton-caption-mobile-middle-left {
        top: 50% !important;
        left: 0 !important;
        bottom: auto !important;
        right: auto !important;
        transform: translateY(-50%) !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .foton-caption-mobile-middle-center {
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        align-items: center !important;
    }

    .foton-caption-mobile-middle-right {
        top: 50% !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        transform: translateY(-50%) !important;
        text-align: right !important;
        align-items: flex-end !important;
    }

    .foton-caption-mobile-bottom-left {
        bottom: 20px !important;
        left: 20px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        text-align: left !important;
        align-items: flex-start !important;
    }

    .foton-caption-mobile-bottom-center {
        bottom: 40px !important;
        left: 50% !important;
        top: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        align-items: center !important;
    }

    .foton-caption-mobile-bottom-right {
        bottom: 20px !important;
        right: 20px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        text-align: right !important;
        align-items: flex-end !important;
    }

    /* Navigation */
    .foton-nav-mobile-bottom-right {
        bottom: 20px !important;
        right: 20px !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        transform: none !important;
    }

    .foton-nav-mobile-bottom-left {
        bottom: 20px !important;
        left: 20px !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
        transform: none !important;
    }

    .foton-nav-mobile-middle {
        top: 50% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
    }

    /* Pagination */
    .foton-pag-mobile-bottom-left {
        bottom: 20px !important;
        left: 20px !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .foton-pag-mobile-bottom-center {
        bottom: 20px !important;
        left: 50% !important;
        top: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .foton-pag-mobile-bottom-right {
        bottom: 20px !important;
        right: 20px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .foton-pag-mobile-top-left {
        top: 20px !important;
        left: 20px !important;
        bottom: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .foton-pag-mobile-top-center {
        top: 20px !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .foton-pag-mobile-top-right {
        top: 20px !important;
        right: 20px !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }
}