
.images-section {
    padding: 3rem 0;
}

.images-grid {
    display: grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
}

.images-card {
    border: 0.0625rem solid #d5e6e6;
    background: #fff;
    padding: 0.5rem;
    transition: border-color .3s
}

.images-card:hover {
    border-color: #176e70
}

.images-card > div {
    width: 100%;
    aspect-ratio: var(--gallery-ratio);
    background: #f1f8f8;
    overflow: hidden;
}

.images-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.images-card p {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-top: 1.25rem;
    color: #176e70
}

.images-card b {
    font-weight: 400;
    color: #176e70
}

@media (max-width: 87.5rem) {
    .images-grid {
        grid-template-columns:repeat(4, minmax(0, 1fr))
    }
}

@media (max-width: 62.5rem) {
    .images-grid {
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }
}

@media (max-width: 47.5rem) {
    .images-grid {
        grid-template-columns:1fr 1fr;
        gap: 1rem
    }

    .images-card {
        padding: 0.5rem
    }

    .images-card > div {
        padding: 0.5rem
    }
}


.images-viewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: #f3f6f7;
    overflow: hidden
}

.images-viewer::backdrop {
    background: #030b11ef
}

.viewer-shell {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.viewer-slides {
    width: 100%;
    max-width: 75rem;
}

.viewer-slides figure {
    display: none;
    margin: 0;
    text-align: center
}

.viewer-slides figure.is-active {
    display: block
}

.viewer-slides img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: calc(100vh - 12.5rem);
    object-fit: contain;
}

.viewer-slides figcaption {
    margin-top: 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.0625rem;
    line-height: 1.8;
    color: #d3e0e5
}

.viewer-close, .viewer-prev, .viewer-next {
    position: absolute;
    background: #10242dbb;
    color: #176e70;
    border: 0.0625rem solid #ffffff30;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-close {
    right: 2rem;
    top: 2rem;
}

.viewer-prev {
    left: 2rem;
}

.viewer-next {
    right: 2rem;
}

.viewer-close:hover, .viewer-prev:hover, .viewer-next:hover {
    background: #28433b
}

.viewer-count {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.1875rem;
    color: #8da8b6
}

.images-viewer button:focus-visible {
    outline: 0.125rem solid #176e70;
    outline-offset: 0.3125rem
}

@media (max-width: 47.5rem) {
    .viewer-shell {
        padding: 3rem 0.5rem;
    }

    .viewer-slides img {
        max-height: calc(100vh - 15.625rem)
    }

    .viewer-slides figcaption {
        font-size: 0.8rem;
        margin-top: 1rem
    }

    .viewer-prev, .viewer-next {
        top: auto;
        bottom: 3rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .viewer-prev {
        left: calc(50% - 4.0625rem)
    }

    .viewer-next {
        right: calc(50% - 4.0625rem)
    }

    .viewer-close {
        width: 2.5rem;
        height: 2.5rem;
        right: 1rem;
        top: 1rem;
    }
}

.gallery-honor { --gallery-ratio: 10 / 14; }
.gallery-manufacture { --gallery-ratio: 500 / 295; }
.gallery-hero {
    color: #fff;
    background: linear-gradient(90deg, #102729ef, #12383aa8), url("../picture/simitch-top-banner.webp") center / cover;
}
.gallery-hero-inner { padding: 1.625rem 0 clamp(3rem, 8vw, 7rem); }
.gallery-hero .breadcrumb { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: clamp(2rem, 6vw, 5rem); }
.gallery-hero .breadcrumb a { color: inherit; }
.gallery-kicker { margin: 0 0 .75rem; color: #8cdddd; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; }
.gallery-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.2; }
.gallery-page .images-section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.gallery-page .images-card { min-width: 0; border-top: .1875rem solid #229093; }
.gallery-page .images-card img { display: block; }
.gallery-page .images-card p { margin: .75rem .375rem .375rem; gap: .5rem; overflow-wrap: anywhere; }
