/* Based on Francis's homepage mockup (Nov 2026). Fonts are system/Georgia for now; swap in the final typeface later. */
:root {
  --bg: #f3f1ec;
  --bg-alt: #e8e6e0;
  --fg: #1a1f1d;
  --muted: #6b706c;
  --line: #cfcdc6;
  --ph: #c6ccc6;
  --accent: #3b5659;
  --dark: #18221f;
  --font-body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-head: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font-body); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; margin-bottom: 0.2em; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.8rem; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
main > section { padding: clamp(2rem, 5vw, 4rem) 0; }
main > section.alt { background: var(--bg-alt); }
main > section > .wrap > :last-child { margin-bottom: 0; }

/* header / footer */
.site-header { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; align-items: baseline;
  max-width: 1280px; margin: 0 auto; padding: 1.2rem var(--gutter); }
.brand { font-family: var(--font-head); font-size: 1.25rem; text-decoration: none; margin: 0; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; }
.site-header nav a { text-decoration: none; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { background: var(--dark); color: #e9ece8; padding: clamp(2.2rem, 5vw, 3.6rem) 0 1.4rem; font-size: 0.9rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.site-footer .brand { font-size: 1.35rem; margin: 0 0 0.5rem; color: #f3f1ec; }
.site-footer .muted { color: #9aa39d; margin: 0 0 0.15rem; }
.site-footer .footer-col { display: flex; flex-direction: column; gap: 0.2rem; }
.site-footer .footer-col h2 { font-family: var(--font-body); font-size: 0.68rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: #9aa39d; margin: 0 0 0.6rem; }
.site-footer .footer-col a { color: #e9ece8; text-decoration: none; line-height: 1.9; overflow-wrap: anywhere; }
.site-footer .footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-base { margin-top: clamp(1.8rem, 4vw, 2.6rem); padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #9aa39d; font-size: 0.8rem; }
.site-footer .footer-base p { margin: 0; }
@media (max-width: 860px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } .site-footer .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

/* placeholders and images */
.ph { background: var(--ph); }
.pano { aspect-ratio: 3 / 1; width: 100%; object-fit: cover; background: var(--ph); }
.photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--ph); }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* home */
.hero-text { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: end; }
.hero-text p.intro { max-width: 34rem; color: var(--muted); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.button { display: inline-block; padding: 0.8rem 1.4rem; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font: inherit; font-size: 0.78rem; text-decoration: none; cursor: pointer; }
.button.ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.button:hover { opacity: 0.88; }
.button[disabled] { opacity: 0.5; cursor: default; }
.tiles { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tile { text-decoration: none; }
.tile .photo { aspect-ratio: 2 / 1; margin-bottom: 1rem; }
.tile p { color: var(--muted); margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-head a { font-size: 0.85rem; white-space: nowrap; }
.section-head.tight { margin-bottom: 0.5rem; }
.series-line { margin: 0 0 0.6rem; color: var(--muted); }
.series-more { margin: 0 0 1.5rem; }
@media (max-width: 640px) { .section-head { flex-wrap: wrap; } }

/* products */
.products { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.products[data-large] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 2.5rem 2rem; }
.product h3 { margin-top: 0.8rem; }
.product p { margin: 0.1rem 0; color: var(--muted); font-size: 0.9rem; }
.product .price { color: var(--fg); }
.product .button { margin-top: 0.7rem; }
.facts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--fg); padding-top: 1rem; }
.facts h3 { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.facts p { margin: 0; color: var(--muted); }

/* about */
.split { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr 1fr; align-items: center; }
.split .photo { aspect-ratio: 4 / 3; }

/* basket */
.basket-lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 1rem 1.5rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 96px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--ph); }
.line h3 { margin: 0; }
.line p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { background: none; border: 0; width: 2rem; height: 2rem; font-size: 1rem; cursor: pointer; color: inherit; }
.qty span { min-width: 1.5rem; text-align: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; color: var(--muted); }
.totals { margin-top: 1.5rem; max-width: 22rem; margin-left: auto; }
.totals div { display: flex; justify-content: space-between; padding: 0.3rem 0; }
.totals .grand { border-top: 1px solid var(--fg); margin-top: 0.4rem; padding-top: 0.7rem; font-weight: 600; }
.totals .button { width: 100%; margin-top: 1rem; text-align: center; }
.note { color: var(--muted); font-size: 0.85rem; }
.error { color: #9b2c2c; }

/* tv & film, event, prose */
.prose { max-width: 40rem; }
.films { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.film { display: flex; flex-direction: column; gap: 1rem; }
.film h2 { margin: 0; font-size: 1.5rem; }
.film .yt, .film .still { width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--ph); object-fit: cover; }
button.yt { position: relative; cursor: pointer; overflow: hidden; }
button.yt img { width: 100%; height: 100%; object-fit: cover; }
button.yt .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(24, 34, 31, 0.78); }
button.yt .play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
button.yt:hover .play, button.yt:focus-visible .play { background: var(--accent); }
.role { color: var(--muted); margin: 0.2rem 0 0.8rem; }
.film p { margin: 0 0 0.6rem; }
.awards { font-size: 0.9rem; color: var(--muted); }
.event { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; }
.event dt { color: var(--muted); } .event dd { margin: 0; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards a { text-decoration: none; display: block; }
.cards .photo { margin-bottom: 0.8rem; aspect-ratio: 3 / 2; }
.gallery { display: grid; gap: 2rem; }

@media (max-width: 720px) {
  .hero-text, .split { grid-template-columns: 1fr; }
  .line { grid-template-columns: 72px 1fr; }
  .line img { width: 72px; }
  .line .qty, .line .line-total { grid-column: 2; }
  .totals { max-width: none; }
}

.still-fig { margin: 0; }
.still-fig .still { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.still-fig figcaption { font-size: 0.75rem; }

.masonry { columns: 3 300px; column-gap: 1.5rem; }
.masonry figure { break-inside: avoid; margin: 0 0 1.5rem; }
.masonry img { width: 100%; background: var(--ph); }
.portrait { object-position: 50% 12%; }

/* Home header: light band, slow crossfade through six panoramas (the first is the featured photo) */
.hero-night { background: var(--bg); color: var(--fg); padding: clamp(0.4rem, 1.5vw, 1rem) 0 clamp(2.4rem, 5vw, 4rem); }
.hero-night .slides { position: relative; width: 100%; aspect-ratio: 3 / 1; overflow: hidden; background: var(--ph); }
.hero-night .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: hero-night-fade 42s infinite; }
.hero-night .slides img:nth-child(1) { animation-delay: -1.2s; }
.hero-night .slides img:nth-child(2) { animation-delay: 5.8s; }
.hero-night .slides img:nth-child(3) { animation-delay: 12.8s; }
.hero-night .slides img:nth-child(4) { animation-delay: 19.8s; }
.hero-night .slides img:nth-child(5) { animation-delay: 26.8s; }
.hero-night .slides img:nth-child(6) { animation-delay: 33.8s; }
@keyframes hero-night-fade { 0% { opacity: 0; } 3% { opacity: 1; } 16.7% { opacity: 1; } 19.7% { opacity: 0; } 100% { opacity: 0; } }
.hero-night .row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: end; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.hero-night h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 0; }
.hero-night .intro { color: var(--muted); margin: 0; max-width: 34rem; }
.hero-night .actions { margin-top: 1.4rem; }
@media (prefers-reduced-motion: reduce) { .hero-night .slides img { animation: none; } .hero-night .slides img:first-child { opacity: 1; } }
@media (max-width: 760px) { .hero-night .row { grid-template-columns: 1fr; } .hero-night .slides { aspect-ratio: 16 / 9; } }

/* Every print hangs exactly like the real product (framer visual): slim dark-wood frame, black mount with a thin white bevel,
   glass glare top right. Measured as a share of total frame width: moulding 2.25%, mount 5.45% each side, picture 84.6% (3:1).
   Sizes use cqw (1% of the frame's width) so it looks identical at any size. */
.wall { background: #ebe8e1; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.products[data-gallery] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); }
.gallery-piece .frame { container-type: inline-size; }
.gallery-piece .wood { padding: 2.25cqw; border-radius: 0.25cqw; background:
    linear-gradient(135deg, rgba(255, 235, 220, 0.22) 0%, rgba(255, 235, 220, 0) 24%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.4) 100%),
    repeating-linear-gradient(90deg, rgba(255, 235, 220, 0.03) 0 0.3cqw, rgba(0, 0, 0, 0.05) 0.3cqw 0.6cqw),
    linear-gradient(180deg, #3b2f2a 0%, #2a201c 55%, #1c1512 100%);
  box-shadow: inset 0 0 0 0.16cqw rgba(255, 235, 220, 0.16), 0 0.7cqw 2.4cqw rgba(18, 20, 16, 0.4), 0 0.15cqw 0.5cqw rgba(0, 0, 0, 0.45); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gallery-piece:hover .wood { transform: translateY(-3px); box-shadow: inset 0 0 0 0.16cqw rgba(255, 235, 220, 0.16), 0 1.1cqw 3cqw rgba(18, 20, 16, 0.45), 0 0.15cqw 0.5cqw rgba(0, 0, 0, 0.45); }
.gallery-piece .mount { position: relative; overflow: hidden; isolation: isolate; padding: 5.45cqw;
  background: linear-gradient(20deg, #19231f 0%, #0d1517 42%, #070d0f 100%);
  box-shadow: 0 0 0 0.22cqw #0a0705, inset 0 0.2cqw 0.5cqw rgba(0, 0, 0, 0.7); }
.gallery-piece .mount::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(150, 180, 185, 0.11) 0%, rgba(150, 180, 185, 0.04) 52%, rgba(0, 0, 0, 0) 62%); }
.gallery-piece .mount::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(0, 0, 0, 0.38); clip-path: polygon(80% 0, 100% 0, 100% 34%); }
.gallery-piece .mount img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover;
  outline: 0.28cqw solid #e9eded; outline-offset: 0; box-shadow: 0 0 0 0.12cqw rgba(0, 0, 0, 0.5); }
.gallery-piece .label { margin-top: 1.3rem; }
.gallery-piece .label h3 { margin: 0 0 0.15rem; }
.gallery-piece .label .meta { margin: 0; }
.gallery-piece .label .price { margin-top: 0.4rem; }
@media (prefers-reduced-motion: reduce) { .gallery-piece .wood { transition: none; } .gallery-piece:hover .wood { transform: none; } }

/* Sticky header: stays at the top while scrolling. Full-width background so pictures never show behind the menu. */
html { scroll-padding-top: 5.5rem; }
.site-header { position: sticky; top: 0; z-index: 50; max-width: none; margin: 0;
  padding: 0.9rem max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter)));
  background: rgba(243, 241, 236, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 31, 29, 0.08); }
@media (max-width: 720px) {
  html { scroll-padding-top: 4.5rem; }
  .site-header { padding-top: 0.55rem; padding-bottom: 0.55rem; gap: 0.2rem 1.2rem; }
  .site-header nav { gap: 0.2rem 1.1rem; }
}

/* Click a print: large view with everything needed to buy it */
.gallery-piece a.frame { display: block; color: inherit; text-decoration: none; cursor: zoom-in; }
.gallery-piece .label-actions { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gallery-piece .label-actions .button { margin-top: 0; }
html.modal-open { overflow: hidden; }
.print-modal { width: min(1180px, 96vw); max-width: none; max-height: 94vh; margin: auto; padding: 0; border: 0; background: var(--bg); color: var(--fg); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.print-modal::backdrop { background: rgba(12, 16, 14, 0.82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.print-modal[open] { animation: pm-in 0.22s ease-out; }
@keyframes pm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pm-close { position: absolute; top: 0.6rem; right: 0.8rem; z-index: 3; width: 2.6rem; height: 2.6rem; border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--fg); }
.pm-close:hover { opacity: 0.6; }
.pm-stage { position: relative; background: var(--bg-alt); padding: clamp(2.6rem, 5vw, 3.6rem) clamp(2.6rem, 7vw, 5rem) clamp(1.4rem, 3vw, 2.4rem); }
.pm-art { max-width: 1000px; margin: 0 auto; }
.pm-art:hover .wood { transform: none; }
.pm-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.7); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--fg); }
.pm-nav:hover { background: #fff; }
.pm-prev { left: clamp(0.4rem, 1.6vw, 1.2rem); }
.pm-next { right: clamp(0.4rem, 1.6vw, 1.2rem); }
.pm-info { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem clamp(2rem, 5vw, 4rem); padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 4vw, 3.2rem) clamp(1.6rem, 3vw, 2.6rem); }
.pm-main .eyebrow { margin: 0 0 0.5rem; }
.pm-main h2 { margin: 0 0 0.3rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.pm-where { margin: 0 0 1rem; color: var(--muted); }
.pm-desc { margin: 0; max-width: 36rem; }
.pm-price { margin: 0; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; }
.pm-edition { margin: 0.2rem 0 0; color: var(--muted); }
.pm-delivery { margin: 0.7rem 0 0; font-size: 0.9rem; color: var(--muted); }
.pm-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0; }
.pm-actions .button { margin-top: 0; }
.pm-specs { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.88rem; }
.pm-specs dt { color: var(--muted); }
.pm-specs dd { margin: 0; }
.pm-links { margin: 1.1rem 0 0; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) {
  .print-modal { width: 100vw; max-height: 100vh; height: 100%; }
  .pm-info { grid-template-columns: 1fr; }
  .pm-stage { padding: 3rem 0.9rem 1.4rem; }
  .pm-nav { top: auto; bottom: 0.2rem; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .print-modal[open] { animation: none; } }

/* Home: exhibition feature block */
.exhibit { display: grid; grid-template-columns: clamp(130px, 22%, 210px) 1fr; gap: clamp(1.2rem, 4vw, 3rem); align-items: center; padding: clamp(1.2rem, 3vw, 2rem); background: #fbfaf7; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.exhibit:hover { border-color: var(--fg); box-shadow: 0 6px 22px rgba(26, 31, 29, 0.08); }
.exhibit-logo { display: flex; align-items: center; justify-content: center; padding: 0.4rem; }
.exhibit-logo img { width: 100%; max-width: 170px; height: auto; }
.exhibit-text { display: block; }
.exhibit-text > span { display: block; }
.exhibit-text .eyebrow { margin: 0 0 0.5rem; }
.exhibit-title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; margin: 0 0 0.5rem; }
.exhibit-desc { color: var(--muted); max-width: 34rem; }
.exhibit-link { margin-top: 0.9rem; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .exhibit { grid-template-columns: 1fr; } .exhibit-logo { justify-content: flex-start; } .exhibit-logo img { max-width: 120px; } }

/* TV & Film: featured hero */
.film-hero { grid-column: 1 / -1; display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: end; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }
.film-hero h2 { font-size: clamp(2rem, 4vw, 3rem); }
.film-hero .eyebrow { margin: 0 0 0.5rem; }
.film-hero .role { font-size: 1.05rem; }
.film-hero p { font-size: 1.02rem; }
@media (max-width: 800px) { .film-hero { grid-template-columns: 1fr; } }

/* Anything that opens the large print view */
.zoomable { cursor: zoom-in; }
img.zoomable:focus-visible, .slides.zoomable:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.product img.zoomable { transition: opacity 0.2s ease; }
.product img.zoomable:hover { opacity: 0.92; }

/* Large view: the framed print is capped by window height, and price + Add to basket live in a bar that stays on screen. */
.pm-art { max-width: min(1150px, calc(51vh * 2.29)); }
.pm-stage { padding: clamp(2.2rem, 4vw, 3rem) clamp(2.6rem, 7vw, 5rem) clamp(1rem, 2.4vw, 1.8rem); }
.pm-bar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; padding: 0.9rem clamp(1.2rem, 4vw, 3.2rem); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.07); }
.pm-bar-price { display: flex; align-items: baseline; gap: 0.2rem 1rem; flex-wrap: wrap; }
.pm-bar .pm-price { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pm-bar .pm-edition { margin: 0; font-size: 0.9rem; }
.pm-bar .pm-actions { margin: 0; }
.pm-info { padding-top: clamp(1.2rem, 2.6vw, 2rem); }
.pm-delivery { margin-top: 0; }
@media (max-width: 760px) { .pm-stage { padding: 2.6rem 0.8rem 4rem; } .pm-nav { bottom: 0.7rem; } .pm-prev { left: 0.8rem; } .pm-next { right: 0.8rem; } .pm-art { max-width: min(1000px, calc(38vh * 2.29)); } .pm-bar { padding: 0.7rem 1rem; } }
/* compact cards (home page strip) */
.gallery-piece.compact .label { margin-top: 1rem; }
.gallery-piece.compact .label h3 { font-size: 1.15rem; }

/* Large view: price + buy button sit beside the title (right column) so the title can sit right under the picture.
   On phones the same block pins to the bottom of the window. */
.pm-buy .pm-bar { position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.8rem 1.2rem; padding: 0; margin: 0; background: transparent; border-top: 0; border-bottom: 0; box-shadow: none; }
.pm-buy .pm-bar-price { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.pm-buy .pm-bar .pm-actions { margin: 0; }
.pm-info { padding-top: clamp(1rem, 2vw, 1.4rem); }
.pm-stage { padding-bottom: clamp(0.8rem, 2vw, 1.4rem); }
@media (max-width: 760px) {
  .pm-buy .pm-bar { position: sticky; bottom: 0; z-index: 2; justify-content: space-between; margin: 0 calc(-1 * clamp(1.2rem, 4vw, 3.2rem)); padding: 0.7rem 1rem; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.07); }
  .pm-buy .pm-bar-price { flex-direction: row; align-items: baseline; gap: 0.2rem 0.8rem; }
}

/* Prints page: how the panoramas were made, and the free-delivery note */
.made-block { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.2rem clamp(2rem, 6vw, 4.5rem); align-items: start; padding: clamp(1.6rem, 4vw, 3rem); background: #fbfaf7; border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(26, 31, 29, 0.05); }
.made-intro .eyebrow { margin: 0 0 0.6rem; }
.made-intro h2 { margin: 0 0 1rem; }
.made-intro p { max-width: 34rem; }
.made-intro a { text-underline-offset: 4px; }
.stats { margin: 0; display: grid; gap: 1.4rem; }
.stats > div { border-top: 1px solid var(--fg); padding-top: 0.9rem; }
.stats dt { font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.stats dd { margin: 0.25rem 0 0; color: var(--muted); max-width: 22rem; }
.delivery-band { background: var(--accent); color: #f3f1ec; padding: clamp(1.4rem, 3vw, 2rem) 0; }
.delivery-band .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 2rem; }
.delivery-title { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0; }
.delivery-text { margin: 0; color: #dfe6e3; }
.delivery-text a { color: #fff; text-underline-offset: 4px; }
@media (max-width: 760px) { .made-block { grid-template-columns: 1fr; } }

/* "Read more" that expands in place (native <details>, works without JavaScript) */
.readmore { margin-top: 1rem; max-width: 40rem; }
.readmore summary { display: inline-block; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 4px; font-size: 0.95rem; }
.readmore summary::-webkit-details-marker { display: none; }
.readmore summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.readmore .rm-less { display: none; }
.readmore[open] .rm-more { display: none; }
.readmore[open] .rm-less { display: inline; }
.readmore-body { margin-top: 1.2rem; padding-left: 1.2rem; border-left: 2px solid var(--line); animation: rm-in 0.25s ease-out; }
.readmore-body p:last-child { margin-bottom: 0; }
@keyframes rm-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .readmore-body { animation: none; } }

.pm-ukdel { margin: 1.1rem 0 0; font-size: 0.9rem; }
.pm-ukdel + .pm-links { margin-top: 0.4rem; }

/* No sideways wobble on phones: nothing may scroll or rubber-band horizontally, vertical scrolling is untouched. */
html, body { overflow-x: clip; overscroll-behavior-x: none; }

/* Cards in a row line up: pictures at the top, price and button level at the bottom, whatever the description length. */
.products .product { display: flex; flex-direction: column; }
.products .product .label { display: flex; flex-direction: column; flex: 1 1 auto; }
.products .product .label .meta { flex: 1 1 auto; }
.products .product .label .label-actions { margin-top: 0.8rem; }

/* Contact page: emails beside a form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; margin-top: 1.5rem; }
.contact-emails { padding-top: clamp(1.4rem, 3.5vw, 2.4rem); }
.contact-emails p { margin: 0; }
.contact-emails .muted { margin-bottom: 1.6rem; font-size: 1.05rem; line-height: 1.5; }
.contact-emails .contact-line { padding: 1.1rem 0; border-top: 1px solid var(--line); line-height: 1.5; }
.contact-emails .contact-line:last-child { border-bottom: 1px solid var(--line); }
.contact-emails .contact-line strong { display: block; margin-bottom: 0.15rem; }
.contact-form { background: #fbfaf7; border: 1px solid var(--line); padding: clamp(1.4rem, 3.5vw, 2.4rem); }
.contact-form h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 1.2rem; }
.contact-form label { display: block; margin-bottom: 1.1rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 0.4rem; padding: 0.75rem 0.85rem; font: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none; color: var(--fg); background: #fff; border: 1px solid var(--line); border-radius: 0; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: 0.6; cursor: default; }
.form-status { margin: 0.9rem 0 0; min-height: 1.4em; font-size: 0.95rem; }
.form-status.ok { color: #2f6b4a; }
.form-status.error { color: #9b2c2c; }
.contact-form .note { margin: 0.8rem 0 0; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .contact-emails { padding-top: 0; } }

/* Phone header: brand, Prints, basket icon and a hamburger; the other pages open under the bar. */
.menu-toggle, .basket-icon, .basket-badge { display: none; }
.menu-toggle .cross { display: none; }
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; align-items: center; gap: 0 0.9rem; }
  .site-header nav { display: contents; }
  .brand { order: 1; margin-right: auto; font-size: 1.15rem; }
  .site-header nav a.nav-keep { order: 2; }
  .site-header nav a.basket-link { order: 3; }
  .menu-toggle { order: 0; }
  .site-header nav a:not(.nav-keep):not(.basket-link) { order: 5; display: none; flex: 0 0 100%; padding: 0.85rem 0; font-size: 0.8rem; border-top: 1px solid rgba(26, 31, 29, 0.1); text-decoration: none; }
  .site-header nav a[aria-current] { text-decoration: none; font-weight: 600; }
  .site-header.menu-open nav a:not(.nav-keep):not(.basket-link) { display: block; }
  .site-header.menu-open { background: rgba(243, 241, 236, 0.98); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-left: -0.7rem; margin-right: -0.3rem; padding: 0; border: 0; background: transparent; color: var(--fg); cursor: pointer; }
  .menu-open .menu-toggle .bars { display: none; }
  .menu-open .menu-toggle .cross { display: inline; }
  .basket-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin: 0 -0.2rem 0 0; }
  .basket-icon { display: block; }
  .basket-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .basket-badge { display: inline-flex; position: absolute; top: 0.25rem; right: 0.05rem; min-width: 1.1rem; height: 1.1rem; padding: 0 0.25rem; box-sizing: border-box; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.65rem; line-height: 1; letter-spacing: 0; }
  .basket-badge[hidden] { display: none; }
}

/* Phone print viewer: the prev/next arrows get their own row under the picture instead of sitting on the frame. */
@media (max-width: 760px) {
  .print-modal .pm-stage { padding-bottom: 4rem; }
  .print-modal .pm-nav { bottom: 0.7rem; }
}

/* Low stock and stock problems */
.low-stock, .pm-edition.is-low { color: var(--accent); font-weight: 600; }
.stock-banner { margin: 0 0 1.4rem; padding: 0.9rem 1.1rem; border: 1px solid #c98b8b; background: #f6e8e6; color: #7a2323; line-height: 1.5; }
.stock-banner[hidden] { display: none; }
.line .stock-note { margin: 0.3rem 0 0.4rem; font-size: 0.85rem; color: var(--accent); }
.line .stock-note.problem { color: #9b2c2c; font-weight: 600; }
.line.has-problem { background: rgba(155, 44, 44, 0.04); }
.line .qty button:disabled { opacity: 0.35; cursor: default; }
.totals .button:disabled { opacity: 0.5; cursor: not-allowed; }
.line .qty[hidden] { display: none; }
.price .ships-now { color: var(--muted); }
.line .line-delivery { margin: 0.25rem 0 0.2rem; font-size: 0.85rem; color: var(--muted); }

/* Large view: after adding, "Add to basket" becomes a small "In your basket" caption over a - and + stepper, beside View basket */
.pm-actions { align-items: flex-end; }
.pm-actions .in-basket-group { display: flex; flex-direction: column; gap: 0.35rem; }
.pm-actions .in-basket-group[hidden], .pm-actions .button[hidden] { display: none; }
.pm-actions .in-basket { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pm-actions .qty { height: 3.1rem; background: #fff; }
.pm-actions .qty button { width: 3rem; height: 100%; font-size: 1.3rem; }
.pm-actions .qty span { min-width: 2.4rem; font-size: 1.05rem; }
.pm-actions .qty button:disabled { opacity: 0.35; cursor: default; }
.pm-actions .button { min-height: 3.1rem; }

.keep-browsing { margin: 1rem 0 0; font-size: 0.9rem; }

/* Optional "keep me posted" tick box on the basket */
.updates { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.45; cursor: pointer; }
.updates input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.updates small { display: block; color: var(--muted); }

.yt-note { margin-top: 2.2rem; }

/* Smooth cross-fade between pages (supporting browsers), so going from a print to the basket does not flash. */
@view-transition { navigation: auto; }
#basket { min-height: 40vh; }
