.showcase {
    --showcase-ink: #1d332a;
    --showcase-muted: #555e55;
    --showcase-paper: #faf8f2;
    --showcase-gold: #84652f;
    color: var(--showcase-ink);
    background: var(--showcase-paper);
}

.showcase-container {
    width: min(100% - clamp(32px, 7vw, 112px), 1280px);
    margin-inline: auto;
}

.showcase-hero {
    padding-block: clamp(32px, 5vw, 76px);
    border-bottom: 1px solid #dcd5c5;
    background: linear-gradient(125deg, #f7f2e7, #eae3d4);
}

.showcase-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(26px, 4vw, 64px);
}

.showcase-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(12px, 2vw, 22px);
    color: var(--showcase-gold);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.showcase-kicker::before {
    flex: 0 0 clamp(16px, 3vw, 40px);
    height: 1px;
    background: currentColor;
    content: "";
}

body.site-shell .showcase :is(#showcase-title, #gallery-title) {
    color: var(--showcase-ink);
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

body.site-shell .showcase #showcase-title {
    max-width: 17ch;
    margin: 0 0 16px;
    font-size: clamp(3.4rem, 2.15rem + 2.65vw, 6.2rem) !important;
    line-height: 1.04 !important;
    text-wrap: balance;
}

body.site-shell .showcase p {
    color: var(--showcase-muted);
    text-transform: none !important;
}

.showcase-hero__copy p {
    max-width: 43ch;
    margin: 0;
}

.showcase-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 26px;
}

.showcase-button,
.showcase-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 1.4rem;
    font-weight: 800;
}

.showcase-button {
    background: var(--showcase-ink);
    color: #fffaf0;
}

.showcase-button:hover {
    background: #315346;
    color: #fffaf0;
}

.showcase-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--showcase-ink);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.showcase-text-link:hover {
    color: var(--showcase-gold);
}

.showcase-hero__media {
    overflow: hidden;
    padding: clamp(5px, 0.7vw, 10px);
    border: 1px solid #d2c5ad;
    border-radius: 6px;
    background: #faf7ee;
    box-shadow: 0 18px 42px #392d1c21;
}

.showcase-hero__media img,
.showcase-photo img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.showcase-hero__media img {
    aspect-ratio: 16 / 11;
    border-radius: 3px;
}

.showcase-gallery {
    padding-block: clamp(42px, 6vw, 82px);
    scroll-margin-top: 132px;
}

.showcase-gallery__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dcd5c5;
}

.showcase-gallery__heading h2 {
    margin: 0 0 4px;
    color: var(--showcase-ink);
}

.showcase-gallery__heading p {
    margin: 0;
    color: var(--showcase-muted);
}

.showcase-gallery__heading > span,
.showcase-pagination > span {
    color: var(--showcase-muted);
    font-size: 1.4rem;
}

.showcase-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
}

.showcase-photo {
    position: relative;
    overflow: hidden;
    border: 1px solid #dcd5c5;
    border-radius: 6px;
    background: #ebe5d9;
}

.showcase-photo img {
    aspect-ratio: 4 / 3;
    transition: transform 250ms ease;
}

.showcase-photo:hover img {
    transform: scale(1.035);
}

.showcase-photo__icon {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--showcase-paper);
    color: var(--showcase-ink);
    font-size: 1.8rem;
}

.showcase-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    margin-top: 28px;
}

.showcase-pagination a {
    border: 1px solid var(--showcase-ink);
    color: var(--showcase-ink);
}

.showcase-pagination a:hover {
    background: var(--showcase-ink);
    color: var(--showcase-paper);
}

.showcase a:focus-visible {
    outline: 2px solid #9a691e;
    outline-offset: 3px;
}

@media (max-width: 860px) {
    .showcase-hero__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .showcase-hero__media img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 620px) {
    .showcase-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-actions {
        gap: 4px 16px;
        margin-top: 18px;
    }

    .showcase-gallery {
        scroll-margin-top: 120px;
    }
}

@media (max-width: 360px) {
    .showcase-gallery__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-photo img {
        transition: none;
    }

    .showcase-photo:hover img {
        transform: none;
    }
}
