.elementor-473 .elementor-element.elementor-element-519a9d0{--display:flex;}/* Start custom CSS for container, class: .elementor-element-519a9d0 */.wp-video-grid-container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
    background: #000;
}

.grid-row {
    display: flex;
    width: 100%;
}

.grid-column {
    display: flex;
    flex-direction: column;
}

/* Pattern 1: 66/34 split */
.pattern-sixty-forty .col-60 {
    flex: 0 0 66%;
}

.pattern-sixty-forty .col-40 {
    flex: 0 0 34%;
}

/* Pattern 2: 34/66 split */
.pattern-forty-sixty .col-40 {
    flex: 0 0 34%;
}

.pattern-forty-sixty .col-60 {
    flex: 0 0 66%;
}

/* Fallback patterns for remaining posts */
.pattern-fifty-fifty .col-50 {
    flex: 0 0 50%;
}

.pattern-full .col-full {
    flex: 0 0 100%;
}

/* Grid Items */
.grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
    flex: 1;
    background: #111;
}

.grid-item.half-height {
    flex: 0 0 50%;
}

.grid-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.grid-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* Title Overlay - CENTERED */
.title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.6) 0%, 
        rgba(0,0,0,0.7) 50%, 
        rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.title-text {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Smaller text for half-height items */
.grid-item.half-height .title-text {
    font-size: 18px;
}

/* Hover Effects */
.grid-item:hover .title-overlay {
    opacity: 1;
}

.grid-item:hover .title-text {
    transform: scale(1);
}

.grid-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.5);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    /* Create a simple mobile grid */
    .wp-video-grid-container {
        display: block;
    }
    
    /* Reset all desktop styles */
    .grid-row {
        display: block;
        width: 100%;
    }
    
    .grid-column {
        display: block;
        width: 100% !important;
        flex: none !important;
    }
    
    /* Reset all items to default */
    .grid-item {
        width: 100%;
        display: block;
        height: 25vh;
        flex: none !important;
    }
    
    .grid-item.half-height {
        flex: none !important;
    }
    
    /* Pattern 1 (66/34) on mobile: 1 large + 2 small */
    .pattern-sixty-forty .col-60 .grid-item {
        width: 100%;
        height: 25vh;
    }
    
    .pattern-sixty-forty .col-40 {
        display: flex;
        flex-direction: row;
    }
    
    .pattern-sixty-forty .col-40 .grid-item {
        width: 50%;
        height: 15vh;
    }
    
    /* Pattern 2 (34/66) on mobile: 1 large + 2 small (reversed order) */
    .pattern-forty-sixty {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .pattern-forty-sixty .col-60 .grid-item {
        width: 100%;
        height: 25vh;
    }
    
    .pattern-forty-sixty .col-40 {
        display: flex;
        flex-direction: row;
    }
    
    .pattern-forty-sixty .col-40 .grid-item {
        width: 50%;
        height: 15vh;
    }
    
    /* Pattern 50/50 for remainder */
    .pattern-fifty-fifty {
        display: flex;
        flex-direction: row;
    }
    
    .pattern-fifty-fifty .col-50 {
        width: 50% !important;
    }
    
    .pattern-fifty-fifty .col-50 .grid-item {
        width: 100%;
        height: 15vh;
    }
    
    /* Full width pattern */
    .pattern-full .col-full .grid-item {
        width: 100%;
        height: 25vh;
    }
    
    /* Ensure images fill their containers */
    .grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Adjust title text sizes */
    .title-text {
        font-size: 20px;
    }
    
    /* Smaller text for 50% width items */
    .pattern-sixty-forty .col-40 .grid-item .title-text,
    .pattern-forty-sixty .col-40 .grid-item .title-text,
    .pattern-fifty-fifty .grid-item .title-text {
        font-size: 14px;
        padding: 10px;
    }
    
    /* Remove any gaps */
    .grid-row, .grid-column {
        padding: 0;
        margin: 0;
    }
}/* End custom CSS */