.package-media .steam-trailer {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0d12;
  pointer-events: none;
}

.steam-gallery-video,
.package-stage .steam-gallery-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  pointer-events: none;
}

.steam-gallery-video {
  z-index: 1;
  opacity: 0;
}

.steam-gallery-video.is-on {
  opacity: 1;
}

.package-media .steam-trailer {
  position: absolute;
  inset: 0;
  z-index: 3;
  aspect-ratio: auto;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.package-media .steam-trailer.is-on {
  opacity: 1;
}

.package-stage:has(.steam-gallery) {
  width: 100%;
  justify-self: stretch;
}

.steam-gallery {
  user-select: none;
}

.steam-gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.7rem;
  cursor: grab;
  touch-action: pan-y;
}

.steam-gallery.is-dragging {
  cursor: grabbing;
}

.steam-gallery-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.steam-gallery.is-dragging .steam-gallery-track {
  transition: none;
}

.steam-gallery-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.steam-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-50%);
  color: #fff;
}

.steam-gallery-arrow span {
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.steam-gallery-arrow.is-prev { left: 0.7rem; }
.steam-gallery-arrow.is-prev span { transform: rotate(-135deg); margin-left: 0.15rem; }
.steam-gallery-arrow.is-next { right: 0.7rem; }
.steam-gallery-arrow.is-next span { transform: rotate(45deg); margin-right: 0.15rem; }
.steam-gallery-arrow:disabled { opacity: 0.35; }

.steam-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.steam-gallery-dots button {
  width: 0.42rem;
  height: 0.42rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.steam-gallery-dots button.is-on {
  width: 1.05rem;
  background: #fff;
}