.gallery-section {
    max-width: 1140px;
}

.gallery-intro {
    margin-bottom: 2rem;
}

.gallery-intro h2 {
    color: var(--brand-color-8);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.gallery-intro p {
    color: #635842;
}

.gallery-breadcrumb {
    margin-bottom: 1.5rem;
}

.gallery-albums,
.gallery-photos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.gallery-album {
    display: block;
    overflow: hidden;
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.gallery-album:hover,
.gallery-album:focus {
    color: var(--brand-color-8);
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .16);
}

.gallery-album img,
.gallery-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0;
}

.gallery-album-label {
    padding: 1.25rem;
}

.gallery-album h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.gallery-album-label > span {
    color: #635842;
    font-size: .9rem;
    font-weight: 400;
}

.gallery-photo {
    display: block;
    overflow: hidden;
    border-radius: .25rem;
}

/* Keep the lightbox frame even despite the site's global image margin. */
.ekko-lightbox img {
    display: block;
    margin: 0;
}

.gallery-album:focus-visible,
.gallery-photo:focus-visible {
    outline: 3px solid var(--brand-color-8);
    outline-offset: 4px;
}

@media (min-width: 480px) {
    .gallery-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 576px) {
    .gallery-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .gallery-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .gallery-albums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
