/* ===== Video Objects (рилсы) — Swiper-карусель, карточки 9:16, подпись поверх ===== */
.video-objects {
    padding-top: 0;
    padding-bottom: var(--section-space-desktop);
    background-color: var(--color-white);
}

@media (max-width: 768px) {
    .video-objects {
        padding-top: var(--section-space-mobile);
        padding-bottom: var(--section-space-mobile);
    }
}

/* Карусель */
.video-objects__carousel {
    position: relative;
}

.video-objects__swiper-wrapper {
    position: relative;
}

.video-objects__swiper {
    overflow: hidden;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: -8px;
    margin-bottom: -8px;
}

.video-objects__swiper .swiper-slide {
    height: auto;
    transition: transform 0.3s ease;
}

/* Карточка */
.video-objects__card {
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius-lg);
    overflow: hidden;
    background-color: var(--color-white);
    transition: transform var(--transition-card);
    cursor: pointer;
    height: 100%;
}

.video-objects__card:hover {
    transform: translateY(-4px);
}

.video-objects__media {
    position: relative;
    aspect-ratio: 10 / 16;
    overflow: hidden;
    background-color: #1E1F22;
}

.video-objects__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Затемнение снизу для читаемости подписи */
.video-objects__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.45) 35%,
        rgba(0, 0, 0, 0) 65%
    );
    pointer-events: none;
}

/* Подпись поверх видео, внизу */
.video-objects__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 22px;
    z-index: 2;
}

.video-objects__title {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #FFFFFF;
    margin: 0 0 4px;
}

.video-objects__desc {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Play по центру */
.video-objects__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    transition: transform var(--transition-card);
    pointer-events: none;
    z-index: 3;
}

.video-objects__card:hover .video-objects__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-objects__play svg {
    width: 22px;
    height: 22px;
}

/* ===== Модальное окно (без изменений по логике) ===== */
.video-objects__modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.video-objects__modal-wrap {
    position: relative;
    width: 100%;
    max-width: min(420px, 90vw);
}

.video-objects__modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--transition-card);
}

.video-objects__modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.video-objects__modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.video-objects__video {
    width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    background-color: #000;
    display: block;
}

.video-objects-fade-enter-active,
.video-objects-fade-leave-active {
    transition: opacity 200ms ease;
}

.video-objects-fade-enter-from,
.video-objects-fade-leave-to {
    opacity: 0;
}
