/* --- Slaidide baasotsad ja sujuvus --- */
#gallery-section .swiper-container,
#gallery-section .swiper {
    position: relative;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 78px;
}

#gallery-section .swiper-wrapper {
    align-items: center;
}

/* OTSE SINU KLASS: SWIPER-WRAPPER PADDING (24px ehk 1.5rem) */
#gallery-section .breakdance-swiper-wrapper {
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

#gallery-section .swiper-slide {
    transform: scale(0.71);
    transform-origin: center center !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Swipe nõksu ja tagasihüppe eemaldamine --- */
#gallery-section .swiper-touch .swiper-slide,
#gallery-section .swiper-slide-transforming {
    transition: none !important;
}

#gallery-section .swiper-slide-active {
    transform: scale(1) !important;
    z-index: 2;
}

/* OTSE SINU KLASS: EE-GALLERY-ITEM BORDER-RADIUS (0.625rem) */
#gallery-section .ee-gallery-item,
#gallery-section .ee-gallery-item img,
#gallery-section .ee-gallery-item-figure {
    border-radius: 0.625rem !important;
    overflow: hidden !important;
}

#gallery-section .ee-gallery-item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* --- Alumised juhtnupud (Nooled ja konteiner) --- */
#gallery-section .swiper-button-prev,
#gallery-section .swiper-button-next {
    position: absolute;
    top: auto;
    bottom: 16px;
    left: 50%;
    right: auto;
    margin: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0f0f10;
    transition: background 0.2s ease, opacity 0.2s ease;
}

#gallery-section .swiper-button-prev {
    transform: translateX(-72px);
}

#gallery-section .swiper-button-next {
    transform: translateX(28px);
    background: #ececec;
}

#gallery-section .swiper-button-next:hover {
    background: #e0e0e0;
}

/* --- Ikoonide puhastamine ja SVG nooled --- */
#gallery-section .swiper-button-prev::after,
#gallery-section .swiper-button-next::after,
#gallery-section .swiper-button-prev svg,
#gallery-section .swiper-button-next svg {
    display: none !important;
}

#gallery-section .swiper-button-prev::before,
#gallery-section .swiper-button-next::before {
    content: "";
    width: 23px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg width='23' height='8' viewBox='0 0 23 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.146566 3.32858C-0.0486946 3.52384 -0.0486946 3.84042 0.146566 4.03568L3.32855 7.21766C3.52381 7.41293 3.84039 7.41293 4.03565 7.21766C4.23092 7.0224 4.23092 6.70582 4.03565 6.51056L1.20723 3.68213L4.03565 0.853703C4.23092 0.658441 4.23092 0.341859 4.03565 0.146597C3.84039 -0.0486655 3.52381 -0.0486655 3.32855 0.146597L0.146566 3.32858ZM22.657 3.68213L22.657 3.18213L0.50012 3.18213L0.50012 3.68213L0.50012 4.18213L22.657 4.18213L22.657 3.68213Z' fill='%230F0F10'/%3E%3C/svg%3E") center / contain no-repeat;
}

#gallery-section .swiper-button-next::before {
    transform: scaleX(-1);
}

#gallery-section .swiper-button-disabled {
    opacity: 0.35;
}

/* --- Lehenumber (Fraction) --- */
#gallery-section .swiper-pagination-fraction {
    position: absolute;
    left: 50%;
    bottom: 29px;
    transform: translateX(-50%);
    width: auto;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: #6b6b6b;
    white-space: nowrap !important;
}

#gallery-section .swiper-pagination-current {
    color: #0f0f10;
}

/* --- Mobiilivaade (Ekraanid alla 900px) --- */
@media (max-width: 900px) {
    #gallery-section .swiper-slide {
        transform: scale(0.82);
    }
}