.gallery-slider-container {
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    /* Padding ensures arrows (at -85px) are visible inside the box */
    padding: 30px 100px;
    box-sizing: border-box;
    position: relative;
}

.gallery-slider-main-container {
    position: relative;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;

    /* FIX: Force full width and use fixed height for Desktop */
    width: 100%;
    height: 500px;
    /* Removed aspect-ratio 1/1 here to prevent width shrinking on desktop */

    margin-left: auto;
    margin-right: auto;
}

.gallery-slider-main-swiper {
    width: 100%;
    height: 100%;
}

.gallery-slider-main-swiper .swiper-wrapper {
    height: 100%;
}

.gallery-slider-main-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    margin-right: 0;
    flex-shrink: 0;
}

.gallery-slider-main-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-slider-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-slider-thumbnail-container {
    position: relative;
    margin-bottom: 10px;
    height: auto;
    max-height: 250px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    overflow: hidden;
}

.gallery-slider-thumbnail-swiper {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 5px 0;
}

.gallery-slider-thumbnail-swiper .swiper-wrapper {
    height: 100%;
    align-items: center;
}

.gallery-slider-navigation-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.gallery-slider-thumbnail-swiper .swiper-slide {
    width: auto;
    height: auto;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.gallery-slider-thumbnail-swiper .swiper-slide:hover {
    opacity: 0.8;
}

.gallery-slider-thumbnail-swiper .swiper-slide-thumb-active {
    opacity: 1;
    /* border: 3px solid #4dabf7; */
    box-shadow: none;
}

.swiper-slide {
    text-align: center;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-slider-thumbnail-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elementor-gallery-swiper-button:hover {
    background: none;
}

.elementor-gallery-swiper-button:active {
    background: none;
}

.elementor-gallery-swiper-button:focus {
    background: none;
}

/* Video & Button Styles */
.gallery-slider-video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.gallery-slider-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-slider-video-play-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-slider-video-play-button::before {
    content: '';
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

.elementor-gallery-swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: inline-flex;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.elementor-gallery-swiper-button * {
    cursor: pointer;
}

.elementor-gallery-swiper-button svg {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.elementor-gallery-swiper-button:hover svg circle {
    fill: #e0e0e0;
    stroke: #D9DBE9;
}

.elementor-gallery-swiper-button-prev {
    left: -85px;
    transform: translateY(-50%) rotate(180deg);
}

.elementor-gallery-swiper-button-next {
    right: -85px;
}

.elementor-gallery-swiper-button.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.elementor-gallery-swiper-button.swiper-button-disabled:hover svg circle {
    fill: #FCFCFC;
}

.gallery-slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    margin-top: 15px;
}

.gallery-slider-pagination .swiper-pagination {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.swiper-pagination-clickable .swiper-pagination-bullet {
    cursor: pointer;
    width: 14px;
    border-radius: 5px;
    height: 8px;
    background: #D9DBE9;
    opacity: 1;
    margin: 0;
    transition: all 0.3s ease;
}

.gallery-slider-pagination .swiper-pagination-bullet-active {
    background: #53AAA6;
    width: 22px;
}

.gallery-slider-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.gallery-slider-video-container iframe,
.gallery-slider-video-container video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.aparat-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.aparat-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .gallery-slider-container {
        /* padding: 20px 55px; */
        padding: 1rem !important;
    }

    .gallery-slider-main-container {
        margin-bottom: 10px;
        /* Restore square look for mobile */
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: 400px;
    }

    .gallery-slider-thumbnail-container {
        max-height: 120px;
        padding: 0;
        width: 100%;
    }

    .gallery-slider-thumbnail-swiper {
        overflow: hidden;
    }

    .gallery-slider-thumbnail-swiper .swiper-slide {
        width: auto;
    }

    .elementor-gallery-swiper-button svg {
        width: 35px;
        height: 35px;
    }

    .elementor-gallery-swiper-button-prev {
        left: -45px;
    }

    .elementor-gallery-swiper-button-next {
        right: -45px;
    }

    .gallery-slider-pagination {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-slider-container {
        padding: 15px 50px;
    }

    .gallery-slider-main-container {
        margin-bottom: 10px;
        /* max-height: 300px; */
        max-height: 70dvh;
    }

    .gallery-slider-thumbnail-container {
        max-height: 100px;
    }

    /* .elementor-gallery-swiper-button svg {
        width: 30px;
        height: 30px;
    }

    .elementor-gallery-swiper-button-prev {
        left: -40px;
    }

    .elementor-gallery-swiper-button-next {
        right: -40px;
    } */
    .elementor-gallery-swiper-button {
        display: none;
    }
}

@supports not (aspect-ratio: 1 / 1) {
    .gallery-slider-main-container {
        height: 0;
        padding-bottom: 100%;
    }

    .gallery-slider-main-container>* {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .gallery-slider-thumbnail-swiper .swiper-slide {
        height: 100px;
    }
}