
* { box-sizing: border-box; }

.gallery-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

.gallery-page h2 {
    font-family: "Iowan Old Style", "Charter", "Source Serif Pro", Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.015em;
    margin: 16px 0 24px;
    text-align: left;
}

.gallery-page h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin-top: 12px;
    background: var(--accent);
    border-radius: 2px;
}

#jumbodiv {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    align-items: start;
}

.pic-row {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bgColor-muted);
    border: 1px solid var(--borderColor-muted);
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}

.pic-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.pic-row:hover img {
    transform: scale(1.03);
}

.lazyload {
    cursor: zoom-in;
    transition: box-shadow 0.2s, opacity 0.4s ease;
}

.gallery-footer {
    margin-top: 40px;
    text-align: center;
}

.gallery-footer a {
    color: var(--fgColor-muted);
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid var(--borderColor-muted);
    padding: 6px 16px;
    border-radius: 100px;
    transition: color 0.2s, border-color 0.2s;
}

.gallery-footer a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 540px) {
    .gallery-page { padding: 16px 16px 48px; }
    #jumbodiv {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
