/* Слайдер изображений — фронт */
.ts-image-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
    box-sizing: border-box;
}
.ts-image-slider__nav {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    gap: 8px;
}
.ts-image-slider__btn,
.ts-image-slider .swiper-button-prev,
.ts-image-slider .swiper-button-next {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    color: #237758 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    box-sizing: border-box !important;
}
.ts-image-slider__btn:hover,
.ts-image-slider .swiper-button-prev:hover,
.ts-image-slider .swiper-button-next:hover {
    background: #f8f8f8 !important;
    border-color: #237758 !important;
}
.ts-image-slider__btn::after,
.ts-image-slider .swiper-button-prev::after,
.ts-image-slider .swiper-button-next::after {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #237758 !important;
}
.ts-image-slider__swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 0;
}
.ts-image-slider__swiper .swiper-wrapper {
    box-sizing: border-box;
}
.ts-image-slider__swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}
.ts-image-slider__cell {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #e0e0e0;
}
.ts-image-slider__cell img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ts-image-slider__pagination-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 32px;
}
.ts-image-slider__pagination-wrap .swiper-pagination {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
}
.ts-image-slider__pagination-wrap .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.ts-image-slider__pagination-wrap .swiper-pagination-bullet-active {
    background: #237758;
}

/* Клик по слайду — курсор */
.ts-image-slider__cell {
    cursor: pointer;
}

/* Лайтбокс: фото на весь экран */
.ts-image-slider-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0.25s;
}
.ts-image-slider-lightbox.ts-image-slider-lightbox--open {
    visibility: visible;
    opacity: 1;
}
.ts-image-slider-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}
.ts-image-slider-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ts-image-slider-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.ts-image-slider-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}
.ts-image-slider-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.35);
}
