.market-gallery {
  position: relative;
  margin: 18px 0;
  max-width: 1100px;
}
.market-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 18px;
  background: #eee;
  aspect-ratio: 16/8;
  scrollbar-width: none;
}
.market-gallery-track figure {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
}
.market-gallery img,
.market-gallery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.market-gallery video {
  object-fit: contain;
  background: #111;
}
.market-gallery-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.market-gallery button {
  border: 1px solid #d8d0dc;
  background: white;
  border-radius: 24px;
  padding: 9px 16px;
  cursor: pointer;
}
.market-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  white-space: nowrap;
}
.market-gallery-position {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #000a;
  color: white;
  border-radius: 20px;
  padding: 5px 12px;
  margin: 0;
}
.market-video-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #000a;
  color: white;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
}
@media (max-width: 600px) {
  .market-gallery-track {
    aspect-ratio: 4/3;
  }
  .market-gallery {
    margin: 12px 0;
  }
}
