/* Запрещаем выделение текста и изображений в слайдере */
.swiper-container,
.swiper-slide,
.swiper__button,
.media-trigger {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.swiper-slide img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.media-trigger {
    pointer-events: auto;
}

@media (min-width: 1024px) {
    .swiper-container {
        width: 50%;
    }
}

.swiper-container {
    padding: 20px;
    background: white;
    box-shadow: 0 5px 25px rgb(132 50 198 / 15%);
    border-radius: 9px;
    position: relative;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper {
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.mySwiper2 {
    height: 80%;
    width: 100%;
    position: relative;
}

.mySwiper {
    height: 20%;
    box-sizing: border-box;
    position: relative;
    margin: 0;
}

.mySwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #7651e6;
}

.swiper-wrapper {
    position: relative;
}

.swiper__button-wrap {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.mySwiper2 .swiper__button-wrap {
    padding: 0 20px;
}

.mySwiper .swiper__button-wrap {
    padding: 0 5px;
}

.swiper__button {
    background-color: #ffffff;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.swiper__button:hover {
    background-color: #7651e6;
}

.swiper__button:hover svg {
    fill: #ffffff;
}

.swiper__button svg {
    width: 20px;
    height: 20px;
    fill: #7651e6;
    transition: fill 0.3s ease;
}

.mySwiper .swiper__button {
    width: 30px;
    height: 30px;
}

.mySwiper .swiper__button svg {
    width: 16px;
    height: 16px;
}

.swiper-button-prev,
.shumb-button-prev,
.modal-prev {
    transform: rotate(180deg);
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled,
.shumb-button-next.swiper-button-disabled,
.shumb-button-prev.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mySwiper2 .swiper__button {
        width: 30px;
        height: 30px;
    }

    .mySwiper2 .swiper__button svg {
        width: 16px;
        height: 16px;
    }

    .mySwiper .swiper__button {
        width: 24px;
        height: 24px;
    }

    .mySwiper .swiper__button svg {
        width: 12px;
        height: 12px;
    }
}

.swiper-slide.swiper-slide__cursor {
    cursor: zoom-in;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background-color 0.3s ease;
}
.play-button-overlay svg {
    width: 30px;
    height: 30px;
    color: white;
}

.play-button-overlay.mini {
    width: 30px;
    height: 30px;
    left: 50%;
}

.play-button-overlay.mini svg {
    width: 15px;
    height: 15px;
}

.media-trigger {
    position: relative;
    width: 100%;
    height: 100%;
}
.mySwiper2 .swiper-slide {
    pointer-events: none;
    z-index: 0;
    visibility: hidden;
}

.mySwiper2 .swiper-slide-active {
    pointer-events: auto;
    z-index: 1;
    visibility: visible;
}

.media-trigger {
    pointer-events: auto !important;
    cursor: pointer;
}
.modal-swiper .play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.modal-swiper .swiper-slide.is-playing .play-button-overlay {
    opacity: 0;
    visibility: hidden;
}

.modal-video::-webkit-media-controls {
    z-index: 11;
}
