/* ChurchHarmony product photography */
.product-gallery {
  scroll-margin-top:5rem;
  padding:clamp(2.9rem,6vw,5.4rem) 0;
  background:#f1f6fc; color:#102947;
  border-block:1px solid #d5e1ef;
}
.product-gallery .gallery-wrap {max-width:1200px;margin-inline:auto;padding-inline:clamp(1rem,4.5vw,3rem)}
.product-gallery h2 {font-family:'Instrument Serif',Georgia,serif;color:#13264c;font-size:clamp(2.15rem,4.4vw,3.6rem);letter-spacing:-.035em;line-height:1.05;margin:0 0 1.7rem;max-width:35ch}
.screen-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,2.4vw,1.8rem)}
.screen-card {display:flex;flex-direction:column;min-width:0;margin:0;background:#fff;border:1px solid #becfe3;border-radius:1rem;overflow:hidden}
.screen-card .screen-surface {position:relative;display:flex;align-items:center;justify-content:center;min-width:0;padding:clamp(.65rem,1.5vw,1.25rem);height:clamp(13.5rem,22vw,18.75rem);background:#e3edf8;border:0;text-decoration:none}
.screen-surface img {display:block;max-width:100%;width:auto;max-height:100%;height:auto;object-fit:contain;box-shadow:0 4px 12px #132e4e21;background:white}
.screen-open {position:absolute;bottom:.55rem;right:.55rem;display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .6rem;background:#fff;color:#14365f;border:1px solid #c9d7e5;border-radius:2rem;font:650 .78rem/1.25 system-ui,sans-serif;box-shadow:0 1px 4px #102c4d19}
.screen-card figcaption {padding:1.2rem clamp(1rem,1.9vw,1.6rem) 1.35rem}
.product-gallery .screen-card h3 {color:#102947;font:650 clamp(1.04rem,1.7vw,1.26rem)/1.3 system-ui,sans-serif;letter-spacing:-.02em;margin:0}
.product-gallery .screen-card p {color:#40546d;line-height:1.58;font-size:1rem;margin:.42rem 0 0;max-width:52ch}
.screen-card a:focus-visible,.screen-viewer :is(button,a):focus-visible {outline:3px solid #d9630e;outline-offset:-3px}
.screen-card a:hover .screen-open {background:#102e59;color:#fff;border-color:#102e59}
@media(min-width:760px) {
 .screen-grid.odd .screen-card:first-child {grid-column:1/-1;display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1fr)}
 .screen-grid.odd .screen-card:first-child figcaption {align-self:center;padding:clamp(1.4rem,3vw,2.8rem)}
 .screen-grid.odd .screen-card:first-child .screen-surface {height:clamp(16rem,29vw,24.5rem)}
 .screen-grid.odd .screen-card:first-child h3 {font-size:clamp(1.2rem,2.2vw,1.65rem)}
}
.screen-viewer {position:fixed;inset:0;padding:0;margin:auto;width:min(96vw,78rem);max-width:none;max-height:94vh;max-height:94dvh;border:1px solid #a3b9d4;border-radius:.85rem;background:#f0f5fb;color:#132849;box-shadow:0 16px 60px #07142e66;overscroll-behavior:contain}
.screen-viewer::backdrop {background:rgb(5 17 37 / 85%)}
.screen-viewer[open] {display:flex;flex-direction:column}
.screen-viewer .view-head,.screen-viewer .view-foot {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem 1rem;background:#fff;padding:.5rem .9rem;flex-shrink:0}
.screen-viewer .view-head {border-bottom:1px solid #d1deec}
.screen-viewer .view-head h2 {margin:0;font:650 clamp(1rem,1.8vw,1.3rem)/1.3 system-ui,sans-serif;max-width:75%}
.screen-viewer .view-stage {padding:.9rem;display:grid;place-items:center;min-height:0;overflow:auto}
.screen-viewer .view-stage img {width:auto;height:auto;max-width:100%;max-height:66vh;max-height:66dvh;object-fit:contain;background:#fff;box-shadow:0 4px 18px #122d4c1a}
.screen-viewer .view-foot {border-top:1px solid #d1deec}
.screen-viewer .view-foot p {font:400 .95rem/1.45 system-ui,sans-serif;margin:.3rem 0;max-width:62ch;color:#344962}
.screen-viewer button,.screen-viewer .view-source {display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:.4rem;font:600 .85rem/1.25 system-ui,sans-serif;padding:.35rem .7rem;cursor:pointer;background:transparent;color:#154d88}
.screen-viewer button:hover,.screen-viewer .view-source:hover {background:#edf3fb}
.screen-viewer .view-controls {display:flex;align-items:center;flex-wrap:wrap;gap:.25rem}
.screen-viewer .view-count {font:600 .8rem/1.4 system-ui,sans-serif;color:#455972}
html.has-screen-viewer {overflow:hidden}
.ch-cat a .catalog-shot {display:flex;align-items:center;justify-content:center;height:clamp(7rem,10.5vw,9rem);padding:.5rem;margin:0 0 .85rem;border-radius:.5rem;border:1px solid #d3dfec;background:#eef4fb;overflow:hidden}
.ch-cat a .catalog-shot img {height:100%;width:100%;object-fit:contain}
@media(max-width:650px) {
 .screen-grid {grid-template-columns:minmax(0,1fr)}
 .screen-card .screen-surface {height:auto;min-height:7.5rem;max-height:22rem;padding:.75rem}
 .screen-card .screen-surface img {max-height:20.4rem}
 .screen-viewer {width:97vw;max-height:96dvh}
 .screen-viewer .view-stage {padding:.35rem}
 .screen-viewer .view-foot {display:block}
 .screen-viewer .view-controls {justify-content:space-between}
 .screen-viewer .view-head,.screen-viewer .view-foot {padding:.35rem .6rem}
 .ch-cat a .catalog-shot {height:8.5rem}
}
