/* Pages rebuilt from Squarespace (migrate/build.js). Recreates Squarespace's layout grid with the same maths:
   desktop 24 columns inside min(1800px, 92vw) with 4vw gutters, rows = container width x 0.0215;
   phones (<=767px) 8 columns inside 88vw with 6vw gutters and fixed 24px rows. */
/* Inner pages sit below the header (only the home hero runs under it) */
body.page main { padding-top: calc(var(--top-h) + env(safe-area-inset-top)); }
.sec { position: relative; overflow: hidden; }
.sec-bg { position: absolute; inset: 0; z-index: 0; }
.sec-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sec-ov { position: absolute; inset: 0; }
.sec > :not(.sec-bg):not(.sec-stroke):not(.clipdefs) { position: relative; z-index: 1; }
.clipdefs { position: absolute; }
.sec-stroke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.vid { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

.fe { --cw: min(1800px, 92vw); --gut: calc(4vw - 11px); display: grid;
  grid-template-columns: minmax(var(--gut), 1fr) repeat(24, minmax(0, calc((var(--cw) - 11px * 23) / 24))) minmax(var(--gut), 1fr);
  grid-template-rows: repeat(var(--rows), minmax(calc(var(--cw) * 0.0215), auto)); }
@media (max-width: 767px) {
  .fe { --cw: min(1800px, 88vw); --gut: calc(6vw - 11px); grid-template-rows: repeat(var(--rows), minmax(24px, auto));
    grid-template-columns: minmax(var(--gut), 1fr) repeat(8, minmax(0, calc((var(--cw) - 11px * 7) / 8))) minmax(var(--gut), 1fr); }
}
.feb { position: relative; min-width: 0; display: flex; flex-direction: column; }
.fe-text { justify-content: flex-start; }
.fe-button, .fe-line { justify-content: center; }
.tx > :first-child { margin-top: 0 !important; }
.tx > :last-child { margin-bottom: 0 !important; }
.tx a { color: inherit; }
.tx p, .tx h1, .tx h2, .tx h3, .tx h4 { overflow-wrap: break-word; }

/* Images fill their grid area like Squarespace's fluid image blocks */
.fe-image .im { position: absolute; inset: 0; overflow: hidden; }
.fe-image .im img, .fe-image .im a { width: 100%; height: 100%; display: block; }
.clb.fe-image .im { position: relative; overflow: hidden; }
.clb.fe-image .im img { width: 100%; height: auto; display: block; }

/* Buttons keep the computed Squarespace style (inline per page); glass ones get the NYE shine from styles.css */
.btn-wrap { display: flex; width: 100%; }
.sq-btn { display: inline-block; text-decoration: none; text-align: center; transition: opacity .2s; }
.sq-btn:not(.glass):hover { opacity: .8; }

/* Classic 12-column sections stack on phones */
.clr { display: flex; gap: 0 22px; }
.clc { min-width: 0; }
.clb { margin: 17px 0; }
@media (max-width: 767px) { .cl { width: auto !important; padding: 0 6vw; } .clr { flex-direction: column; } .clc { flex-basis: auto !important; } }

/* Scrolling text (Squarespace marquee block) */
.mq { overflow: hidden; width: 100%; height: 100%; display: flex; align-items: center; }
.mq-track { display: flex; gap: 1em; white-space: nowrap; width: max-content; animation: mq 40s linear infinite; }
.mq-item { display: inline-block; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* Photo reel (gallery sections + gallery blocks) */
.reel-wrap { position: relative; }
.reel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel img { flex: 0 0 auto; object-fit: cover; scroll-snap-align: start; display: block; }
.reel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.85); color: #000; font-size: 28px; line-height: 1; }
.reel-btn.prev { left: 12px; } .reel-btn.next { right: 12px; }
.gal { display: flex; gap: 8px; overflow-x: auto; height: 100%; }
.gal img { height: 100%; width: auto; object-fit: cover; }

/* Store products */
.prods { display: grid; gap: 22px; margin: 0 auto; }
.prod img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.prod .pt, .prod .pp { margin: 10px 0 0; }
@media (max-width: 767px) { .prods { width: auto !important; padding: 0 6vw; } }

/* Embedded forms */
.code { width: 100%; }
.code iframe { max-width: 100%; }
body.page.bare main { padding-top: 0; }
.code svg { max-width: 100%; height: auto; }
.sec-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fe-image .im img { border-radius: inherit; }
body.page.overlay-header main { padding-top: 0; }
