/* --- RESET & FONTS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: #f4f7f6; color: #333; }

/* --- HEADER DESIGN --- */
.gallery-header {
    background: linear-gradient(135deg, #1f1f1f 0%, #333 100%); /* Dark Gradient */
    color: white;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
}

.sub-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #e68a40; /* Orange Accent */
    margin-bottom: 10px;
    text-transform: uppercase;
}

.gallery-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.line-separator {
    width: 80px;
    height: 4px;
    background-color: #e68a40;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.gallery-header p {
    font-size: 1.1rem;
    color: #bbb;
    font-weight: 300;
}

/* --- GRID LAYOUT --- */
.gallery-wrapper {
    padding: 0 20px 80px;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-row {
    display: grid;
    gap: 30px;
    margin-bottom: 30px;
}

/* 2 Columns for Large Videos */
.large-grid {
    grid-template-columns: 1fr 1fr;
}

/* 3 Columns for Small Videos */
.small-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* --- VIDEO CARD DESIGN --- */
.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden; /* Keeps image inside border radius */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.video-card:hover {
    transform: translateY(-5px); /* Lifts up slightly on hover */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Aspect Ratio Wrapper */
.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Info Bar Below Video */
.video-info {
    padding: 20px;
    background-color: #fff;
    border-top: 3px solid #e68a40; /* Orange top border */
}

.video-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-info h3 i {
    color: #cc181e; /* YouTube Icon Color */
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .large-grid, .small-grid {
        grid-template-columns: 1fr; /* Stack everything on mobile */
    }
    
    .gallery-header h1 {
        font-size: 2.2rem;
    }
}