/* Gallery/index.php (moved from inline <style>) */

        /* --- CUSTOM VANILLA CSS --- */
        :root {
            --primary-blue: #233862;
            --accent-gold: #f39c12;
            --bg-light: #f8fafc;
            --text-dark: #334155;
            --text-muted: #64748b;
            --border-color: #e2e8f0;

        }

        body {

            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-dark);
            margin: 0;
            padding: 0;

            line-height: 1.6;

        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }
        /* --- Hero Section --- */
        .hero-section {
            background-color: #ffffff;
            padding: 80px 0 60px 0;
            border-bottom: 1px solid var(--border-color);
        }
        .hero-label {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--accent-gold);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 1.5px;
            margin-bottom: 16px;
        }

        .hero-label::before {
            content: '';
            width: 40px;
            height: 2px;
            background-color: var(--accent-gold);
        }

        .hero-title {
            font-size: 3rem;
            color: var(--primary-blue);
            margin: 0 0 16px 0;
            line-height: 1.1;
        }
        .hero-subtitle {
            font-size: 1.1rem;
            color: var(--text-muted);
            max-width: 600px;
            margin: 0;
        }

        /* --- Gallery Grid --- */
        .gallery-section {
            padding: 80px 0;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
        }

        .gallery-card {
            background: #ffffff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
            border: 1px solid var(--border-color);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .gallery-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .gallery-img-wrapper {
            width: 100%;
            height: 250px; /* Uniform height for all images */
            overflow: hidden;
            position: relative;
        }

        .gallery-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;

        }

        .gallery-card:hover .gallery-img-wrapper img {
            transform: scale(1.08);
        }

        .gallery-img-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(35, 56, 98, 0.5); /* Semi-transparent blue */
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .gallery-card:hover .gallery-img-overlay {
            opacity: 1;
        }

        .gallery-img-overlay i {
            color: #ffffff;
            font-size: 2.5rem;
        }

        /* --- Lightbox Modal --- */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.95);
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #ffffff;
            font-size: 45px;
            font-weight: 300;
            cursor: pointer;
            transition: color 0.3s;
            line-height: 1;

        }

        .lightbox-close:hover {
            color: var(--accent-gold);
        }

        .lightbox-content {
            max-width: 90%;
            max-height: 80vh;
            border-radius: 4px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);

        }

        .lightbox-caption {
            color: #ffffff;
            margin-top: 15px;
            font-size: 1.2rem;
            letter-spacing: 0.5px;
        }
        
        /* Responsive adjustments */

        @media (max-width: 768px) {

            .hero-title { font-size: 2.2rem; }

            .hero-section { padding: 50px 0 40px 0; }

            .gallery-section { padding: 40px 0; }

            .lightbox-close { top: 10px; right: 20px; font-size: 35px; }

        }
/* Gallery cards are buttons (keyboard accessible) */
button.gallery-card { display: block; width: 100%; padding: 0; font: inherit; text-align: inherit; }
.gallery-img-wrapper, .gallery-img-overlay { display: block; }
.gallery-img-overlay { display: flex; }
.gallery-section { padding-top: 40px; }
.lightbox-close { background: none; border: 0; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .gallery-img-wrapper { height: 160px; }
    .lightbox-nav { top: auto; bottom: 24px; transform: none; }
    .lightbox-content { max-width: 96%; }
}
