.gallery { min-width: 0; }
.gallery .thumbs { max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
.gallery .thumb { flex-shrink: 0; padding: 0; }
.gallery .thumb:focus-visible,
.gallery button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; opacity: 1; }
.gallery-view { min-width: 0; }
.gallery .stage { background: #101114; touch-action: pan-y; }
.gallery .stage img { cursor: zoom-in; transition: opacity .22s ease, transform .45s ease; }
.gallery .stage.is-editorial img { padding: 0; }
.gallery .stage.is-studio img { object-fit: cover; }
.gallery .stage.is-studio img[src*="manx-standard-blanc-dynamic-studio"] { object-position: center 25%; }
.gallery .stage.is-changing img { opacity: 0; transform: scale(.985); }
.gallery .stage.is-video video { padding: 0; }
.gallery .stage.is-video .stage-count { top: 12px; bottom: auto; }
.gallery .stage-dots { display: none; }
.gallery-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 14px; }
.gallery-caption { margin: 0; flex: 1 1 100%; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gallery-tool { border: 1px solid var(--line-2); border-radius: 3px; background: #151515; color: var(--ink); font: 500 12px/1.3 var(--sans, sans-serif); padding: 11px 14px; cursor: pointer; min-height: 44px; }
.gallery-tool:hover { border-color: var(--accent); color: var(--accent-soft); }
.gallery-tool[aria-pressed="true"] { background: #302b20; border-color: var(--accent); }
.manx-lightbox { box-sizing: border-box; width: min(1200px, 96vw); max-width: 96vw; height: min(920px, 94dvh); max-height: 94dvh; padding: 0; margin: auto; background: #0b0c0f; color: #f4f1ea; border: 1px solid #454238; border-radius: 8px; overflow: hidden; }
.manx-lightbox[open] { display: flex; flex-direction: column; }
.manx-lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(7px); }
.manx-lightbox button { min-height: 44px; padding: 10px 15px; background: #191a1e; color: #f4f1ea; border: 1px solid #46443e; border-radius: 4px; cursor: pointer; font: 500 13px/1.3 var(--sans, sans-serif); }
.manx-lightbox button:hover { border-color: #c5b58e; }
.manx-lightbox button:focus-visible { outline: 2px solid #e3c98a; outline-offset: 2px; }
.manx-lightbox button:disabled { opacity: .35; cursor: default; }
.ml-top, .ml-bottom { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 12px; padding: 14px 18px; }
.ml-top p { margin: 0; font-size: 14px; color: #d1cbc0; }
.ml-canvas { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; }
.ml-canvas img { width: 100%; height: 100%; max-width: none; object-fit: contain; user-select: none; -webkit-user-select: none; transform-origin: center; will-change: transform; }
.ml-canvas video { width: 100%; height: 100%; object-fit: contain; }
.manx-lightbox [hidden] { display: none !important; }
.ml-canvas.is-zoomed { cursor: grab; }
.ml-canvas.is-dragging { cursor: grabbing; }
.ml-zoom-controls { display: flex; gap: 6px; align-items: center; }
.ml-help { margin: 0; padding: 0 18px 12px; text-align: center; font-size: 12px; color: #aca89e; line-height: 1.4; }
@media (max-width: 560px) {
  .gallery .thumbs { max-height: none; min-width: 0; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 5px; }
  .gallery-view { order: 1; }
  .gallery .thumbs { order: 2; }
  .gallery-tool { flex: 1; }
  .manx-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .ml-top, .ml-bottom { padding: 10px; gap: 6px; }
  .ml-top p { font-size: 12px; }
  .manx-lightbox button { padding: 9px 10px; font-size: 12px; }
  .ml-bottom { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery .stage img, .gallery .thumb { transition: none; }
}
