/* Popular Releases (GO3) – Carousel styles */
.go3-pr {
  max-width: var(--wp--style--global--content-size);
  width: 100%;
  --gap: 12px;
  --tick-w: 20px;
  --tick-w-small: 10px;
  --tick-h: 1px;
  --tick-r: 2px;
}

/* header */
.go3-pr__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* viewport: the "measuring well" – your green rails */
.go3-pr__viewport {
  position: relative;
  overflow: visible;
  max-width: var(--wp--style--global--content-size);
  margin-inline: auto;
}

/* top pager ticks (Hidden for all screens)*/
.go3-pr__pager {
  position: absolute;
  top: -40px;
  right: 0;
  display: flex;
  gap: 2px;
  align-items: center;
  display: none; /* Hidden */
}
.go3-pr__tick {
  width: var(--tick-w);
  height: var(--tick-h);
  border-radius: var(--tick-r);
  background: #4c4c4c;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
  outline: none;
  cursor: pointer;
}
.go3-pr__tick[aria-current="true"] {
  background: #fff;
  opacity: 1;
}

/* transform-driven track (NO NATIVE SCROLL) */
.go3-pr__track {
  overflow: visible;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(327px, 1fr);
  gap: var(--gap);

  will-change: transform;
  transform: translate3d(0, 0, 0);

  /* Swipe horizontally, allow page to scroll vertically */
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.go3-pr__track.is-dragging {
  cursor: grabbing;
}
/* While dragging, don't let links intercept the gesture */
.go3-pr__track.is-dragging .go3-pr__link {
  pointer-events: none;
}

/* cards */
.go3-pr__card {
  scroll-snap-align: start;
  opacity: 0.4; /* dim neighbors */
  transition: opacity 200ms ease;
  /* Make cards themselves great drag targets */
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-select: none;
}
.go3-pr__card.is-current {
  opacity: 1; /* full for current page */
}

.go3-pr__link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
  gap: 16px;

  /* Let drags start on links too */
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-select: none;
}

.go3-pr__media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  background: #111;

  touch-action: pan-y;
}
.go3-pr__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  -webkit-user-drag: none; /* kill native image dragging */
  user-select: none;
}

.go3-pr__img:hover {
  transform: scale(1.05);
}

.go3-pr__meta {
  display: block;
  color: var(--wp--preset--color--white);
  font-weight: 700;
  font-size: 1.125rem;
}

/* bottom arrows */
.go3-pr__navs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 32px 0;
}
.go3-pr__nav {
  color: var(--wp--preset--color--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--wp--preset--color--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.go3-pr__nav:hover {
  color: var(--wp--preset--color--black);
  background: var(--wp--preset--color--white);
}
.go3-pr__nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.go3-pr__more {
  display: flex;
  justify-content: center;
}

/* responsive */
@media (max-width: 1230px) {
  .go3-pr__tick {
    width: var(--tick-w-small);
  }
}
@media (max-width: 1024px) {
  .go3-pr__pager {
    display: none;
  }
}
@media (max-width: 480px) {
  .go3-pr__track {
    grid-auto-columns: minmax(255px, 1fr);
  }
}
/* CTA */
@media (max-width: 425px) {
  .go3-pr .cta_button {
    width: 100%;
  }
  .go3-pr .cta_button .wp-block-button__link.wp-element-button {
    width: 100%;
  }
}
