.tweed-gallery {
  position: relative;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
}
.tweed-rail {
  display: flex;
  width: 100%;
  aspect-ratio: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.tweed-rail::-webkit-scrollbar { display: none; }
.tweed-rail > .tweed-slide {
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  aspect-ratio: 1;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.tweed-gallery .tweed-slide > img,
.preview #product-grid .tweed-gallery .tweed-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
}
.tweed-gallery > button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #141414a8 0 46%, transparent 49%);
  color: white;
  cursor: pointer;
  font: 23px/1 Arial, sans-serif;
}
.tweed-gallery > button:disabled { visibility: hidden; }
.tweed-gallery > button:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.tweed-prev { left: 0; }
.tweed-next { right: 0; }
.tweed-status {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #141414ba;
  color: #fff;
  font: 500 11px/1.35 -apple-system, BlinkMacSystemFont, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.preview .tweed-gallery > .new-badge { left: 10px; pointer-events: none; }
@media (min-width: 800px) {
  article.page > .tweed-gallery { margin-top: 24px; }
}
@media (min-width: 1200px) {
  .tweed-card .tweed-gallery { max-width: 210px; margin-inline: auto; }
}
