/* Origins gallery. Scoped additions to the unchanged version 7 design. */
.story-heading-media, .story-copy { min-width: 0; }
.story-copy { align-self: center; }
.origins-carousel {
  --gallery-red: #ef191b;
  margin-top: 28px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--border, #183b30);
  border-radius: 20px;
  background: var(--paper, #fffcf5);
  box-shadow: 5px 6px 0 rgba(23,62,48,.12);
}
.origins-carousel:focus-visible {
  outline: 3px solid var(--gallery-red);
  outline-offset: 5px;
}
.origins-carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  background: #fff8e9;
}
.origins-slide { margin: 0; width: 100%; height: 100%; }
.origins-slide[hidden] { display: none !important; }
.origins-slide:not([hidden]) { animation: origins-photo-in .3s ease-out; }
.origins-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes origins-photo-in { from { opacity: .5; } to { opacity: 1; } }
.origins-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid var(--border, #183b30);
  border-radius: 50%;
  background: rgba(255,252,245,.94);
  color: #173e30;
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.origins-prev { left: 12px; }
.origins-next { right: 12px; }
.origins-arrow svg {
  display: block; width: 21px; height: 21px; fill: none;
  stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round;
}
.origins-arrow:hover { background: var(--gallery-red); color: white; }
.origins-carousel-controls {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 38px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1.5px solid var(--border, #183b30);
}
.origins-carousel-count { font-size: 11px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.origins-carousel-dots { display: flex; justify-content: center; align-items: center; gap: 1px; }
.origins-dot {
  display: grid; place-items: center; width: 24px; height: 32px;
  padding: 0; border: 0; background: transparent; border-radius: 6px; cursor: pointer;
}
.origins-dot span { width: 7px; height: 7px; border-radius: 50%; background: #b6bfb0; transition: width .15s, background .15s; }
.origins-dot[aria-current="true"] span { width: 18px; border-radius: 8px; background: var(--gallery-red); }
.origins-dot:hover span { background: var(--gallery-red); }
.origins-rotation {
  display: grid; place-items: center; width: 36px; height: 34px;
  padding: 0; border: 1px solid var(--line, #d5ddcf); border-radius: 8px;
  background: transparent; color: #173e30; cursor: pointer;
}
.origins-rotation:hover { background: #fff0e5; border-color: var(--gallery-red); color: var(--gallery-red); }
.origins-pause-symbol { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.origins-play-symbol { display: none; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; margin-left: 2px; }
.origins-rotation.is-paused .origins-pause-symbol { display: none; }
.origins-rotation.is-paused .origins-play-symbol { display: block; }
.origins-carousel button:focus-visible { outline: 3px solid var(--gallery-red); outline-offset: 2px; }
@media (max-width: 760px) {
  .origins-carousel { max-width: 600px; margin-top: 24px; border-radius: 16px; }
  .story-copy { align-self: start; }
}
@media (max-width: 380px) {
  .origins-carousel-controls { padding-inline: 9px; grid-template-columns: 33px minmax(0,1fr) 34px; gap: 5px; }
  .origins-dot { width: 22px; }
  .origins-arrow { width: 38px; height: 38px; }
  .origins-prev { left: 8px; } .origins-next { right: 8px; }
  .origins-rotation { width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .origins-slide:not([hidden]) { animation: none; }
  .origins-carousel * { transition: none !important; }
}
@media print {
  .origins-carousel { break-inside: avoid; box-shadow: none; }
  .origins-arrow, .origins-carousel-controls { display: none !important; }
}
