/* Asset version: 2026.09.30-4 */

/* Keep responsive image sources inside the existing photo frames. */
#occasions-app .vehicle-card-photo-picture {
  display: block;
  width: 100%;
}

#occasions-app .detail-gallery-stage > picture,
#occasions-app .detail-gallery-photo.is-sold > picture,
#occasions-app .sold-lightbox-photo.is-sold > picture {
  display: block;
  width: 100%;
  height: 100%;
}

#occasions-app .detail-thumbnail > picture,
#occasions-app .lightbox-thumbnail > picture {
  display: block;
  width: 100%;
  height: 100%;
}

#occasions-app .lightbox-stage > picture {
  display: grid;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  place-items: center;
}

#occasions-app .lightbox-stage > picture > .lightbox-image {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
}

#occasions-app .detail-thumbnails {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 18px;
  padding: 0 0 8px;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#occasions-app .detail-thumbnails::-webkit-scrollbar,
#occasions-app .lightbox-thumbnails::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#occasions-app .lightbox-thumbnails {
  scrollbar-width: none;
}

#occasions-app .detail-thumbnail {
  flex: 0 0 clamp(96px, 14vw, 164px);
  scroll-snap-align: start;
}

#occasions-app .detail-thumbnail picture,
#occasions-app .lightbox-thumbnail picture {
  container-type: inline-size;
}

/* Detail-strip thumbnails use the same inward ribbon placement as lightbox thumbnails. */
#occasions-app .detail-thumbnail .sold-photo-ribbon span {
  top: 46.5%;
  left: -20%;
}

#occasions-app .detail-gallery-main.is-zoomable {
  cursor: zoom-in;
}

@media not all and (min-width: 834px) {
  #occasions-app .detail-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 8px;
  }

  #occasions-app .detail-thumbnail {
    flex-basis: clamp(82px, 24vw, 124px);
  }

  #occasions-app .detail-gallery-main {
    cursor: default;
  }
}
