/* ==========================================================================
   Bob Ingalls Photography — main stylesheet
   Colors / fonts / spacing live in the variables below.
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #131315;
  --bg-3: #1b1b1e;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ece9e3;
  --muted: #9b978f;
  --accent: #c9a96a;          /* warm gold */
  --accent-2: #e2c88f;
  --placeholder: #e0a43a;     /* used for PLACEHOLDER tags */

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
  --gap: 14px;
  --maxw: 1400px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .link { color: var(--accent-2); border-bottom: 1px solid rgba(201,169,106,.35); transition: border-color .2s; }
p a:hover, .link:hover { border-color: var(--accent-2); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: #000; padding: 8px 14px; }
.skip-link:focus { left: 8px; }

.container { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 14px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #d6d2ca; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 14px 26px; border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius);
  font: 500 12px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--text); background: transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--text); color: #000; border-color: var(--text); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #111; }
.btn--solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: #111; }
.btn--block { width: 100%; }

/* ---------- Placeholder markers (remove class usage when content is final) ---------- */
.ph-note {
  display: inline-block; font: 600 10.5px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--placeholder); border: 1px dashed rgba(224,164,58,.55); padding: 3px 8px; border-radius: 2px; margin-bottom: 14px;
}
.ph-text { color: #c8b48c; font-style: italic; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 3.5vw, 48px);
  background: rgba(11,11,12,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease);
}
/* On the home page the header is transparent over the hero until you scroll */
.page-home .site-header:not(.is-scrolled) { background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,0)); background-origin: border-box; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home .site-header:not(.is-scrolled) .brand-sub { color: rgba(255,255,255,.8); }
.page-home .site-header:not(.is-scrolled) a, .page-home .site-header:not(.is-scrolled) .brand { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.brand { display: flex; flex-direction: column; line-height: 1; z-index: 2; }
.brand-name { font-family: var(--font-display); font-size: 27px; font-weight: 500; letter-spacing: .04em; }
.brand-sub { font-size: 9.5px; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); margin-top: 5px; padding-left: 2px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.site-nav a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; color: #d9d5ce; position: relative; padding: 6px 0; transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .nav-ig { display: inline-flex; padding: 6px; }
.site-nav .nav-ig::after { display: none; }
.nav-ig-label { display: none; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand-name { font-size: 23px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px; z-index: 2;
    width: 44px; height: 44px; margin-right: -10px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; height: 100dvh; flex-direction: column; justify-content: center; gap: 26px;
    background: #08080a; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-family: var(--font-display); font-size: 34px; letter-spacing: .04em; text-transform: none; }
  .site-nav .nav-ig { align-items: center; gap: 10px; font-family: var(--font-body); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
  .nav-ig-label { display: inline; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter would trap the fixed menu inside the header, so drop it while open */
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

main { display: block; }
.page-pad { padding-top: var(--header-h); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; background: #000; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); opacity: 0; transform: scale(1.04); transition: opacity 1.2s var(--ease), transform 6s var(--ease); }
.hero-img.is-loaded { opacity: 1; transform: scale(1); }
@media (max-width: 700px) { .hero-img, .tile img { object-position: var(--focus-m, var(--focus, 50% 50%)); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.7) 100%); pointer-events: none; }
.hero-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(56px, 11vh, 120px); text-align: center; padding: 0 24px; }
.hero h1 { font-size: clamp(54px, 9vw, 128px); font-weight: 400; margin: 0; letter-spacing: .02em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .hero-sub { font-size: clamp(11px, 1vw, 13px); letter-spacing: .55em; text-transform: uppercase; margin: 6px 0 26px; padding-left: .55em; color: #e6e2da; }
.hero-tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(18px, 1.8vw, 23px); color: #ddd8cf; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { min-width: 210px; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.8), transparent); animation: cue 2.2s infinite; }
@keyframes cue { 0% { transform: translateY(-8px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* ---------- Intro ---------- */
.intro { text-align: center; }
.intro h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 400; }
.intro .lead { max-width: 680px; margin: 0 auto 18px; }

/* ---------- Section headings ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; margin: 0; }
.page-head { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(32px, 4vw, 48px); text-align: center; }
.page-head h1 { font-size: clamp(44px, 6vw, 82px); font-weight: 400; margin: 0 0 12px; }
.page-head p { max-width: 640px; margin: 0 auto; color: var(--muted); }

/* ---------- Masonry gallery ---------- */
.masonry { columns: 3 320px; column-gap: var(--gap); }
.g-item {
  position: relative; display: block; margin: 0 0 var(--gap); break-inside: avoid; overflow: hidden;
  background: var(--bg-3); border-radius: var(--radius); cursor: zoom-in;
}
.g-item img { width: 100%; height: auto; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease), filter .4s; }
.g-item img.is-loaded { opacity: 1; }
/* panoramas (wide: true) span all columns — keep them first in their gallery */
.masonry .g-item--wide { column-span: all; -webkit-column-span: all; }
.g-item:hover img { transform: scale(1.035); filter: brightness(.82); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; z-index: 1;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-cap strong { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.2; }
.g-cap span { font-size: 12px; color: #cfcac1; letter-spacing: .06em; }
@media (hover: none) { .g-cap { opacity: 1; transform: none; padding-top: 30px; } .g-cap strong { font-size: 17px; } }
@media (max-width: 640px) { :root { --gap: 8px; } .container { width: calc(100% - 24px); } }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Category tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transition: transform 1s var(--ease), filter .4s; filter: brightness(.7); }
.tile:hover img { transform: scale(1.04); filter: brightness(.55); }
.tile-label { position: absolute; inset: auto 0 0 0; padding: 28px; z-index: 1; }
.tile-label h3 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 400; margin: 0 0 4px; }
.tile-label span { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.cta-band h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 400; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Prints ---------- */
.notice {
  border: 1px dashed rgba(224,164,58,.5); background: rgba(224,164,58,.06); color: #e7d3ad;
  padding: 16px 20px; border-radius: 3px; font-size: 14.5px; margin: 0 auto 40px; max-width: 860px; text-align: center;
}
.notice strong { color: var(--placeholder); font-weight: 600; }
.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.print-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.print-card .g-item { margin: 0; border-radius: 0; aspect-ratio: 4 / 3; background: #060607; }
/* show the whole photo (uncropped) so buyers see the real composition */
.print-card .g-item img { height: 100%; object-fit: contain; }
.print-card .g-cap { display: none; }
.print-note { font-size: 12.5px; color: var(--accent-2); margin: -4px 0 0; }
.print-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.print-body h3 { font-size: 24px; margin: 0; }
.print-body .loc { font-size: 12.5px; color: var(--muted); letter-spacing: .05em; margin-top: -10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label, .field .label { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
select, input, textarea {
  width: 100%; font: 400 15px/1.4 var(--font-body); color: var(--text);
  background: var(--bg-3); border: 1px solid rgba(255,255,255,.14); border-radius: 2px; padding: 11px 12px;
  transition: border-color .2s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-size: 26px; }
.price small { font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-left: 6px; }
.buy-hint { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: -6px; }
.buy-hint a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.mat-note { font-size: 12.5px; color: var(--muted); margin: -6px 0 0; line-height: 1.45; }
.price-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.draft-tag { font-size: 9.5px; letter-spacing: .14em; color: var(--placeholder); border: 1px dashed rgba(224,164,58,.6); border-radius: 2px; padding: 3px 6px 2px; }
.buy-msg { font-size: 13px; color: #f0b9a8; text-align: center; margin: -4px 0 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--solid[disabled]:hover { background: var(--accent); border-color: var(--accent); }
.print-card.is-unavailable .btn[disabled] { background: transparent; color: var(--muted); border-color: rgba(255,255,255,.25); opacity: 1; }
.nowrap { white-space: nowrap; }
.spec-table td.shape { white-space: nowrap; color: var(--accent-2); }

/* ---------- Checkout result pages (success / cancel) ---------- */
.checkout-result { padding-bottom: 24px; }
.checkout-steps { padding-bottom: clamp(64px, 9vw, 120px); }
.checkout-steps ol { margin: 8px 0 28px; padding-left: 1.2em; color: var(--muted); }
.checkout-steps li { margin: 0 0 12px; line-height: 1.6; }
.checkout-steps li strong { color: var(--text); font-weight: 500; }
.checkout-steps a:not(.btn) { color: var(--accent-2); }
.order-ref { font-size: 12px; letter-spacing: .02em; text-align: center; }
.order-ref code { color: var(--text); font-size: 11.5px; word-break: break-all; }
.checkout-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.spec-table td.tbd { color: var(--placeholder); font-weight: 500; }
.table-wrap { overflow-x: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.about-photo figcaption { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--accent); font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1.35; color: #e4e0d8; }
.about-photo .cap-title { font-style: normal; font-weight: 500; color: var(--text); }
@media (max-width: 860px) { .about-photo .cap-title { display: block; } .about-photo .cap-sep { display: none; } }
.bio p { font-size: clamp(16.5px, 1.25vw, 18px); line-height: 1.8; color: #d9d5cd; margin: 0 0 1.2em; }
.bio p:first-child { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--text); }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.about-copy h1 { font-size: clamp(44px, 5vw, 70px); font-weight: 400; }
.about-copy h2 { font-size: 28px; margin-top: 1.6em; font-weight: 500; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 460px; order: 2; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 88px); }
.form { display: grid; gap: 18px; }
.form .field-row { gap: 18px; }
textarea { min-height: 170px; resize: vertical; }
.form-status { display: none; padding: 14px 16px; border-radius: 3px; font-size: 14.5px; border: 1px dashed rgba(224,164,58,.5); background: rgba(224,164,58,.06); color: #e7d3ad; }
.form-status.is-visible { display: block; }
.side-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px; padding: 26px; }
.side-card h2 { font-size: 26px; }
.side-card + .side-card { margin-top: 18px; }
.ig-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-2); font-weight: 400; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form .field-row, .field-row { grid-template-columns: 1fr; } .print-card .field-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Credits ---------- */
.credits-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.credits-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; background: #08080a; }
.footer-inner { width: min(var(--maxw), 100% - 48px); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a, .footer-ig { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #cfcac1; }
.footer-nav a:hover, .footer-ig:hover { color: #fff; }
.footer-ig { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: .04em; font-size: 14px; }
.footer-legal { width: min(var(--maxw), 100% - 48px); margin: 40px auto 0; font-size: 12px; color: #77736c; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.footer-legal a { color: #9b978f; border-bottom: 1px solid rgba(255,255,255,.15); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; background: #060607;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 84px 20px; }
.lb-img {
  max-width: 100%; max-height: calc(100% - 70px); width: auto; height: auto; object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,.6); opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.lb-img.is-loaded { opacity: 1; }
.lb-cap { min-height: 70px; padding-top: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 900px; }
.lb-title { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.lb-meta { font-size: 12px; color: var(--muted); letter-spacing: .06em; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.lb-meta a { color: var(--accent-2); }
.lb-btn {
  position: absolute; z-index: 2; background: none; border: 0; color: #d9d5ce; cursor: pointer;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s, color .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 26px; left: 26px; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.lb-spinner { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; opacity: 0; transition: opacity .2s; }
.lb.is-loading .lb-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
body.lb-open { overflow: hidden; }
@media (max-width: 700px) {
  .lb-stage { padding: 56px 0 12px; }
  .lb-img { max-height: calc(100% - 96px); }
  .lb-cap { padding: 12px 16px 0; min-height: 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; width: 46px; height: 46px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-count { top: 22px; left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}
.page-checkout #main { min-height: calc(100vh - 220px); }
