/* Harbor2Arbor watch-first product gallery — shared by SWN, Wardroom,
   direct-sale watches and refurbished watches. It intentionally wins over
   older fixed-height single-photo frames from styles.css. */
main.container .wu-watch-gallery.h2a-photo-gallery,
main.container .h2a-photo-gallery {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  padding: 3px;
  overflow: visible;
  background: #fff;
  border: 0;
}
main.container .wu-watch-gallery.h2a-photo-gallery {position: sticky; top: 18px}
main.container .wu-b2b-detail-photo:has(.h2a-photo-gallery),
main.container .h2a-fleet-detail-art:has(.h2a-photo-gallery) {
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding: 4px;
  align-items: stretch;
}
main.container .wu-watch-layout:has(.h2a-photo-gallery) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 38px);
}
.h2a-photo-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(130,130,130,.17);
  border-radius: 10px;
}
main.container .h2a-photo-gallery .h2a-photo-stage img.h2a-photo-main {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: white;
  cursor: zoom-in;
}
.h2a-gallery-enlarge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border: 1px solid #b4a486;
  background: rgba(255,255,255,.96);
  color: #203741;
  border-radius: 7px;
  padding: 10px 14px;
  font: 650 .81rem/1.3 system-ui,sans-serif;
  cursor: zoom-in;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.h2a-gallery-enlarge:hover {background: #f5efe2}
.h2a-gallery-enlarge:focus-visible,
.h2a-photo-thumb:focus-visible,
.h2a-lightbox-controls button:focus-visible {outline: 3px solid #9d783a; outline-offset: 3px}
.h2a-photo-thumbnails {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 3px 1px 9px;
}
.h2a-photo-thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 84px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 7px;
  padding: 3px;
  cursor: pointer;
  scroll-snap-align: start;
}
.h2a-photo-thumb[aria-pressed="true"]{border: 2px solid #a98239}
main.container .h2a-photo-thumb img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  max-height: 100%;
}
.h2a-photo-lightbox {
  box-sizing: border-box;
  width: min(96vw, 1200px);
  max-width: none;
  max-height: 95dvh;
  padding: 0;
  background: #fff;
  color: #253943;
  border: 1px solid #cab891;
  border-radius: 12px;
  box-shadow: 0 16px 80px rgba(0,0,0,.35);
  overflow: hidden;
}
.h2a-photo-lightbox::backdrop {background: rgba(4,17,23,.89)}
.h2a-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 15px;
  background: #f6f4ef;
  border-bottom: 1px solid #ddd4c2;
}
.h2a-lightbox-hint{font: 600 .78rem system-ui,sans-serif;margin-right:auto}
.h2a-lightbox-controls button{
  cursor:pointer;border:1px solid #ae9f83;background:#fff;border-radius:6px;
  padding:9px 12px;font:600 .8rem system-ui,sans-serif;
}
.h2a-lightbox-stage {
  display:grid;
  place-items:center;
  height: min(76dvh, 940px);
  max-height: calc(95dvh - 105px);
  width:100%;
  overflow:hidden;
  background:#fff;
}
main.container .h2a-lightbox-stage img[data-h2a-lightbox-photo] {
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:contain;
  transform:scale(1);
  transition:transform .14s ease;
  cursor:zoom-in;
}
.h2a-photo-lightbox[data-zoomed="true"] img[data-h2a-lightbox-photo] {
  transform:scale(2);
  cursor:crosshair;
}
.h2a-lightbox-footnote{margin:0;padding:8px 14px;color:#626f73;font-size:.75rem}
.h2a-watch-description{
  margin:16px 0 20px;padding:16px 0;border-top:1px solid rgba(140,140,140,.2)
}
.h2a-watch-description h2{font-size:1.16rem;line-height:1.35;margin:0 0 8px}
.h2a-watch-description p{line-height:1.65;margin:0 0 10px;overflow-wrap:anywhere}
.h2a-description-caution{color:#756b60;font-size:.85rem}
@media(max-width:920px) {
  main.container .wu-watch-gallery.h2a-photo-gallery {position: static}
  main.container .wu-watch-layout:has(.h2a-photo-gallery) {grid-template-columns:1fr}
}
@media(max-width:660px){
  .h2a-gallery-enlarge{padding:9px 12px;font-size:.77rem}
  .h2a-photo-thumb{flex-basis:64px;width:64px;height:69px}
  main.container .h2a-photo-thumb img{height:62px}
  .h2a-watch-description{padding:12px 0}
  .h2a-lightbox-hint{display:none}
  .h2a-lightbox-controls{justify-content:space-between}
  .h2a-photo-lightbox{width:100vw;height:96dvh;max-height:96dvh;border-radius:0}
  .h2a-lightbox-stage{height:calc(96dvh - 118px);max-height:none}
}
@media(prefers-reduced-motion:reduce) {
  .h2a-lightbox-stage img[data-h2a-lightbox-photo]{transition:none}
}
