/* Bounded content loading and navigation; existing card and hero styling stays intact. */
.content-state{padding-block:72px;max-width:720px;min-height:320px}
.content-state h1{margin-bottom:18px}
.content-state p{line-height:1.7;margin-bottom:24px}
.content-pagination{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;margin:34px 0 18px}
.content-pagination p{font-size:13px;color:var(--muted)}
.content-pagination button:disabled{opacity:.45;cursor:default}
.catalogue-example{font-size:11px;color:var(--muted);margin:7px 0 0}
.catalog-request-error{grid-column:1/-1;padding:30px 0}
.catalog-request-error p{margin-bottom:18px;line-height:1.6}
.catalog-loading{grid-column:1/-1;padding:28px 0;color:var(--muted)}
/* Owner-entered names and contact details must fit without clipping or shrinking type. */
#main :is(h1,h2,h3,p,dt,dd,summary,.eyebrow){overflow-wrap:anywhere}
#main .button{max-width:100%;overflow-wrap:anywhere}
.detail-layout>*,.contact-grid>*,.contact-details>*,.info-details>*,.specs>*,.project-caption>*,.breadcrumb>*,.product-topline>*,.map-label>*{min-width:0}
.detail-layout>*{max-width:100%}
.breadcrumb>*,.product-topline>*,.map-label>*{overflow-wrap:anywhere}
.contact-reviews .text-link{white-space:normal}
@media(max-width:480px){.content-pagination{gap:12px}.content-pagination .button{padding-inline:16px}.content-state{padding-block:48px}}

/* A single compact catalogue with wrapped, keyboard-accessible article groups. */
.catalog-groups{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.catalog-groups button{font:inherit;font-size:14px;font-weight:700;line-height:1.3;padding:11px 16px;border:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;border-radius:0}
.catalog-groups button[aria-pressed="true"]{background:var(--deep);border-color:var(--deep);color:var(--paper)}
.catalog-groups button:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.catalog-groups button:hover{border-color:var(--deep)}

/* Album headings describe the photos; they must not compete with the page title.
   Auto-fit gives a lone cover the available width instead of one empty grid slot. */
.album-page-head{padding-bottom:26px}
.album-page-head h1{font-size:clamp(30px,4vw,46px);line-height:1.12;text-wrap:pretty}
.album-page-head>p,.album-series-heading p{font-size:16px;line-height:1.65;max-width:65ch;white-space:pre-line}
.album-series-heading{margin-bottom:20px}
.album-series-heading h2{font-size:clamp(23px,2.5vw,30px);line-height:1.2;text-wrap:pretty}
.album-series-heading p{margin-top:10px}
.album-photo-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px;max-width:960px}
.album-photo{min-width:0}
.album-photo>span{font-size:12px;padding:8px 12px;gap:10px}
.album-detail .album-photo img{object-fit:contain;background:var(--warm)}
.album-detail>.text-link{margin-top:22px;white-space:normal}
@media(max-width:640px){
 .album-page-head{padding-top:28px;padding-bottom:24px}
 .album-photo-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 .album-series+.album-series{margin-top:36px}
 .album-page{padding-bottom:44px}
}

/* Contact details remain useful when an external map cannot load. */
.map-label .map-place{display:grid;gap:3px}
.map-label .map-directions{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:12px;flex-shrink:0;text-decoration:underline;text-underline-offset:3px}
.map-directions .arrow,.map-directions .direction-icon{width:16px;height:16px}
.map-label:focus-visible,.contact-details a:focus-visible{outline:2px solid var(--red);outline-offset:4px}
.contact-details a:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:400px){.map-label{align-items:flex-start;flex-direction:column;gap:12px}}
