.gallery-hero {
    position: relative;
    overflow: hidden;
    min-height: 62vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(35, 64, 142, 0.90), rgba(237, 27, 36, 0.84)),
        linear-gradient(180deg, #23408e 0%, #ed1b24 100%);
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 30%);
}

.gallery-hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
    color: #ffffff;
}

.page-tag,
.section-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-tag {
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-hero-content h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.4rem, 4.8vw, 4.8rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.gallery-hero-content p {
    max-width: 760px;
    margin: 22px 0 0;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
}

.gallery-section {
    padding: 96px 0;
}

.intro-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fe 100%);
}

.narrow {
    max-width: 920px;
}

.section-head {
    max-width: 780px;
    margin-bottom: 46px;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-tag {
    margin-bottom: 16px;
    color: #ed1b24;
    background: rgba(237, 27, 36, 0.08);
}

.section-tag.light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.section-head h2,
.featured-copy h2,
.final-cta-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    color: #23408e;
}

.section-head p,
.featured-copy p,
.final-cta-copy p {
    margin: 18px 0 0;
    color: #667085;
}

.gallery-grid {
    display: grid;
    gap: 24px;
}

.gallery-grid-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 260px;
}

.gallery-grid-docs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid-support {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(35, 64, 142, 0.08);
    box-shadow: 0 12px 34px rgba(35, 64, 142, 0.10);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

.gallery-card.tall {
    grid-row: span 2;
}

.gallery-card.wide {
    grid-column: span 2;
}

.gallery-card.portrait {
    min-height: 420px;
}

.gallery-card.portrait img {
    object-fit: contain;
    background: #f7f9ff;
}

.featured-banner-section {
    background: #f7f9ff;
}

.featured-banner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: center;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(135deg, #23408e 0%, #ed1b24 100%);
    box-shadow: 0 18px 44px rgba(35, 64, 142, 0.14);
}

.featured-copy h2,
.featured-copy p {
    color: #ffffff;
}

.featured-image {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

.featured-image img {
    width: 100%;
    display: block;
}

.support-card {
    min-height: 260px;
}

.final-cta {
    background: linear-gradient(135deg, #ed1b24, #ff4b6d);
}

.final-cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.final-cta-copy h2,
.final-cta-copy p {
    color: #ffffff;
}

.final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.96rem;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ffffff;
    color: #ed1b24;
    box-shadow: 0 16px 40px rgba(35, 64, 142, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.10);
}

@media (max-width: 1100px) {
    .gallery-grid-main,
    .gallery-grid-docs,
    .gallery-grid-support {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-banner,
    .final-cta-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .gallery-hero {
        min-height: auto;
    }

    .gallery-hero-content {
        padding: 110px 0 72px;
    }

    .gallery-grid-main,
    .gallery-grid-docs,
    .gallery-grid-support {
        grid-template-columns: 1fr;
    }

    .gallery-grid-main {
        grid-auto-rows: auto;
    }

    .gallery-card.tall,
    .gallery-card.wide {
        grid-row: auto;
        grid-column: auto;
    }

    .gallery-card img,
    .support-card img {
        height: auto;
    }

    .gallery-card.portrait {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .gallery-section {
        padding: 72px 0;
    }

    .gallery-hero-content h1 {
        font-size: 2.35rem;
    }

    .gallery-hero-content p,
    .section-head p,
    .featured-copy p,
    .final-cta-copy p {
        font-size: 0.98rem;
    }

    .featured-banner {
        padding: 22px;
    }

    .final-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}