/* Precise 3-up on desktop and 1-up on mobile, no partial slides; use scroll-snap; hide scrollbars; move arrow space to margins */

/* Container */
.v0vs-slider {
  position: relative;
  width: 100%;
  margin: 24px auto;
}

/* Horizontal track */
.v0vs-track {
  --v0vs-gap: 24px;
  display: flex;
  gap: var(--v0vs-gap);
  overflow-x: auto; /* allow drag/swipe */
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  margin: 0 44px; /* space for arrows (no padding that breaks math) */
  -webkit-overflow-scrolling: touch;

  /* hide scrollbars */
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}
.v0vs-track::-webkit-scrollbar {
  display: none;
} /* Chrome/Safari */

/* Cards */
.v0vs-card {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 100%; /* mobile: exactly one card visible */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  background: #f4f4f4;
}

@media (min-width: 768px) {
  .v0vs-card {
    /* desktop: exactly 3 per viewport width accounting for 2 gaps */
    flex: 0 0 calc((100% - (2 * var(--v0vs-gap))) / 3);
  }
}

/* Play indicator (triangle only) */
.v0vs-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-left: 18px solid #ffffff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.v0vs-card:focus-visible {
  box-shadow: 0 0 0 3px #1e90ff66;
}

/* Arrows: Font Awesome at 50% opacity */
.v0vs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  z-index: 5;
  line-height: 0;
}

.v0vs-left {
  left: 6px;
}
.v0vs-right {
  right: 6px;
}

.v0vs-arrow i {
  font-size: 34px;
  color: #111;
  opacity: 0.5; /* requested 50% transparency */
  transition: opacity 0.2s ease;
}

.v0vs-arrow:hover i,
.v0vs-arrow:focus-visible i {
  opacity: 0.8;
}

/* Modal */
.v0vs-modal[hidden] {
  display: none !important;
}

.v0vs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.v0vs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.v0vs-modal-dialog {
  position: relative;
  width: min(90vw, 1000px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.v0vs-modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 22px;
  width: 36px;
  height: 32px;
  line-height: 28px;
  cursor: pointer;
  z-index: 2;
}

.v0vs-iframe-wrap {
  position: absolute;
  inset: 0;
}

/* Make the image absolutely fill the card to eliminate any top gap/strip */
.v0vs-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
