/* A horizontal detail strip is available even before JavaScript enhancement. */
.preowned-entry:not(.has-preowned-carousel) .preowned-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}
.preowned-entry:not(.has-preowned-carousel) .preowned-gallery figure {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
}
.preowned-entry:not(.has-preowned-carousel) .preowned-gallery img {
  max-height: 440px;
}

.preowned-carousel {
  min-width: 0;
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #080a0a;
  color: #ecebe5;
}
.preowned-carousel-track {
  position: relative;
  display: flex;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.preowned-carousel-track::-webkit-scrollbar { display: none; }
.preowned-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #080a0a;
}
.preowned-carousel-slide > a {
  display: block;
  position: relative;
  width: 100%;
  background: #080a0a;
}
.preowned-carousel-slide > a > img {
  display: block;
  width: 100%;
  height: clamp(380px, 43vw, 560px);
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.preowned-carousel-slide figcaption {
  min-height: 39px;
  padding: 11px 20px 9px;
  color: #cfcec6;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: center;
}
.preowned-carousel .preowned-main-photo > span {
  right: 16px;
  bottom: 14px;
  padding: 7px 10px;
  border-color: #ffffff40;
  background: #080a0abf;
  font-size: 11px;
}
.preowned-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  padding: 5px 20px 10px;
}
.preowned-carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #696e68;
  border-radius: 50%;
  background: transparent;
  color: #faf8f0;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.preowned-carousel-arrow:hover:not(:disabled) { border-color: #e5d9c2; background: #252923; }
.preowned-carousel-arrow:disabled { opacity: .3; cursor: default; }
.preowned-carousel-counter {
  min-width: 59px;
  color: #ecebe5;
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  letter-spacing: .16em;
  text-align: center;
}
.preowned-carousel-thumbnails {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
}
.preowned-carousel-thumbnail {
  flex: 0 0 50px;
  width: 50px;
  min-height: 62px;
  padding: 2px;
  border: 1px solid #565a53;
  border-radius: 0;
  background: #080a0a;
  color: #f5f1e8;
  cursor: pointer;
  opacity: .62;
}
.preowned-carousel-thumbnail[aria-pressed="true"] { border-color: #e1cfae; opacity: 1; }
.preowned-carousel-thumbnail:hover { opacity: 1; }
.preowned-carousel-thumbnail img { display: block; width: 44px; height: 58px; object-fit: contain; }
.preowned-carousel-hint {
  margin: 0;
  padding: 15px 16px 20px;
  color: #bfc3b8;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .02em;
  text-align: center;
}
.preowned-carousel button:focus-visible,
.preowned-carousel-track:focus-visible { outline: 2px solid #e1cfae; outline-offset: -4px; }
.preowned-carousel-slide > a:focus-visible { outline: 2px solid #e1cfae; outline-offset: -4px; }
.preowned-carousel-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) and (min-width: 641px) {
  .preowned-carousel-slide > a > img { height: 430px; }
}
@media (max-width: 640px) {
  .preowned-carousel-slide > a > img { height: clamp(320px, 108vw, 460px); }
  .preowned-carousel-controls { padding-top: 1px; padding-bottom: 9px; }
  .preowned-carousel-hint { padding-bottom: 17px; }
  .preowned-entry:not(.has-preowned-carousel) .preowned-gallery figure { flex-basis: 78%; }
  .preowned-entry:not(.has-preowned-carousel) .preowned-gallery img { max-height: 390px; }
}
@media print {
  .preowned-carousel-track { display: block; overflow: visible; }
  .preowned-carousel-slide { break-inside: avoid; }
  .preowned-carousel-slide > a > img { height: 260px; }
  .preowned-carousel-controls,
  .preowned-carousel-thumbnails,
  .preowned-carousel-hint { display: none; }
}
