/* =========================
   SWIPER WRAPPER
========================= */
.fms-swiper {
    padding: 20px;
}

/* =========================
   THUMBNAILS (FIXED SIZE)
========================= */
.fms-item {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.fms-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.fms-item:hover img {
    transform: scale(1.05);
}

/* PLAY BUTTON */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px 14px;
    border-radius: 50%;
    z-index: 2;
}

/* =========================
   LIGHTBOX FIX (CRITICAL)
========================= */

/* IMPORTANT: force override everything */
.fms-lightbox {
    display: none !important;   /* FIX: prevents auto flex override */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 999999;

    /* we enable flex ONLY when active via JS */
    align-items: center;
    justify-content: center;
}

/* when visible */
.fms-lightbox.active {
    display: flex !important;
}

/* CENTER CONTAINER */
.fms-content {
    width: 80vw;
    max-width: 1000px;
    height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* IFRAME FIX (MOST IMPORTANT PART) */
.fms-content iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* CLOSE BUTTON */
.fms-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    z-index: 1000000;
}

/* =========================
   SWIPER CONTROLS
========================= */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: #000;
    opacity: 1;
}

/* =========================
   MOBILE FIX
========================= */
@media (max-width: 768px) {

    .fms-item {
        height: 180px;
    }

    .fms-content {
        width: 95vw;
        height: 55vh;
    }
}