/* A listing's gallery in the layout its owner picked (inc/owner-editor/look.php). The grid is in style.css. */
.gallery.is-slide{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:12px}
.gallery.is-slide::-webkit-scrollbar{display:none}
.gallery.is-slide a{flex:0 0 100%;scroll-snap-align:center}
.gallery.is-slide img{aspect-ratio:3/2}
.gallery-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:10px;color:var(--ink-2);font-size:15px}
.gallery-nav button{min-width:44px;min-height:44px;border:1px solid var(--rule);border-radius:999px;background:var(--paper);color:var(--ink);font:inherit;font-size:18px;cursor:pointer}
.gallery-nav button:hover,.gallery-nav button:focus-visible{border-color:var(--ink)}
.gallery-nav button:disabled{opacity:.4;cursor:default}
.gallery.is-lead{grid-template-columns:repeat(4,1fr);gap:8px}
.gallery.is-lead a:first-child{grid-column:1/-1}
.gallery.is-lead img{aspect-ratio:1}
.gallery.is-lead a:first-child img{aspect-ratio:3/2}
.gallery.is-lead.has-more a:nth-child(n+6){display:none}
.gallery.is-lead.has-more a:nth-child(5){position:relative}
.gallery.is-lead.has-more a:nth-child(5)::after{content:attr(data-more);position:absolute;inset:0;display:grid;place-items:center;border-radius:var(--r-md);background:rgba(0,0,0,.6);color:#fff;font-weight:700;font-size:17px}
.gallery.is-whole{display:block;columns:2;column-gap:12px}
.gallery.is-whole a{break-inside:avoid;margin-bottom:12px}
.gallery.is-whole img{height:auto;object-fit:contain}   /* each photo's own shape comes with it (single-business.php) */
@media(min-width:900px){.gallery.is-whole{columns:3}}
