.custom-media-carousel-block .swiper-slide {
    height: auto;
}

.custom-media-carousel-block {
    overflow: hidden;
}


.custom-media-carousel-block.add-custom-border .swiper-slide {
    border: 1px solid var(--color-8);
    border-left: 0;
}


.custom-media-carousel-block  {
    padding-top: var(--size--12);
    .slide-content-top {
        position: relative;
    }

    .youtube-play-btn {
        position: absolute;
        top: calc( var(--size--24) + var(--size--40));
        left: var(--size--52);
        background: transparent;
        border: 0;
        cursor: pointer;
        z-index: 2;
    }
}

.custom-media-carousel-block .youtube-slide {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9; /* match whatever ratio your posters/videos use */
}

.custom-media-carousel-block .youtube-slide .youtube-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-media-carousel-block .youtube-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.custom-media-carousel-block .has-padding {
    padding: var(--size--24);
}



.custom-media-carousel-block .slide-content img,
.custom-media-carousel-block .slide-content video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.swiper-slide {
    will-change: transform;
}


.custom-media-carousel-block .slide-content {
    display: flex;
    flex-direction: column;
    row-gap: var(--size--30);
    color: #000;
}

.custom-media-carousel-block {
    /* Initialize the counter named 'section' */
    counter-reset: section;
}

.custom-media-carousel-block .counter-slide-num::after {
    /* Add 1 to 'section' for each slide */
    counter-increment: section;
    /* Display the number as 01, 02, etc. */
    content: counter(section, decimal-leading-zero);
}


.js-swiper-block {
    cursor: none;
    /* Optional: hide default cursor when over the swiper */
}

.cursor-follower-next {
    position: fixed;
    /* Fixed so it moves relative to viewport */
    top: 0;
    left: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* CRITICAL: so it doesn't block clicks to the slider */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 99;
    transform: translate(-50%, -50%);
    /* Center it on the cursor */

    background-color: var(--color-2);
    width: 118px;
    height: 118px;
    color: var(--color-light);
    font-size: 60px;

    svg {
        width: 88px;
    }
}

/* Ensure the standard button is hidden if you only want the floating one */
.swiper-button-next {
    display: none;
}


.opinions-page-gallery {
    .counter-slide-num,
    .custom-descr  {
        color: var(--color-2);
    }
}
.opinions-page-gallery.custom-media-carousel-block {
    counter-reset: section 3;
    
}


@media screen and (max-width: 1440px) {
    .custom-media-carousel-block .youtube-play-btn svg {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 1024px) {
    .custom-media-carousel-block .youtube-play-btn {
        top: 20px;
        left: 20px;
    }
}

@media screen and (max-width: 768px) {
    .custom-media-carousel-block .youtube-play-btn svg {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 991px) {
    .accordion-list-block .acc-link-item {
        svg {
            width: 20px;
        }
    }
}