/* === Gallery-Specific Styles === */

/* Add top margin to clear fixed header */

/* Gallery container */
.gallery-container {
    width: 100%;
}

/* Year section headers */
.gallery-year-section {
    margin-bottom: 12px;
}

.gallery-year-section:first-child {
    margin-top: 0;
}

.gallery-year-header {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding: 16px 24px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-year-header.accent-rose {
    background: var(--rose);
    color: #fff;
}

.gallery-year-header.accent-teal {
    background: var(--teal);
    color: #fff;
}

/* Additional accents from root palette */
.gallery-year-header.accent-burnt { background: var(--burnt); color: var(--page-bg); }
.gallery-year-header.accent-lemon { background: var(--lemon); color: var(--page-bg); }
.gallery-year-header.accent-clover { background: var(--clover); color: var(--page-bg); }
.gallery-year-header.accent-lapis { background: var(--lapis); color: var(--page-bg); }
.gallery-year-header.accent-violet { background: var(--violet); color: var(--page-bg); }
.gallery-year-header.accent-magenta { background: var(--magenta); color: var(--page-bg); }

/* Gallery photo grid - responsive masonry using CSS columns */
.gallery-grid {
    column-width: 200px;
    column-gap: 12px;
    width: 100%;
}

.gallery-grid .gallery-photo-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Natural image dimensions - no forced aspect ratio */
.gallery-grid .gallery-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.gallery-grid .gallery-photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}