/* ===== Слайдер (Swiper) ===== */
.met-slideshow {
    position: relative;
    overflow: hidden;
}

.met-slideshow .swiper-slide {
    position: relative;
}

.met-slideshow-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Обёртка <picture> должна вести себя как блочный контейнер на всю ширину слайда */
.met-slideshow-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.met-slideshow-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: initial;
    aspect-ratio: 16 / 6;
}

/* Оверлей с заголовком и произвольным текстом (description) внизу слева */
.met-slideshow-caption {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 60%;
    padding: 12px 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    z-index: 2;
}

.met-slideshow-title {
    margin: 0 0 4px;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.met-slideshow-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Пагинация / стрелки */
.met-slideshow .swiper-button-prev,
.met-slideshow .swiper-button-next {
    color: #fff;
}

.met-slideshow .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.met-slideshow .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ===== Брейкпоинты ===== */

/* Мобильные */
@media (max-width: 767.98px) {
    .met-slideshow-img {
        object-fit: cover;
        aspect-ratio: 1 / 1;
    }

    .met-slideshow-caption {
        max-width: 90%;
        padding: 8px 12px;
    }

    .met-slideshow-title {
        font-size: 1rem;
    }

    .met-slideshow-desc {
        font-size: 0.8rem;
    }

    /* Стрелки скрываем на мобильных, оставляем свайп и точки пагинации */
    .met-slideshow .swiper-button-prev,
    .met-slideshow .swiper-button-next {
        display: none;
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .met-slideshow-img {
        object-fit: cover;
        aspect-ratio: 16 / 5;
    }
}

/* Десктоп */
@media (min-width: 1200px) {
    .met-slideshow-img {
        aspect-ratio: 16 / 5;
    }
}