.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line);
    gap: 1rem;
}

.gallery-nav a {
    color: var(--text);
    text-decoration: none;
}

.gallery-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.gallery-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-tools button {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .5rem 1rem;
    cursor: pointer;
}

.gallery-intro {
    padding-block: clamp(3rem, 7vw, 6rem) 2.5rem;
    max-width: 760px;
}

.gallery-eyebrow {
    color: var(--accent);
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.gallery-intro h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.08;
    margin: 1rem 0;
}

.gallery-intro p {
    color: var(--text-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 110px;
    gap: 1rem;
    padding-bottom: 4rem;
}

.bento-tile {
    position: relative;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-strong);
    color: var(--text);
    grid-column: span var(--tile-width, 3);
    grid-row: span var(--tile-height, 3);
}

.bento-tile--accent {
    background: var(--accent-soft);
}

.bento-tile--soft {
    background: var(--bg-soft);
}

.bento-tile picture,
.bento-tile img {
    display: block;
    width: 100%;
    height: 100%;
}

.bento-tile figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
    color: white;
}

.bento-copy {
    height: 100%;
    overflow: auto;
    padding: clamp(1.2rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-copy h2 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    margin: 1rem 0 .5rem;
    line-height: 1.2;
}

.bento-copy p {
    color: var(--text-muted);
    white-space: pre-wrap;
    margin: 0;
}

.bento-icon {
    display: inline-flex;
    color: var(--accent);
}

.bento-icon svg {
    width: 2rem;
    height: 2rem;
}

.gallery-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 100px;
        gap: .75rem;
    }

    .bento-tile {
        grid-column: span 2;
        grid-row: span var(--tile-height, 3);
    }

    .gallery-tools {
        gap: .5rem;
        font-size: .85rem;
    }
}