@media (min-width: 1025px) and (max-width: 1439px) {
    #primary-menu > li > a {
        padding-inline: 5px;
    }
}

#static-search-results[hidden],
[data-static-search-hidden] {
    display: none !important;
}

.lounge-gallery,
.google-reviews {
    --gallery-paper: #f8f2e7;
    --gallery-ink: #10253b;
    --gallery-accent: #f6ce8d;
}

.lounge-gallery { background: #101010; color: #faf3e6; }

.gallery-hero {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    min-height: clamp(450px, 55vw, 740px);
    background: #090909;
    color: var(--gallery-paper);
}

.gallery-intro { padding: clamp(38px, 7vw, 120px) clamp(22px, 5vw, 100px); }
.gallery-intro > p:first-child { color: var(--gallery-accent); font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; }
.gallery-intro h1 {
    margin: .14em 0 .22em;
    color: inherit;
    font: 500 clamp(4.3rem, 9.5vw, 11rem)/.8 Georgia, serif;
    letter-spacing: -.075em;
}
.gallery-intro > p { max-width: 29ch; color: inherit; }
.gallery-link {
    display: inline-flex;
    align-items: center;
    gap: .8em;
    padding: .7em 0;
    color: inherit;
    border-bottom: 1px solid currentColor;
    font-weight: 700;
}
.gallery-hero .gallery-link:hover,
.gallery-hero .gallery-link:focus-visible { color: var(--gallery-accent); }
.gallery-feature { align-self: stretch; position: relative; min-width: 0; }
.gallery-feature > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-feature-inset {
    position: absolute;
    width: 37%;
    left: -4%;
    bottom: 7%;
    padding: 7px;
    background: #eee6d8;
    box-shadow: 0 12px 30px #0005;
}
.gallery-feature-inset img { display: block; width: 100%; height: auto; }

.gallery-collection { width: min(100% - 3rem, 1450px); margin: auto; padding-block: clamp(34px, 5vw, 78px); }
.gallery-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid #ffffff2b; align-items: baseline; }
.gallery-toolbar[hidden],
.gallery-tile[hidden],
.gallery-neighbor[hidden],
.review-pause[hidden] { display: none; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery-filters button,
.gallery-dialog button {
    padding: .55em 1em;
    min-height: 44px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    font: inherit;
}
.gallery-filters button[aria-pressed="true"],
.gallery-filters button:hover { background: var(--gallery-paper); color: #15120f; border-color: var(--gallery-paper); }
.gallery-count { margin: 0; font-variant-numeric: tabular-nums; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.1vw, 20px); margin: 0; padding: 0; list-style: none; }
.gallery-grid > li { list-style: none; grid-column: span 2; min-width: 0; }
.gallery-grid > li:nth-child(5n+1 of :not([hidden])) { grid-column: span 4; }
.gallery-tile a { display: block; height: 100%; overflow: hidden; background: #24231f; }
.gallery-tile img { display: block; width: 100%; height: clamp(132px, 25vw, 335px); object-fit: cover; }
.gallery-portrait img { object-position: center 42%; }
.gallery-tile a:hover img { filter: brightness(.87); }
.gallery-tile a:focus-visible,
.gallery-filters button:focus-visible,
.gallery-dialog button:focus-visible { outline: 3px solid #ad6a15; outline-offset: 3px; }

.gallery-modal-open { overflow: hidden; }
.gallery-dialog {
    --viewer-height: min(64dvh, 640px);
    max-width: min(96vw, 1250px);
    width: 100%;
    max-height: 94dvh;
    padding: 0 0 12px;
    border: 0;
    background: transparent;
    color: white;
    overflow: visible;
}
.gallery-dialog::backdrop { background: #080808f5; }
.gallery-dialog-top { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.gallery-viewer { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(4px, 1vw, 16px); }
.gallery-viewer-stack { position: relative; height: var(--viewer-height); isolation: isolate; }
.gallery-frame {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    background: #f8f3e8;
    padding: clamp(5px, 1vw, 12px);
    box-shadow: 0 13px 32px #0009;
}
.gallery-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-current {
    display: flex;
    flex-direction: column;
    z-index: 3;
    width: min(68%, calc((var(--viewer-height) - 2.5rem) * var(--photo-ratio, 1.5) + 1rem));
    height: 100%;
}
.gallery-current img { min-height: 0; flex: 1; object-fit: contain; background: #f1ece1; }
.gallery-current .gallery-caption { margin: 0; padding: .45rem 0 0; background: #f8f3e8; color: #261f17; text-align: center; font-size: clamp(.73rem, 1.4vw, 1rem); }
.gallery-neighbor { height: 80%; width: 53%; z-index: 2; filter: brightness(.77); }
.gallery-neighbor[data-gallery-offset="-1"] { inset-inline-start: 36%; }
.gallery-neighbor[data-gallery-offset="1"] { inset-inline-start: 64%; }
.gallery-neighbor[data-gallery-offset="-2"],
.gallery-neighbor[data-gallery-offset="2"] { height: 62%; width: 42%; z-index: 1; filter: brightness(.52); }
.gallery-neighbor[data-gallery-offset="-2"] { inset-inline-start: 25%; }
.gallery-neighbor[data-gallery-offset="2"] { inset-inline-start: 75%; }
.gallery-dialog .gallery-arrow { width: clamp(38px, 5vw, 59px); height: clamp(44px, 5vw, 59px); padding: 0; border-radius: 50%; font-size: clamp(1.9rem, 4vw, 3rem); line-height: .9; }
.gallery-arrow:disabled { opacity: .3; }
.gallery-dialog button:hover { color: var(--gallery-accent); }
.google-reviews { padding: clamp(40px, 7vw, 95px) 24px; background: var(--gallery-paper); color: var(--gallery-ink); }
.google-reviews > div { width: min(100%, 1150px); margin-inline: auto; }
.google-reviews h2 { color: inherit; font: 500 clamp(2.6rem, 5vw, 4.8rem)/1 Georgia, serif; }
.review-window { overflow: auto; margin-block: 1.5rem; }
.review-track { display: flex; width: max-content; }
.review-cards { display: flex; align-items: stretch; gap: 1rem; padding: .3rem 1rem .3rem .3rem; }
.review-card { display: flex; flex-direction: column; justify-content: space-between; padding: 1.3rem; width: min(76vw, 330px); background: white; color: var(--gallery-ink); }
.review-card p { margin-block: 1rem; }
.review-rating { font-weight: 700; }
.review-rating span { color: #895014; }
.review-pause { color: var(--gallery-ink); background: transparent; border: 1px solid currentColor; padding: .5em .9em; min-height: 44px; }
.review-copy { display: none; }
.review-loop .review-copy { display: flex; }
.review-window:has(.review-loop) { overflow: clip; }
.review-loop { animation: review-scroll var(--review-duration, 120s) linear infinite; }
.review-loop.review-paused,
.review-window:hover .review-loop,
.review-window:focus-within .review-loop { animation-play-state: paused; }
.review-window:focus-within .review-loop { transform: none; animation: none; }
.review-window:focus-within { overflow-x: auto; }
@keyframes review-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .review-loop { animation: none; }
    .review-loop .review-copy { display: none; }
}

@media (max-width: 780px) {
    .gallery-hero { grid-template-columns: 1fr; min-height: 0; }
    .gallery-intro { padding: 42px 24px 30px; }
    .gallery-feature { min-height: clamp(230px, 60vw, 420px); }
    .gallery-feature-inset { left: auto; right: 5%; bottom: 6%; width: 34%; }
    .gallery-collection { width: calc(100% - 2rem); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-grid > li,
    .gallery-grid > li:nth-child(5n+1 of :not([hidden])) { grid-column: span 1; }
    .gallery-grid > li:nth-child(5n+1 of :not([hidden])) { grid-column: span 2; }
    .gallery-tile img { height: clamp(145px, 41vw, 320px); }
    .gallery-dialog { --viewer-height: min(57dvh, calc((100vw - 100px) * .79 / var(--photo-ratio, 1.5) + 2.4rem), 480px); }
    .gallery-current { width: 79%; }
    .gallery-neighbor[data-gallery-offset="-1"] { inset-inline-start: 31%; }
    .gallery-neighbor[data-gallery-offset="1"] { inset-inline-start: 69%; }
    .gallery-neighbor[data-gallery-offset="-2"] { inset-inline-start: 22%; }
    .gallery-neighbor[data-gallery-offset="2"] { inset-inline-start: 78%; }
}
