﻿/* =========================================================
GALLERY PAGE
========================================================= */

.gallery-hero {
    min-height: 410px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: #ffffff;
}

.gallery-hero-content {
    max-width: 760px;
    padding: 75px 0;
}

.gallery-hero .section-eyebrow {
    color: #bfdbfe;
}

.gallery-hero h1 {
    margin: 0 0 22px;
    font-size: clamp(2.5rem, 5vw, 4.1rem);
    line-height: 1.08;
    font-weight: 800;
}

.gallery-hero p {
    max-width: 650px;
    margin: 0;
    color: #dbeafe;
    font-size: 1.08rem;
    line-height: 1.8;
}

/* GALLERY */

.gallery-section {
    padding: 100px 0;
    background: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 18px;
    background: #f1f5f9;
}

.gallery-large {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient( 135deg, #dbeafe, #eff6ff );
    color: #2563eb;
    transition: .3s ease;
}

    .gallery-placeholder i {
        font-size: 3rem;
    }

    .gallery-placeholder span {
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: .3px;
    }

.gallery-card:hover .gallery-placeholder {
    transform: scale(1.03);
}

.gallery-card:nth-child(2) .gallery-placeholder {
    background: linear-gradient( 135deg, #ecfeff, #cffafe );
    color: #0891b2;
}

.gallery-card:nth-child(3) .gallery-placeholder {
    background: linear-gradient( 135deg, #f0fdf4, #dcfce7 );
    color: #16a34a;
}

.gallery-card:nth-child(4) .gallery-placeholder {
    background: linear-gradient( 135deg, #fefce8, #fef9c3 );
    color: #ca8a04;
}

.gallery-card:nth-child(5) .gallery-placeholder {
    background: linear-gradient( 135deg, #fdf4ff, #fae8ff );
    color: #a21caf;
}

.gallery-card:nth-child(6) .gallery-placeholder {
    background: linear-gradient( 135deg, #fff7ed, #ffedd5 );
    color: #ea580c;
}

/* CTA */

.gallery-cta {
    padding: 100px 0;
    background: #f8fafc;
}

.gallery-cta-content {
    max-width: 750px;
    margin: auto;
    text-align: center;
}

.gallery-cta .section-eyebrow {
    color: #2563eb;
}

.gallery-cta h2 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.gallery-cta p {
    margin: 0 auto;
    max-width: 650px;
    color: #64748b;
    line-height: 1.8;
}

.gallery-cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.gallery-primary-button,
.gallery-secondary-button {
    min-height: 50px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 800;
}

.gallery-primary-button {
    background: #2563eb;
    color: #ffffff;
}

    .gallery-primary-button:hover {
        background: #1d4ed8;
        color: #ffffff;
    }

.gallery-secondary-button {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

    .gallery-secondary-button:hover {
        border-color: #2563eb;
        color: #2563eb;
    }

.gallery-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border-radius: 18px;
    background: #f1f5f9;
}

    .gallery-card img {
        width: 100%;
        height: 100%;
        min-height: 250px;
        display: block;
        object-fit: cover;
        transition: transform .4s ease;
    }

    .gallery-card:hover img {
        transform: scale(1.05);
    }

.gallery-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 35px 20px 20px;
    background: linear-gradient( transparent, rgba(15, 23, 42, .9) );
    color: #fff;
}

    .gallery-overlay h3 {
        margin: 0 0 4px;
        font-size: 1.1rem;
        font-weight: 800;
    }

    .gallery-overlay span {
        font-size: .8rem;
        opacity: .85;
    }

.gallery-loading,
.gallery-empty {
    padding: 70px 20px;
    text-align: center;
    color: #64748b;
}

    .gallery-loading i,
    .gallery-empty i {
        display: block;
        margin-bottom: 15px;
        font-size: 3rem;
        color: #2563eb;
    }

    .gallery-empty h3 {
        margin-bottom: 10px;
        color: #0f172a;
    }

    .gallery-empty p {
        max-width: 500px;
        margin: auto;
        line-height: 1.7;
    }

/* RESPONSIVE */

@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-large {
        grid-row: span 1;
    }

    .gallery-wide {
        grid-column: span 2;
    }

}

@media (max-width: 600px) {

    .gallery-section,
    .gallery-cta {
        padding: 70px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-large,
    .gallery-wide {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
