.yiw-listing-gallery {margin-block:2rem 4rem}
.yiw-listing-gallery .yiw-gallery-rail {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:100%;
    gap:14px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
}
.yiw-gallery-rail::-webkit-scrollbar {display:none}
.yiw-gallery-panel {
    display:grid;
    grid-template-columns:1.55fr 1fr 1fr;
    grid-template-rows:repeat(2,minmax(0,1fr));
    gap:8px;
    aspect-ratio:2.35;
    min-width:0;
    min-height:0;
    overflow:hidden;
    border-radius:9px;
    scroll-snap-align:start;
    scroll-snap-stop:always;
}
.yiw-gallery-panel a {
    position:relative;
    display:block;
    min-width:0;
    min-height:0;
    overflow:hidden;
    background:#eeebe3;
}
.yiw-gallery-panel a:focus-visible {outline:2px solid #bc9656;outline-offset:-3px}
.yiw-gallery-panel .yiw-gallery-photo {display:block;width:100%;height:100%;object-fit:cover}
.yiw-gallery-count-5 a:first-child,.yiw-gallery-count-4 a:first-child,
.yiw-gallery-count-3 a:first-child,.yiw-gallery-count-2 a {grid-row:span 2}
.yiw-gallery-count-4 a:last-child {grid-column:2 / -1}
.yiw-gallery-count-3,.yiw-gallery-count-2 {grid-template-columns:1.55fr 1fr}
.yiw-gallery-count-1 a {grid-column:1 / -1;grid-row:1 / -1}

.yiw-photo-mark {
    position:absolute;
    bottom:clamp(5px,3%,16px);
    left:50%;
    transform:translateX(-50%);
    z-index:2;
    pointer-events:none;
    display:grid;
    place-items:center;
    width:max(1px,calc(min(22.4%,92.4px) - 7px));
    box-sizing:border-box;
}
body .yiw-photo-mark > img {
    display:block;
    width:100%;
    height:auto !important;
    object-fit:contain;
    aspect-ratio:auto;
}
.yiw-photo-brand-frame {position:relative;display:block;min-width:0;line-height:0}
.yiw-photo-brand-frame > img {display:block}

.yiw-gallery-actions {display:flex;align-items:center;justify-content:center;gap:.6rem;margin-top:1rem}
.yiw-gallery-actions button {
    font:inherit;
    font-size:.9rem;
    cursor:pointer;
    padding:.5rem .9rem;
    border:1px solid #b6a377;
    border-radius:5px;
    background:#fffcf5;
    color:#173d35;
}
.yiw-gallery-actions button[hidden] {display:none}
.yiw-gallery-actions button:disabled {cursor:default;opacity:.38}

.yiw-gallery-viewer,
body .photo-viewer[data-yiw-branded] {
    position:fixed;
    inset:0;
    box-sizing:border-box;
    max-width:none;
    max-height:none;
    width:100%;
    height:100%;
    height:100dvh;
    margin:0;
    padding:min(6vh,44px) min(9vw,78px);
    border:0;
    background:transparent;
    color:#173d35;
}
.yiw-gallery-viewer[open],
body .photo-viewer[data-yiw-branded][open] {display:grid;place-items:center}
.yiw-gallery-viewer::backdrop,
body .photo-viewer[data-yiw-branded]::backdrop {
    background:rgba(251,247,236,.31);
    backdrop-filter:blur(5px);
}
.yiw-gallery-viewer figure,
body .photo-viewer[data-yiw-branded] figure {
    display:grid;
    gap:8px;
    justify-items:center;
    align-items:center;
    margin:0;
    width:100%;
}
.yiw-gallery-viewer .yiw-photo-brand-frame,
body .photo-viewer[data-yiw-branded] .yiw-photo-brand-frame {display:block;width:max-content;max-width:100%}
.yiw-gallery-viewer .yiw-photo-brand-frame > img,
body .photo-viewer[data-yiw-branded] .yiw-photo-brand-frame > img {
    display:block;
    height:auto;
    width:auto;
    max-width:100%;
    max-height:calc(100dvh - 104px);
    object-fit:contain;
    border-radius:7px;
    box-shadow:0 12px 42px #1d2b2330;
}
.yiw-gallery-viewer .yiw-photo-mark,
body .photo-viewer[data-yiw-branded] .yiw-photo-mark {width:var(--yiw-open-logo-width,85.4px)}
.yiw-gallery-viewer figcaption,
body .photo-viewer[data-yiw-branded] figcaption {
    width:max-content;
    padding:3px 10px;
    border-radius:4px;
    background:#fffaf2;
    color:#173d35;
    font:500 .84rem/1.4 system-ui,sans-serif;
}
.yiw-gallery-viewer button,
body .photo-viewer[data-yiw-branded] button {
    position:absolute;
    z-index:3;
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border-radius:6px;
    border:1px solid #b6a377;
    background:#fffaf2;
    color:#173d35;
    font:1.65rem/1 system-ui,sans-serif;
    cursor:pointer;
}
.yiw-gallery-viewer .photo-close,body .photo-viewer[data-yiw-branded] .photo-close {top:12px;right:12px}
.yiw-gallery-viewer .photo-prev,body .photo-viewer[data-yiw-branded] .photo-prev {left:12px;top:50%}
.yiw-gallery-viewer .photo-next,body .photo-viewer[data-yiw-branded] .photo-next {right:12px;top:50%}
.yiw-gallery-viewer button[hidden] {display:none}
@media(max-width:650px) {
    .yiw-gallery-panel {gap:4px;aspect-ratio:1.8;border-radius:5px}
    .yiw-photo-mark {width:max(1px,calc(min(27.3%,92.4px) - 4.2px))}
    .yiw-gallery-viewer,body .photo-viewer[data-yiw-branded] {padding:56px 10px 72px}
    .yiw-gallery-viewer .yiw-photo-brand-frame > img,
    body .photo-viewer[data-yiw-branded] .yiw-photo-brand-frame > img {max-height:calc(100dvh - 164px)}
    .yiw-gallery-viewer .photo-prev,body .photo-viewer[data-yiw-branded] .photo-prev {top:auto;bottom:14px;left:calc(50% - 52px)}
    .yiw-gallery-viewer .photo-next,body .photo-viewer[data-yiw-branded] .photo-next {top:auto;bottom:14px;right:calc(50% - 52px)}
}
@media(prefers-reduced-motion:reduce) {
    .yiw-gallery-rail {scroll-behavior:auto}
}
.yiw-photo-mark[hidden] {display:none}

.yiw-related-venues {margin-block:clamp(2.5rem,7vw,5rem);color:#191b18}
.yiw-related-venues h2 {margin:0 0 1.25rem;font-size:clamp(1.55rem,3.2vw,2.3rem);line-height:1.16}
.yiw-related-venue-grid {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:clamp(9px,1.5vw,18px);
}
.yiw-related-venue {
    display:flex;
    flex-direction:column;
    min-width:0;
    border:1px solid #e5ded1;
    border-radius:8px;
    overflow:hidden;
    background:#fffcf6;
    color:inherit;
    text-decoration:none;
}
.yiw-related-venue:focus-visible {outline:2px solid #997742;outline-offset:3px}
.yiw-related-venue:hover .yiw-related-venue-caption strong {text-decoration:underline}
.yiw-related-venue > img {display:block;width:100%;height:auto;aspect-ratio:16/11;object-fit:cover}
.yiw-related-venue-caption {display:grid;gap:5px;padding:.85rem;line-height:1.28}
.yiw-related-venue-caption span {color:#675737;font-size:.74rem}
.yiw-related-venue-caption strong {font-size:clamp(.88rem,1.4vw,1.03rem);font-weight:650;overflow-wrap:anywhere}
@media(max-width:900px) {
    .yiw-related-venue-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:580px) {
    .yiw-related-venue-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
    .yiw-related-venue-caption {padding:.65rem}
}
