/* Galleries (product page) and the scaled preview of the price board. */
.gal { margin: clamp(28px, 5vw, 56px) 0 0; }
.gal-head { display: grid; gap: 6px; margin-bottom: 16px; text-align: center; }
.gal-head h2 { margin: 0; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.gal-head p { margin: 0; color: var(--muted); }
.gal-stage { position: relative; max-width: 980px; margin-inline: auto; }
.gal-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 22px; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: grid; gap: 10px; }
.gal-slide > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid var(--line); border-radius: 22px; background: rgba(0, 0, 0, 0.35); }
.gal-slide figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; padding-inline: 8px; }
.gal-slide figcaption b { color: var(--text); }
.gal-nav { position: absolute; top: calc(50% - 20px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 8, 6, 0.82); cursor: pointer; backdrop-filter: blur(6px); }
.gal-nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-top: 2px solid var(--gold-hi); border-right: 2px solid var(--gold-hi); }
.gal-nav:hover { background: rgba(60, 44, 12, 0.9); }
.gal-nav[disabled] { opacity: 0.3; cursor: default; }
.gal-prev { inset-inline-start: 10px; } .gal-next { inset-inline-end: 10px; }
html[dir="ltr"] .gal-prev::before { transform: rotate(-135deg); translate: 2px 0; } html[dir="ltr"] .gal-next::before { transform: rotate(45deg); translate: -2px 0; }
html[dir="rtl"] .gal-prev::before { transform: rotate(45deg); translate: -2px 0; } html[dir="rtl"] .gal-next::before { transform: rotate(-135deg); translate: 2px 0; }
.gal-dots { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
.gal-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.22); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.gal-dots button.is-on { background: var(--gold-hi); transform: scale(1.35); }
.gal-count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; margin-inline-start: 8px; }
/* a bot post on a slide */
.gal-slide .bt-mock { max-width: 360px; margin-inline: auto; width: 100%; }
.gal-bot { display: grid; justify-items: center; padding: 10px 0 4px; }
/* the scaled page; a story preview is tall (data-w / data-h give the size of the page inside) */
.pv.is-story { aspect-ratio: 9 / 16; width: min(100%, 300px); margin-inline: auto; }
.pv { position: relative; direction: ltr; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #000; }
.pv iframe { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; background: #000; pointer-events: none; }
.pv-wrap { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pv-wrap h3 { margin: 0; font-size: 1.02rem; }
@media (prefers-reduced-motion: reduce) { .gal-dots button { transition: none; } }
/* on wide screens the arrows sit outside the picture */
@media (min-width: 1100px) { .gal-prev { inset-inline-start: -58px; } .gal-next { inset-inline-end: -58px; } }
