.gallery-top {
    min-height: 300px;
    background: var(--carousel-bg-surface);
    display: flex;
    align-items: end;
    padding: calc(var(--nav-height) + 5rem) 60px 20px 60px;
    margin-bottom: 2rem;
}

.gallery-top h1 {
    display: block;
    width: var(--container-width);
    margin: 0 auto;
    color: var(--carousel-text);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
}

.gallery-lead {
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--page-text-color-alt);
    padding: 1.5rem;
    border-radius: var(--br-def);
    margin-bottom: 2rem;
}

.gallery-section {
    margin-bottom: 3rem;
}

.gallery-section h2 {
    margin-bottom: 1.25rem;
}

.gallery-card {
    overflow: hidden;
    border-radius: var(--br-def);
    background: var(--page-bg-color-alt);
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .15);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: opacity .2s ease;
}

.gallery-card:hover img {
    opacity: .9;
}

@media (max-width: 767.98px) {
    .gallery-top {
        padding: calc(var(--nav-height) + 2rem) 1rem 1rem 1rem;
        min-height: 220px;
    }
}
