/* Shared enlarged product views. Loaded only by the three opted-in tours. */
.gallery-preview { position: relative; min-width: 0; }
.gallery-preview__open {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: zoom-in;
}
.gallery-preview__label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #ffffff45;
  border-radius: 6px;
  background: #173f38ed;
  font: 500 12px/1.4 "IBM Plex Sans", sans-serif;
  box-shadow: 0 2px 8px #0002;
}
.gallery-preview__label > span { font-size: 18px; line-height: 1; }
.gallery-preview__open:hover .gallery-preview__label { background: #0b6e61; }
.gallery-preview__open:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
/* Crossfading panels must never expose an invisible focus target. */
[data-zoomable] .heroshow__panel:not([data-active="true"]) { pointer-events: none; }
html.gallery-is-open { overflow: hidden; scrollbar-gutter: stable; }
.gallery-viewer {
  width: calc(100vw - 48px);
  max-width: 1800px;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #d4d7dc;
  border-radius: 14px;
  background: #fff;
  color: #172b4d;
  box-shadow: 0 24px 100px #0006;
  overflow: hidden;
}
.gallery-viewer[open] { display: flex; flex-direction: column; }
.gallery-viewer::backdrop { background: #14171ad9; }
.gallery-viewer__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px 8px; flex: none; }
.gallery-viewer__heading { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.gallery-viewer__count { color: #626f86; font-size: 13px; white-space: nowrap; }
.gallery-viewer h2 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.3px; }
.gallery-viewer button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #c7cdd3;
  border-radius: 7px;
  background: #fff;
  color: #243b36;
  font: 500 14px/1.3 "IBM Plex Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.gallery-viewer button:hover { background: #eef6f3; border-color: #0b6e61; }
.gallery-viewer button:focus-visible, .gallery-viewer__viewport:focus-visible { outline: 3px solid #0b6e61; outline-offset: -3px; }
.gallery-viewer__close { flex: none; }
.gallery-viewer__close span { padding-left: 5px; font-size: 20px; }
.gallery-viewer__toolbar { display: flex; justify-content: center; gap: 10px; padding: 0 24px 14px; flex: none; }
.gallery-viewer__toolbar [data-gallery-zoom] { min-width: 126px; }
.gallery-viewer__viewport {
  display: flex;
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #e9edf0;
  border-block: 1px solid #d4d7dc;
}
.gallery-viewer__canvas { position: relative; flex: none; margin: auto; }
.gallery-viewer__content { position: absolute; top: 0; left: 0; max-width: none; margin: 0; transform-origin: top left; }
img.gallery-viewer__content { height: auto; border-radius: 4px; }
.gallery-viewer .shot__body { grid-template-columns: 150px 1fr; min-height: 320px; }
.gallery-viewer .shot__rail, .gallery-viewer .shot__composer { display: flex; }
.gallery-viewer .cal__head, .gallery-viewer .cal__grid { grid-template-columns: 44px repeat(5, 1fr); }
.gallery-viewer .cal__head span { display: flex; }
.gallery-viewer .cal__col { display: block; }
.gallery-viewer__footer { padding: 14px 24px 16px; flex: none; }
.gallery-viewer__caption { margin: 0; font-size: 15px; line-height: 1.5; }
.gallery-viewer #gallery-help { margin: 6px 0 0; color: #626f86; font-size: 12px; line-height: 1.4; }
@media (max-width: 600px) {
  .gallery-viewer { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
  .gallery-viewer__header { padding: 12px 12px 8px; gap: 8px; }
  .gallery-viewer__heading { flex-direction: column; gap: 3px; }
  .gallery-viewer h2 { font-size: 17px; }
  .gallery-viewer__toolbar { gap: 8px; padding: 0 12px 12px; }
  .gallery-viewer__toolbar button { flex: 1; padding-inline: 8px; }
  .gallery-viewer__toolbar [data-gallery-zoom] { min-width: 114px; }
  .gallery-viewer__footer { padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .gallery-viewer__caption { font-size: 13px; }
}
