/* Homepage gallery panorama and mobile featured-product rail. */
body.home .ea-workshop-panorama {
  overflow: hidden;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--ea-home-line);
  background: var(--ea-home-paper);
}

body.home .ea-workshop-panorama__header,
body.home .ea-workshop-panorama__status {
  box-sizing: border-box;
  width: min(100%, var(--ea-home-content-max));
  margin-inline: auto;
  padding-inline: 24px;
}

body.home .ea-workshop-panorama__header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  margin-bottom: 24px;
}

body.home .ea-workshop-panorama__heading h2 {
  margin: 0;
  color: var(--ea-home-ink);
  font: 800 30px/1 Outfit, system-ui, sans-serif;
}

body.home .ea-workshop-panorama__hint {
  margin: 0;
  color: var(--ea-home-muted);
  font: 700 12px/1.25 "Space Grotesk", system-ui, sans-serif;
  white-space: nowrap;
}

body.home .ea-workshop-panorama__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

body.home .ea-workshop-panorama__actions :is(button, a) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--ea-home-ink);
  border-radius: 4px;
  color: #fff;
  background: var(--ea-home-ink);
  font: 800 10px/1 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body.home .ea-workshop-panorama__actions a {
  color: var(--ea-home-ink);
  background: var(--ea-home-paper);
}

body.home .ea-workshop-panorama__actions :is(button, a):hover {
  color: #fff;
  background: #343431;
  transform: translateY(-1px);
}

body.home .ea-workshop-panorama__actions button:disabled {
  border-color: var(--ea-home-line);
  color: #8b8b86;
  background: #ecece8;
  transform: none;
  cursor: default;
}

body.home .ea-workshop-panorama__actions :is(button, a):focus-visible,
body.home .ea-workshop-panorama__rail:focus-visible,
body.home .ea-workshop-panorama__slide:focus-visible {
  outline: 3px solid rgba(169, 72, 44, .36);
  outline-offset: 3px;
}

body.home .ea-workshop-panorama__rail {
  display: flex;
  gap: 16px;
  width: 100%;
  padding: 0 18vw 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 18vw;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x pan-y;
}

body.home .ea-workshop-panorama__rail::-webkit-scrollbar { display: none; }

body.home .ea-workshop-panorama__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

body.home .ea-workshop-panorama__slide {
  position: relative;
  width: 64vw;
  max-width: 1120px;
  min-width: 620px;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #e8e8e4;
  scroll-snap-align: center;
  cursor: zoom-in;
}

body.home .ea-workshop-panorama__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ea-reel-focus, 50% 50%);
  transition: transform 220ms ease;
}

body.home .ea-workshop-panorama__slide:hover img { transform: scale(1.018); }

body.home .ea-workshop-panorama__status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(160px, 28%);
  align-items: center;
  gap: 18px;
  padding-top: 17px;
  color: var(--ea-home-muted);
  font: 700 12px/1.3 "Space Grotesk", system-ui, sans-serif;
}

body.home .ea-workshop-panorama__count {
  color: var(--ea-home-ink);
  font-variant-numeric: tabular-nums;
}

body.home .ea-workshop-panorama__progress {
  display: block;
  height: 2px;
  overflow: hidden;
  background: var(--ea-home-line);
}

body.home .ea-workshop-panorama__progress span {
  display: block;
  width: 14.2857%;
  height: 100%;
  background: var(--ea-home-ink);
  transition: width 180ms ease;
}

@media (max-width: 760px) {
  body.home .ea-workshop-panorama { padding: 34px 0 34px; }

  body.home .ea-workshop-panorama__header,
  body.home .ea-workshop-panorama__status { padding-inline: 14px; }

  body.home .ea-workshop-panorama__header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin-bottom: 17px;
  }

  body.home .ea-workshop-panorama__heading { grid-column: 1 / -1; }

  body.home .ea-workshop-panorama__heading h2 { font-size: 30px; }

  body.home .ea-workshop-panorama__hint {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    margin: 0;
    white-space: normal;
  }

  body.home .ea-workshop-panorama__actions {
    grid-column: 2;
    grid-row: 2;
  }

  body.home .ea-workshop-panorama__actions :is(button, a) {
    min-height: 42px;
    padding-inline: 11px;
    font-size: 9px;
  }

  body.home .ea-workshop-panorama__actions a { display: none; }

  body.home .ea-workshop-panorama__rail {
    gap: 10px;
    padding: 0 14px 7px;
    scroll-padding-inline: 14px;
  }

  body.home .ea-workshop-panorama__slide {
    width: 84vw;
    min-width: 0;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }

  body.home .ea-workshop-panorama__status {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-top: 13px;
  }

  body.home .ea-workshop-panorama__progress { grid-column: 1 / -1; }

  html body.home main.ea-home .ea-featured-products,
  html body.home main.ea-home .ea-featured-products__inner { overflow: hidden !important; }

  html body.home main.ea-home .ea-featured-products { padding-inline: 0 !important; }
  html body.home main.ea-home .ea-featured-products__header { padding-inline: 14px !important; }

  html body.home main.ea-home .ea-featured-products .ea-product-grid,
  html body.home main.ea-home .ea-featured-products .ea-featured-products-grid {
    display: flex !important;
    grid-template-columns: none !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 14px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain !important;
    scroll-padding-inline: 14px !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
  }

  html body.home main.ea-home .ea-featured-products .ea-featured-products-grid::-webkit-scrollbar { display: none !important; }

  html body.home main.ea-home .ea-featured-products .ea-featured-products-grid > * {
    box-sizing: border-box !important;
    width: min(84vw, 360px) !important;
    min-width: min(84vw, 360px) !important;
    max-width: min(84vw, 360px) !important;
    flex: 0 0 min(84vw, 360px) !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .ea-workshop-panorama__actions :is(button, a),
  body.home .ea-workshop-panorama__slide img,
  body.home .ea-workshop-panorama__progress span { transition: none; }

  body.home .ea-workshop-panorama__rail { scroll-behavior: auto; }
}
