/* Photo Gallery Hub
================================ */
.nofcc-gallery-hub,
.nofcc-photo-albums {
    background: var(--color-warm-white);
}

.nofcc-gallery-hub {
    padding: clamp(58px, 7vw, 96px) 0;
}

.nofcc-photo-albums {
    padding: clamp(48px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}

.nofcc-gallery-hub .container,
.nofcc-photo-albums .container {
    width: min(100% - (var(--gutter) * 2), var(--container-wide));
    max-width: var(--container-wide);
}

.nofcc-gallery-hub__heading,
.nofcc-photo-albums__heading {
    max-width: 780px;
}

.nofcc-gallery-hub__heading {
    margin: 0 0 clamp(30px, 4vw, 48px);
}

.nofcc-photo-albums__heading {
    margin: 0 0 clamp(24px, 3vw, 36px);
}

.nofcc-gallery-hub__heading .eyebrow,
.nofcc-photo-albums__heading .eyebrow,
.nofcc-photo-albums__selected .eyebrow {
    margin: 0 0 12px;
    color: var(--color-red);
}

.nofcc-gallery-hub__heading h2,
.nofcc-photo-albums__heading h2 {
    margin: 0;
    color: var(--color-charcoal);
    font-size: clamp(2rem, 3.2vw, 3.75rem);
    line-height: 1.08;
}

.nofcc-gallery-hub__heading p:not(.eyebrow),
.nofcc-photo-albums__heading p:not(.eyebrow),
.nofcc-photo-albums__selected-intro {
    max-width: 66ch;
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: clamp(1.05rem, 1.2vw, 1.18rem);
    line-height: 1.68;
}

.nofcc-gallery-hub__grid,
.nofcc-photo-albums__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.6vw, 34px);
}

.nofcc-photo-albums__grid {
    margin-bottom: clamp(32px, 4vw, 48px);
}

.nofcc-gallery-card,
.nofcc-photo-album-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    color: var(--color-charcoal);
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    box-shadow: 0 18px 46px rgba(12, 24, 38, 0.06);
}

.nofcc-gallery-card__media,
.nofcc-photo-album-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-light);
}

.nofcc-gallery-card__image,
.nofcc-photo-album-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s ease;
}

a.nofcc-gallery-card__media:hover .nofcc-gallery-card__image,
a.nofcc-gallery-card__media:focus .nofcc-gallery-card__image,
a.nofcc-photo-album-card__media:hover .nofcc-photo-album-card__image,
a.nofcc-photo-album-card__media:focus .nofcc-photo-album-card__image {
    transform: scale(1.025);
}

.nofcc-photo-album-card__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(239, 35, 60, 0.12), rgba(239, 35, 60, 0)),
        var(--color-light);
}

.nofcc-gallery-card__content,
.nofcc-photo-album-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(22px, 2.8vw, 32px);
}

.nofcc-gallery-card__eyebrow,
.nofcc-photo-album-card__eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 6px 10px;
    color: var(--color-red);
    background: var(--color-rose);
    border-radius: 2px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nofcc-gallery-card__title,
.nofcc-photo-album-card__title {
    margin: 0;
    color: var(--color-charcoal);
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    line-height: 1.1;
}

.nofcc-gallery-card__title a,
.nofcc-photo-album-card__title a {
    color: inherit;
    text-decoration: none;
}

.nofcc-gallery-card__title a:hover,
.nofcc-gallery-card__title a:focus,
.nofcc-photo-album-card__title a:hover,
.nofcc-photo-album-card__title a:focus {
    color: var(--color-red);
}

.nofcc-gallery-card__excerpt,
.nofcc-photo-album-card__excerpt {
    margin: 18px 0 0;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.nofcc-gallery-card__count {
    margin: 18px 0 0;
    color: var(--color-charcoal);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nofcc-gallery-card__actions,
.nofcc-photo-album-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 26px;
}

.nofcc-photo-albums__selected {
    max-width: min(100%, 1040px);
    margin-top: clamp(32px, 4vw, 48px);
    padding-top: clamp(28px, 4vw, 40px);
    border-top: 1px solid var(--color-border);
    scroll-margin-top: clamp(80px, 10vw, 130px);
}

.nofcc-photo-albums__selected h3 {
    max-width: 820px;
    margin: 0;
    color: var(--color-charcoal);
    font-size: clamp(1.8rem, 2.8vw, 3rem);
    line-height: 1.12;
}

.nofcc-photo-albums__gallery {
    margin-top: clamp(20px, 3vw, 32px);
}

.nofcc-gallery-hub__empty,
.nofcc-photo-albums__notice {
    max-width: 760px;
    padding: clamp(24px, 3vw, 34px);
    color: var(--color-charcoal);
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-red);
    box-shadow: 0 18px 46px rgba(12, 24, 38, 0.045);
}

.nofcc-gallery-hub__empty p,
.nofcc-photo-albums__notice p {
    max-width: 62ch;
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(1.02rem, 1.1vw, 1.12rem);
    line-height: 1.6;
}

.nofcc-gallery-hub__empty-actions,
.nofcc-photo-albums__notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 1080px) {
    .nofcc-gallery-hub__grid,
    .nofcc-photo-albums__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .nofcc-gallery-hub {
        padding: clamp(46px, 10vw, 68px) 0;
    }

    .nofcc-photo-albums {
        padding: clamp(40px, 9vw, 58px) 0 clamp(46px, 10vw, 68px);
    }

    .nofcc-gallery-hub .container,
    .nofcc-photo-albums .container {
        width: min(100% - 32px, var(--container-wide));
    }

    .nofcc-gallery-hub__grid,
    .nofcc-photo-albums__grid {
        grid-template-columns: 1fr;
    }

    .nofcc-gallery-card__content,
    .nofcc-photo-album-card__content,
    .nofcc-gallery-hub__empty,
    .nofcc-photo-albums__notice {
        padding: 22px 20px 26px;
    }

    .nofcc-gallery-card__actions,
    .nofcc-photo-album-card__actions,
    .nofcc-gallery-hub__empty-actions,
    .nofcc-photo-albums__notice-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}
