/* Wrapper for Full Screen */
.video-wall-wrapper-69887 {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #111;
    min-height: 100vh;
    padding-top: 20px;
    box-sizing: border-box;
}

/* Hide Default Page Titles */
header .entry-title,
h1.entry-title,
h1.page-title,
.elementor-page-title,
h1.elementor-heading-title {
    display: none !important;
}

/* Filter Bar - Sticky */
.video-wall-filter-69887 {
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-sizing: border-box;
}

body.admin-bar .video-wall-filter-69887 {
    top: 32px;
}

.filter-btn-69887 {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.filter-btn-69887:hover,
.filter-btn-69887.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.filter-sep-69887 {
    color: rgba(255,255,255,0.3);
    font-size: 14px;
}

.district-dropdown-69887 {
    position: relative;
    display: inline-block;
}

.district-menu-69887 {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    min-width: 180px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 8px;
    z-index: 100;
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 300px;
    overflow-y: auto;
}

.district-dropdown-69887:hover .district-menu-69887 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.district-menu-69887 .filter-btn-69887 {
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
}

/* Container */
.video-wall-container-69887 {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* --- GRID LAYOUT --- */
.video-wall-grid-69887 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns Desktop */
    gap: 15px;
    align-items: start;
}

@media (max-width: 1366px) {
    .video-wall-grid-69887 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .video-wall-grid-69887 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-wall-grid-69887 {
        grid-template-columns: 1fr;
    }
}


/* Grid Item */
.video-wall-item-69887 {
    position: relative;
    margin-bottom: 0; 
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wall-item-69887.hidden-item {
    display: none !important;
}

.video-wall-item-69887:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.3);
}


/* Preview Wrapper */
.video-preview-wrapper-69887 {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    aspect-ratio: 9 / 14; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-thumb-69887 {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-wall-item-69887:hover .video-thumb-69887 {
    transform: scale(1.05);
}

/* Dynamically injected video container */
.video-embed-dynamic-69887 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000;
}

.video-embed-dynamic-69887 video,
.video-embed-dynamic-69887 iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay-gradient-69887 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.video-info-overlay-69887 {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    z-index: 3;
    pointer-events: none;
    text-align: left;
}

.video-title-69887 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    line-height: 1.3;
}

.play-hint-69887 {
    font-size: 12px;
    color: #00ffc8;
    text-transform: uppercase;
    font-weight: 700;
}

/* === LIGHTBOX === */
.video-wall-lightbox-69887 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-wall-lightbox-69887.is-open-69887 {
    opacity: 1;
    pointer-events: auto;
}

/* Container for Popup Content */
.lightbox-wrapper-69887 {
    width: 95%;
    height: 90%;
    max-width: 1600px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden; /* CRITICAL: Contains all children */
    display: flex;
    flex-direction: row;
    position: relative; /* Ensure z-index works inside */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
    .lightbox-wrapper-69887 {
        flex-direction: column;
        height: 95%; 
        width: 95%;
    }
}

.popup-content-inner-69887 {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent parent scroll */
}

@media (max-width: 900px) {
    .popup-content-inner-69887 {
        flex-direction: column;
    }
}

/* Video Column (Left/Top) */
.popup-video-col-69887 {
    flex: 0 0 60%; /* Fixed width */
    max-width: 60%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden; 
    z-index: 2; /* Sit above if needed */
}

@media (max-width: 900px) {
    .popup-video-col-69887 {
        flex: 0 0 40%; /* Height ratio on mobile */
        max-width: 100%;
        width: 100%;
    }
}

.popup-video-col-69887 iframe, 
.popup-video-col-69887 video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text Column (Right/Bottom) */
.popup-text-col-69887 {
    flex: 1 1 0; /* Grow, Shrink, Start at 0 width (Critical for overflow) */
    min-width: 0; /* Flexbox overflow fix */
    width: 0; /* Force it to calculate from 0 */
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    box-sizing: border-box;
    z-index: 1;
    position: relative;
}

@media (max-width: 900px) {
    .popup-text-col-69887 {
        flex: 1; /* Take remaining height */
        width: 100%; /* Reset width for vertical layout */
        max-width: 100%;
        padding: 20px;
    }
}

.popup-text-col-69887 h2 {
    margin-top: 0;
    font-size: 28px;
    margin-bottom: 20px;
    color: #111;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Article Body Content Constraints */
.article-body-69887 {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    width: 100%;
    max-width: 100%;
}

/* Aggressive Reset for Inner Content */
.article-body-69887 * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.article-body-69887 img,
.article-body-69887 figure,
.article-body-69887 video,
.article-body-69887 iframe,
.article-body-69887 embed,
.article-body-69887 object,
.article-body-69887 table {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Prevent tables from breaking layout */
.article-body-69887 table {
    display: block;
    overflow-x: auto;
    width: 100% !important;
}

.lightbox-close-btn-69887 {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    border: 2px solid #fff;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.lightbox-close-btn-69887:hover {
    background: rgba(255,255,255,0.4);
}
