/* An image sequence, distinct from the product explorer above. */
.gallery-section {
  --gallery-gutter: max(32px, calc((100vw - 1200px) / 2));
  --gallery-slide: min(1040px, calc(100vw - 2 * var(--gallery-gutter) - 140px));
  background: transparent;
  padding: 65px 0 105px;
  color: #f4f4f6;
  scroll-margin-top: 45px;
}
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 var(--gallery-gutter) 38px; }
.gallery-heading h2 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 500; line-height: 1.12; letter-spacing: -.045em; margin: 0; }
.gallery-navigation:not([hidden]) { display: flex; align-items: center; gap: 10px; }
.gallery-position { font: 12px/1 ui-monospace, Consolas, monospace; letter-spacing: .04em; color: #838792; white-space: nowrap; margin-right: 17px; }
.gallery-position [data-gallery-current] { color: #eeeeef; }
.gallery-position-divider { padding-inline: 11px; }
.gallery-navigation button { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 1px solid #45464c; border-radius: 50%; background: transparent; color: #e8e8ed; transition: background .2s, border-color .2s; }
.gallery-navigation button:hover:not(:disabled) { background: #202126; border-color: #9699a3; }
.gallery-navigation button:disabled { opacity: .3; cursor: default; }
.gallery-navigation svg, .gallery-zoom svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gallery-track { position: relative; display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gallery-gutter); scrollbar-width: none; padding: 5px var(--gallery-gutter) 10px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 var(--gallery-slide); min-width: 0; margin: 0; scroll-snap-align: start; }
.gallery-slide .gallery-enlarge { display: block; position: relative; overflow: hidden; border-radius: 12px; background: #141416; }
.gallery-slide .gallery-photo { display: block; width: 100%; height: auto; aspect-ratio: 1.95; object-fit: cover; object-position: center; transition: transform .65s cubic-bezier(.2,.6,.2,1); }
.gallery-slide:nth-child(2) .gallery-photo { object-position: center 35%; }
.gallery-slide:nth-child(3) .gallery-photo { object-fit: contain; background: #121213; }
.gallery-slide .gallery-enlarge:hover .gallery-photo { transform: scale(1.025); }
.gallery-zoom { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #ffffff42; border-radius: 50%; background: #08090cb3; color: #fff; backdrop-filter: blur(8px); }
.gallery-slide figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 23px; }
.gallery-slide h3 { margin: 0; font-size: 23px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.gallery-slide figcaption p { margin: 9px 0 0; font-size: 14px; line-height: 1.65; color: #969aa5; }
.gallery-slide-number { color: #9d8066; font: 12px/1 ui-monospace, Consolas, monospace; }
.gallery-navigation button:focus-visible, .gallery-enlarge:focus-visible { outline: 2px solid #eee; outline-offset: 4px; }
.gallery-track:focus-visible { outline: 1px solid #777b86; outline-offset: -1px; }
#photo-dialog { padding: 56px 20px 20px; border-color: #36383e; border-radius: 12px; background: #0b0b0d; }
#photo-dialog::backdrop { background: #000d; backdrop-filter: blur(10px); }
#photo-dialog .dialog-close { width: 44px; height: 44px; top: 6px; right: 8px; border-radius: 50%; }
#photo-dialog .dialog-close:hover { background: #242529; }
#photo-dialog img { border-radius: 3px; }
#photo-dialog p { font-size: 14px; color: #b6b8c0; margin: 16px 0 0; }
@media (max-width: 1050px) {
  .gallery-section { --gallery-slide: calc(100vw - 2 * var(--gallery-gutter) - 70px); padding-block: 60px 80px; }
  .gallery-heading { margin-bottom: 28px; }
  .gallery-track { gap: 18px; }
  .gallery-slide .gallery-photo { aspect-ratio: 1.65; }
}
@media (max-width: 600px) {
  .gallery-section { --gallery-gutter: 20px; --gallery-slide: calc(100vw - 56px); padding-block: 45px 65px; }
  .gallery-heading { align-items: flex-start; gap: 18px; }
  .gallery-heading h2 { max-width: 180px; font-size: 33px; }
  .gallery-position { display: none; }
  .gallery-navigation:not([hidden]) { gap: 7px; padding-top: 2px; }
  .gallery-navigation button { width: 44px; height: 44px; }
  .gallery-track { gap: 14px; }
  .gallery-slide .gallery-photo { aspect-ratio: 1.08; }
  .gallery-slide:nth-child(2) .gallery-photo { object-position: 30% center; }
  .gallery-slide .gallery-enlarge { border-radius: 9px; }
  .gallery-zoom { right: 13px; bottom: 13px; }
  .gallery-slide figcaption { padding-top: 19px; gap: 12px; }
  .gallery-slide h3 { font-size: 20px; }
  .gallery-slide figcaption p { font-size: 13px; margin-top: 8px; }
  .gallery-slide-number { font-size: 11px; padding-top: 5px; }
  #photo-dialog { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-slide .gallery-photo, .gallery-navigation button { transition: none; }
}
