/* Scoped product gallery. Sources keep their ratios, colour and full silhouette. */
.woocommerce div.product.luxygo-has-product-gallery {
  grid-template-columns: minmax(0, 1.78fr) minmax(290px, 1fr);
  column-gap: clamp(28px, 3vw, 48px);
  align-items: start;
}
.luxygo-gallery { min-width: 0; max-width: 100%; color: var(--ink, #20241f); }
.luxygo-gallery [hidden] { display: none !important; }
.luxygo-gallery__heading { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin: 0 0 18px; font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.luxygo-gallery__hint { letter-spacing: 0; text-transform: none; color: #6b706a; font-size: 12px; }
.luxygo-gallery__track {
  position: relative;
  display: flex;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.luxygo-gallery__track::-webkit-scrollbar { display: none; }
.luxygo-gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.luxygo-gallery__track.is-dragging a { pointer-events: none; }
.luxygo-gallery__slide { position: relative; flex: 0 0 44%; min-width: 0; margin: 0; scroll-snap-align: center; scroll-snap-stop: normal; }
.luxygo-gallery__slide--open, .luxygo-gallery__slide--scale { flex-basis: 60%; }
.luxygo-gallery__slide--wide { flex-basis: 88%; }
.luxygo-gallery__slide--lifestyle { flex-basis: 100%; }
.luxygo-gallery__slide--profile { flex-basis: 36%; }
.luxygo-gallery[data-gallery-count="1"] .luxygo-gallery__slide { flex-basis: 100%; }
.luxygo-gallery__open {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(430px, 36vw, 580px);
  padding: clamp(18px, 2.4vw, 38px) 12px;
  border: 1px solid #eeefeb;
  background: #fff;
  text-decoration: none;
  cursor: zoom-in;
  box-sizing: border-box;
}
.luxygo-gallery__open img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; user-select: none; }
.luxygo-gallery__slide--front .luxygo-gallery__open img, .luxygo-gallery__slide--back .luxygo-gallery__open img { width: 88%; height: 88%; }
.luxygo-gallery__slide--lifestyle .luxygo-gallery__open { padding: 0; background: #f4f4f1; }
.luxygo-gallery__expand { position: absolute; bottom: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #dedfd8; border-radius: 50%; background: rgba(255,255,255,.94); color: #20241f; font-size: 22px; line-height: 1; transition: background .18s; }
.luxygo-gallery__open:hover .luxygo-gallery__expand { background: #f0f1ea; }
.luxygo-gallery__slide figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-height: 66px; padding: 16px 3px 8px; font-size: 12px; line-height: 1.5; }
.luxygo-gallery__slide figcaption strong { font-size: 12px; font-weight: 500; color: #252a24; }
.luxygo-gallery__slide figcaption span { color: #62685f; max-width: 40ch; }
.luxygo-gallery__navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 0; padding-top: 15px; border-top: 1px solid #dedfd8; }
.luxygo-gallery__status { display: flex; align-items: baseline; gap: 18px; margin: 0; font-size: 12px; line-height: 1.3; }
.luxygo-gallery__status [data-gallery-position] { font-variant-numeric: tabular-nums; letter-spacing: .1em; color: #747a70; white-space: nowrap; }
.luxygo-gallery__status [data-gallery-label] { font-weight: 500; }
.luxygo-gallery__arrows { display: flex; gap: 8px; }
.luxygo-gallery button { font-family: inherit; cursor: pointer; }
.luxygo-gallery__arrows button, .luxygo-gallery__dialog-footer button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #cfd3c9; border-radius: 50%; color: #252a24; background: #fff; font-size: 22px; line-height: 1; }
.luxygo-gallery button:disabled { opacity: .3; cursor: default; }
.luxygo-gallery__arrows button:hover:not(:disabled), .luxygo-gallery__dialog-footer button:hover:not(:disabled) { background: #f0f1ea; }
.luxygo-gallery__rail { display: flex; gap: 12px; margin-top: 18px; padding: 2px 2px 8px; overflow-x: auto; max-width: 100%; scrollbar-width: thin; overscroll-behavior-x: contain; }
.luxygo-gallery__thumbnail { flex: 0 0 80px; display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 0; border: 0; background: transparent; color: #737a6b; font-size: 10px; line-height: 1.35; text-align: center; }
.luxygo-gallery__thumbnail img { width: 78px; height: 78px; object-fit: contain; box-sizing: border-box; padding: 7px; border: 1px solid #e6e8e0; background: #fff; transition: border-color .16s; }
.luxygo-gallery__thumbnail[aria-current="true"] { color: #242b1e; }
.luxygo-gallery__thumbnail[aria-current="true"] img { border-color: #536047; }
.luxygo-gallery__empty { padding: 80px 24px; margin: 0; border: 1px solid #e5e7df; text-align: center; font-size: 14px; }
.luxygo-gallery :focus-visible { outline: 2px solid #536047; outline-offset: 3px; }
.luxygo-gallery__track:focus-visible { outline-offset: 2px; }
.luxygo-gallery__dialog {
  width: min(1440px, calc(100vw - 48px));
  height: min(980px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  color: #20241f;
  background: #fff;
  box-shadow: 0 18px 100px rgba(0,0,0,.18);
  overflow: hidden;
}
.luxygo-gallery__dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.luxygo-gallery__dialog::backdrop { background: rgba(26,30,23,.72); }
.luxygo-gallery__dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 24px; border-bottom: 1px solid #ebede6; }
.luxygo-gallery__dialog-bar > span { font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.luxygo-gallery__dialog-bar > div { display: flex; gap: 14px; align-items: center; }
.luxygo-gallery__dialog-bar button { min-height: 44px; border: 0; padding: 8px 10px; background: #fff; color: #20241f; font-size: 12px; }
.luxygo-gallery__dialog-bar button:hover { background: #f3f4ef; }
.luxygo-gallery__dialog-bar [data-zoom-close] span { margin-left: 10px; font-size: 22px; vertical-align: -1px; }
.luxygo-gallery__zoom-viewport { display: flex; align-items: center; justify-content: center; overflow: auto; min-width: 0; min-height: 0; padding: 24px; touch-action: pan-x pan-y pinch-zoom; }
.luxygo-gallery__zoom-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; flex: 0 0 auto; }
.luxygo-gallery__dialog.is-zoomed .luxygo-gallery__zoom-viewport { display: block; }
.luxygo-gallery__dialog.is-zoomed .luxygo-gallery__zoom-image { width: var(--full-width); max-width: none; max-height: none; margin: 0 auto; }
.luxygo-gallery__dialog-footer { display: grid; grid-template-columns: 46px minmax(0,1fr) 46px; align-items: center; gap: 20px; padding: 14px 24px; border-top: 1px solid #ebede6; }
.luxygo-gallery__dialog-footer p { margin: 0; text-align: center; font-size: 13px; line-height: 1.5; }
@media (max-width: 1023px) {
  .woocommerce div.product.luxygo-has-product-gallery { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .luxygo-gallery__slide, .luxygo-gallery__slide--open, .luxygo-gallery__slide--wide, .luxygo-gallery__slide--scale, .luxygo-gallery__slide--lifestyle, .luxygo-gallery__slide--profile { flex-basis: calc(100% - 24px); }
  .luxygo-gallery__open { height: clamp(390px, 65vw, 620px); padding: 28px 24px; }
  .luxygo-gallery__track { gap: 12px; }
  .luxygo-gallery__slide figcaption { min-height: 60px; padding-top: 13px; }
  .luxygo-gallery__navigation { margin-top: 10px; }
}
@media (max-width: 520px) {
  .luxygo-gallery__heading { margin-bottom: 12px; font-size: 10px; }
  .luxygo-gallery__hint { font-size: 11px; }
  .luxygo-gallery__open { height: clamp(360px, 106vw, 470px); padding: 28px 18px; }
  .luxygo-gallery__slide figcaption { min-height: 64px; }
  .luxygo-gallery__rail { gap: 10px; margin-top: 15px; }
  .luxygo-gallery__thumbnail { flex-basis: 70px; }
  .luxygo-gallery__thumbnail img { width: 68px; height: 68px; padding: 5px; }
  .luxygo-gallery__dialog { width: 100vw; height: 100dvh; margin: 0; }
  .luxygo-gallery__dialog-bar { gap: 8px; padding: 8px 12px; }
  .luxygo-gallery__dialog-bar > div { gap: 3px; }
  .luxygo-gallery__dialog-bar button { font-size: 11px; padding-inline: 8px; }
  .luxygo-gallery__zoom-viewport { padding: 18px 12px; }
  .luxygo-gallery__dialog-footer { gap: 10px; padding: 12px; }
  .luxygo-gallery__dialog-footer p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .luxygo-gallery * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .luxygo-gallery__track { display: block; overflow: visible; }
  .luxygo-gallery__slide { display: none; }
  .luxygo-gallery__slide:first-child { display: block; }
  .luxygo-gallery__open { height: 350px; border: 0; }
  .luxygo-gallery__navigation, .luxygo-gallery__rail, .luxygo-gallery__expand, .luxygo-gallery__dialog { display: none !important; }
}
