/* VICEGRIP · Night / Dawn / Motorsport
   Three genuine product pages; original photography, gallery behavior,
   stock and checkout untouched. This is the last product color layer. */

/* Night — deep lilac photography, pink highlights for the black controller. */
body.product-page.product-black[data-vg-pdp-colors="night"] {
  --vg-gallery-backdrop:
    radial-gradient(ellipse 90% 72% at 72% 0%,rgba(218,164,220,.30),transparent 75%),
    radial-gradient(ellipse 83% 82% at 48% 102%,rgba(217,133,172,.87),transparent 83%),
    linear-gradient(136deg,#4a325f 0%,#62517f 30%,#9167a3 58%,#ad759c 81%,#6d477b 100%);
  --vg-gallery-rail:linear-gradient(180deg,#45304f,#2d213c);
  --vg-gallery-line:rgba(244,205,238,.24);
  --vg-gallery-shadow:rgba(23,13,38,.30);
  --vg-thumb-bg:#a587b0;
  --vg-thumb-active:#f3c0df;
}
/* Dawn — enough lilac contrast for white plastic; warm coral at the base. */
body.product-page.product-white[data-vg-pdp-colors="dawn"] {
  --vg-gallery-backdrop:
    radial-gradient(ellipse 89% 76% at 75% 3%,rgba(255,225,240,.57),transparent 70%),
    radial-gradient(ellipse 82% 86% at 49% 105%,rgba(255,184,155,.89),transparent 77%),
    linear-gradient(137deg,#76558f 0%,#a17ab0 29%,#ce98bf 60%,#ecc0bb 90%,#b889ba 100%);
  --vg-gallery-rail:linear-gradient(180deg,#734e78,#473252);
  --vg-gallery-line:rgba(255,231,246,.31);
  --vg-gallery-shadow:rgba(43,21,52,.22);
  --vg-thumb-bg:#977a9b;
  --vg-thumb-active:#ffe1f1;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-gallery{
  box-sizing:border-box;
  overflow:hidden;
  padding:clamp(7px,1vw,12px)!important;
  border:1px solid var(--vg-gallery-line)!important;
  border-radius:clamp(15px,1.35vw,20px)!important;
  background:var(--vg-gallery-rail)!important;
  box-shadow:0 18px 56px rgba(7,5,14,.13),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
/* The rose stage is BEHIND the real alpha photographs, not multiplied into them. */
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .gallery-main{
  position:relative;
  isolation:isolate;
  overflow:hidden!important;
  width:100%;
  background:var(--vg-gallery-backdrop)!important;
  border:0!important;
  border-radius:clamp(11px,1vw,15px)!important;
  box-shadow:inset 0 0 32px rgba(41,19,50,.06);
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .splide__slide[data-vg-cutout="true"]{
  background:transparent!important;
  mix-blend-mode:normal!important;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .splide__slide[data-vg-cutout="true"]>img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  background:transparent!important;
  mix-blend-mode:normal!important;
  filter:drop-shadow(0 15px 18px var(--vg-gallery-shadow))!important;
}
/* Packaging and studio photographs stay accurate and untinted. */
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .splide__slide:not([data-vg-cutout="true"]),
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .splide__slide:not([data-vg-cutout="true"])>img{
  background:#f8f5f8!important;
  mix-blend-mode:normal!important;
  filter:none!important;
}
@supports selector(:has(*)){
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .gallery-main:has(.splide__slide.is-active:not([data-vg-cutout="true"])){
    background:#f8f5f8!important;
  }
}
/* Thumbnail navigation belongs to the gallery, but not to a thick glass panel. */
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination{
  gap:clamp(6px,.85vw,10px);
  scrollbar-color:rgba(247,209,235,.30) transparent;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination__page{
  box-sizing:border-box;
  width:clamp(55px,5.8vw,73px);
  height:clamp(55px,5.8vw,73px);
  padding:3px!important;
  border:1px solid rgba(255,240,249,.16)!important;
  border-radius:8px!important;
  background:rgba(255,244,251,.075)!important;
  box-shadow:none!important;
  opacity:.76;
  transition:opacity .18s ease,border-color .18s ease,background-color .18s ease;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination__page img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:var(--vg-thumb-bg)!important;
  border-radius:5px!important;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination__page.is-active{
  opacity:1;
  border-color:var(--vg-thumb-active)!important;
  background:rgba(255,238,249,.15)!important;
  box-shadow:0 0 0 1px var(--vg-thumb-active)!important;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .photo-caption{
  color:#e6cfe0!important;
  font-size:11px;
  font-variant-numeric:tabular-nums;
}
/* The carousel buttons must never cover the grips: compact, dark controls. */
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .photo-arrows:not([hidden]){
  padding:3px!important;
  border:1px solid rgba(255,248,253,.18)!important;
  background:rgba(35,25,45,.87)!important;
  box-shadow:0 5px 15px rgba(18,12,29,.16)!important;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .photo-arrows button{
  width:37px!important;
  height:37px!important;
  min-width:37px!important;
  min-height:37px!important;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .photo-expand{
  width:43px!important;
  height:43px!important;
  min-width:43px!important;
  min-height:43px!important;
  border-radius:9px!important;
  background:rgba(35,25,45,.87)!important;
  box-shadow:0 5px 15px rgba(18,12,29,.16)!important;
}
/* Gran Turismo: pearl-rose with cool metallic lilac rather than flat white.
   This page is informational and sold out: no new CTA or stock label. */
body.vg-dualsense-detail.vg-gt-clean[data-vg-pdp-colors="motorsport"] .vg-detail-photo{
  background:
    radial-gradient(ellipse 78% 65% at 76% 5%,rgba(255,231,242,.75),transparent 75%),
    radial-gradient(ellipse 75% 90% at 40% 100%,rgba(193,151,205,.76),transparent 78%),
    linear-gradient(139deg,#ab87b6 0%,#cfa7cb 41%,#e5c5d8 72%,#b69cbf 100%)!important;
  border:1px solid rgba(255,242,253,.30)!important;
  border-radius:clamp(12px,1.4vw,19px)!important;
  padding:0!important;
  box-shadow:0 18px 48px rgba(13,8,25,.12);
  isolation:isolate;
}
body.vg-dualsense-detail.vg-gt-clean[data-vg-pdp-colors="motorsport"] .vg-detail-photo .vg-gt-hero-image{
  display:block;
  position:relative;
  z-index:1;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:clamp(9px,1.6vw,22px)!important;
  mix-blend-mode:normal!important;
  transform:none!important;
  filter:drop-shadow(0 11px 18px rgba(35,22,43,.14))!important;
}
@media(max-width:980px){
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready{
    row-gap:10px;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination__page{
    width:62px;
    height:62px;
    flex-basis:62px;
  }
}
@media(max-width:640px){
  body.brand-system.product-page[data-vg-pdp-colors] .product-gallery{
    padding:7px!important;
    border-radius:15px!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .gallery-main{
    aspect-ratio:1.23!important;
    min-height:0!important;
    border-radius:10px!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination{
    gap:7px;
    padding:2px 1px 5px;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination__page{
    width:58px;
    height:58px;
    flex-basis:58px;
    border-radius:7px!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .photo-arrows:not([hidden]){
    bottom:12px!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .photo-expand{
    width:42px!important;
    height:42px!important;
  }
  body.vg-dualsense-detail.vg-gt-clean[data-vg-pdp-colors="motorsport"] .vg-detail-photo{
    aspect-ratio:1.27!important;
    border-radius:13px!important;
  }
}
/* Motor, scroll and image-loading fallbacks are identical to the existing site. */
@media(prefers-reduced-motion:reduce){
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination__page{
    transition:none!important;
  }
}
@media(forced-colors:active){
  body.brand-system.product-page[data-vg-pdp-colors] .product-gallery,
  body.vg-dualsense-detail.vg-gt-clean[data-vg-pdp-colors="motorsport"] .vg-detail-photo{
    border:1px solid CanvasText!important;
    box-shadow:none!important;
    background:Canvas!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .gallery-main{
    background:Canvas!important;
  }
}


/* Floating studio gallery refinement — final presentation.
   Keep the real cutout, lilac/pink stage and working Splide/thumbs, but remove
   the double collector frame. The photo is the hero; no enclosing gift box. */
body.brand-system.product-page[data-vg-pdp-colors] .product-gallery {
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready {
  row-gap:12px;
  column-gap:13px;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .gallery-main {
  border:0!important;
  border-radius:clamp(12px,1.3vw,18px)!important;
  box-shadow:0 10px 32px rgba(8,5,16,.14)!important;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination {
  padding:2px 1px 3px!important;
  gap:clamp(7px,.95vw,11px);
  background:transparent!important;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination__page {
  padding:3px!important;
  border:1px solid rgba(244,215,235,.13)!important;
  background:rgba(235,197,226,.045)!important;
  box-shadow:none!important;
  opacity:.84;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination__page.is-active {
  border:1px solid var(--vg-thumb-active)!important;
  background:rgba(245,210,235,.085)!important;
  box-shadow:0 0 0 1px rgba(238,184,214,.24)!important;
  opacity:1;
}
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .photo-caption {
  color:#c9bacd!important;
  font-size:11px;
  padding:0 1px!important;
}
@media(max-width:980px){
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready {
    row-gap:10px!important;
  }
}
@media(max-width:640px){
  body.brand-system.product-page[data-vg-pdp-colors] .product-gallery {
    padding:0!important;
    border:0!important;
    border-radius:0!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .gallery-main {
    aspect-ratio:1.23!important;
    border-radius:14px!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready {
    row-gap:9px!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination {
    gap:8px;
    padding:2px 1px 4px!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .splide__pagination__page {
    width:57px;
    height:57px;
    flex-basis:57px;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .photo-caption {
    margin-top:0!important;
    padding-left:1px!important;
  }
}
@media(forced-colors:active){
  body.brand-system.product-page[data-vg-pdp-colors] .product-gallery {
    border:0!important;
    background:transparent!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel .gallery-main {
    box-shadow:none!important;
    outline:1px solid CanvasText;
  }
}


/* Editorial image indexing — GTA VI photo strip.
   The actual catalogue's eight photographed views replace the generic carousel
   caption. Quiet split metadata, never a fake image title or another product card. */
body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .photo-caption.vg-gallery-index {
  display:flex!important;
  flex-direction:row!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:3px 0 0!important;
  padding:0 2px!important;
  border:0!important;
  background:transparent!important;
  text-align:left!important;
  color:#cbbecf!important;
  line-height:1.4!important;
}
body.brand-system.product-page[data-vg-pdp-colors] .vg-gallery-index__label {
  display:block;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:#cfc2d1;
  font:650 10px/1.5 Inter,Arial,sans-serif;
  letter-spacing:.095em;
  text-transform:uppercase;
}
body.brand-system.product-page[data-vg-pdp-colors] .vg-gallery-index__count {
  display:block;
  flex:0 0 auto;
  color:#a89aad;
  font:550 11px/1.5 Inter,Arial,sans-serif;
  letter-spacing:.055em;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
@media(max-width:640px){
  body.brand-system.product-page[data-vg-pdp-colors] .product-carousel.rockstar-thumb-ready .photo-caption.vg-gallery-index {
    margin-top:3px!important;
    padding:0 1px!important;
    gap:10px!important;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .vg-gallery-index__label {
    font-size:10px;
    letter-spacing:.082em;
  }
  body.brand-system.product-page[data-vg-pdp-colors] .vg-gallery-index__count {
    font-size:10.5px;
  }
}


/* Rockstar lightbox / image-first commerce gallery v2.
   Inspired by the supplier's provided ReactModal: deep black full-screen
   field, a genuinely centered photograph, minimal close control, filmstrip,
   and a quiet eight-step locator. No large pink panel, brand block,
   artificial zoom CTA, descriptive footnote, or fake product imagery. */
body.brand-system.product-page dialog.photo-inspection.vg-gallery-dialog.vg-rockstar-viewer {
  position:fixed!important;
  inset:0!important;
  display:none!important;
  box-sizing:border-box!important;
  width:100vw!important;height:100dvh!important;
  max-width:100vw!important;max-height:100dvh!important;
  margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;
  background:#101013!important;color:#f6f4f7!important;
  box-shadow:none!important;overflow:hidden!important;
  overscroll-behavior:contain;
}
body.brand-system.product-page dialog.photo-inspection.vg-gallery-dialog.vg-rockstar-viewer[open] {
  display:block!important;
  animation:none!important;
}
body.brand-system.product-page dialog.photo-inspection.vg-gallery-dialog.vg-rockstar-viewer::backdrop {
  background:#101013!important;
  backdrop-filter:none!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-shell {
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  width:100%!important;height:100%!important;
  min-height:0!important;
  background:#101013!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-close {
  position:absolute!important;z-index:20!important;
  top:max(16px,env(safe-area-inset-top))!important;
  right:max(16px,env(safe-area-inset-right))!important;
  display:grid!important;place-items:center!important;
  box-sizing:border-box!important;width:44px!important;height:44px!important;
  min-width:44px!important;min-height:44px!important;
  margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;color:#c1bec4!important;
  box-shadow:none!important;text-shadow:none!important;
  opacity:.85;cursor:pointer;transition:opacity .18s ease!important;
  -webkit-tap-highlight-color:transparent;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-close svg {
  display:block!important;width:24px!important;height:24px!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-stage {
  grid-row:1!important;
  position:relative;isolation:isolate;
  display:grid!important;place-items:center!important;
  min-width:0!important;min-height:0!important;
  width:100%!important;height:100%!important;
  margin:0!important;padding:16px 0!important;
  background:#101013!important;
  overflow:hidden!important;
  touch-action:pan-y pinch-zoom;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-media {
  box-sizing:border-box;
  display:grid;place-items:center;
  width:min(100%,740px,calc(100dvh - 205px));
  max-height:100%;
  aspect-ratio:1/1;
  margin:0 auto;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-media.is-studio {
  background:var(--vg-gallery-backdrop)!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-viewport.vg-gallery-viewport {
  display:block!important;
  width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;
  margin:0!important;padding:0!important;
  overflow:hidden!important;
  touch-action:pan-y pinch-zoom!important;
  background:transparent!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-canvas {
  box-sizing:border-box!important;
  display:grid!important;place-items:center!important;
  width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;
  margin:0!important;padding:0!important;
  background:transparent!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-canvas img {
  display:block!important;
  width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  margin:0!important;padding:0!important;
  object-fit:contain!important;object-position:center center!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;filter:none!important;
  -webkit-user-drag:none;user-select:none;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-canvas img[hidden] {
  display:none!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-footer {
  grid-row:2!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  gap:14px!important;
  box-sizing:border-box!important;
  width:100%!important;height:auto!important;min-height:0!important;
  margin:0!important;
  padding:12px max(16px,env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important;
  border:0!important;border-radius:0!important;
  background:#101013!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumbrail {
  display:flex!important;align-items:center!important;justify-content:safe center!important;
  box-sizing:border-box!important;
  gap:6px!important;
  width:max-content!important;max-width:100%!important;
  min-width:0!important;margin:0!important;padding:2px 2px 4px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  scrollbar-width:none!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumbrail::-webkit-scrollbar {
  display:none!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumb {
  display:grid!important;place-items:center!important;
  box-sizing:border-box!important;
  flex:0 0 68px!important;
  width:68px!important;height:68px!important;
  min-width:68px!important;min-height:68px!important;
  margin:0!important;padding:3px!important;
  border:2px solid transparent!important;border-radius:2px!important;
  background:#28262c!important;opacity:.70!important;
  box-shadow:none!important;
  scroll-snap-align:center;
  transition:opacity .16s ease,border-color .16s ease!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumb img {
  display:block!important;width:100%!important;height:100%!important;
  object-fit:contain!important;border-radius:0!important;
  background:#807180!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumb.is-current {
  opacity:1!important;
  border-color:#e8c3d4!important;
  background:#413441!important;
  box-shadow:none!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-progress {
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;box-sizing:border-box!important;
  width:min(294px,79vw)!important;max-width:100%!important;
  margin:0 auto!important;padding:0!important;
  height:4px!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-progress__bar {
  display:block;flex:1 1 0;min-width:0;height:4px;
  border-radius:6px;background:#656269;
  transition:background-color .16s ease;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-progress__bar.is-current {
  background:#f8f5f8;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-live,
body.brand-system.product-page .product-carousel .photo-caption.vg-gallery-live {
  position:absolute!important;
  width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip-path:inset(50%)!important;
  white-space:nowrap!important;border:0!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer :is(button,[tabindex="0"]):focus-visible {
  outline:2px solid #f0c0d8!important;outline-offset:2px!important;
}
@media(hover:hover) {
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-close:hover {
    color:#fff!important;opacity:1!important;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumb:hover {
    opacity:1!important;
  }
}
@media(max-width:760px){
  body.brand-system.product-page dialog.photo-inspection.vg-gallery-dialog.vg-rockstar-viewer {
    inset:0!important;width:100vw!important;height:100dvh!important;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-close {
    top:max(18px,env(safe-area-inset-top))!important;
    right:max(18px,env(safe-area-inset-right))!important;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-stage {
    padding:0!important;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-media {
    width:min(100vw,calc(100dvh - 178px));
    max-height:100%;aspect-ratio:1/1;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-footer {
    gap:13px!important;
    padding:10px 12px calc(28px + env(safe-area-inset-bottom))!important;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumbrail {
    justify-content:safe flex-start!important;
    gap:6px!important;width:100%!important;
    padding:2px 1px 4px!important;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumb {
    flex:0 0 64px!important;
    width:64px!important;height:64px!important;
    min-width:64px!important;min-height:64px!important;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-progress {
    width:min(282px,75vw)!important;
  }
}
@media(max-height:580px) and (orientation:landscape){
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-media {
    width:min(100vw,calc(100dvh - 114px));
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-footer {
    padding:5px 12px calc(9px + env(safe-area-inset-bottom))!important;
    gap:6px!important;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumb {
    flex-basis:42px!important;width:42px!important;height:42px!important;
    min-width:42px!important;min-height:42px!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumb,
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-progress__bar {
    transition:none!important;
  }
}
@media(forced-colors:active) {
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumb.is-current {
    border-color:Highlight!important;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-media.is-studio {
    background:Canvas!important;
  }
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-progress__bar.is-current {
    background:Highlight!important;
  }
}


/* Non-flashing photo crossfade · keeps the previous genuine image rendered until
   the next is loaded and decoded. Each layer carries its own studio background,
   so changing to original packaging never flashes a purple/white checkerboard. */
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-canvas {
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-canvas img[data-photo-image],
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-canvas img[data-photo-image-alt] {
  grid-area:1/1!important;
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  opacity:0!important;
  z-index:1;
  pointer-events:none!important;
  background:transparent!important;
  transition:opacity .32s cubic-bezier(.22,.61,.36,1)!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-canvas img[data-vg-viewer-studio="true"] {
  background:var(--vg-gallery-backdrop)!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-canvas img.is-current {
  z-index:2;
  opacity:1!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-media {
  position:relative;
  background:transparent!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-error[hidden] {display:none!important}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-error:not([hidden]) {
  position:absolute;
  z-index:4;
  inset:0;
  display:grid;
  place-items:center;
  margin:0;
  padding:22px;
  color:#bfbabf;
  background:#101013;
  text-align:center;
  font:500 12px/1.5 Inter,Arial,sans-serif;
}
@media(prefers-reduced-motion:reduce) {
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-canvas img[data-photo-image],
  body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .photo-canvas img[data-photo-image-alt] {
    transition:none!important;
  }
}


/* Pointer-open viewer focus: prevent the old conspicuous pink focus ring on
   the close X after a finger tap. Keyboard use retains a visible outline. */
body.brand-system.product-page dialog.photo-inspection.vg-gallery-dialog.vg-rockstar-viewer.vg-pointer-open .vg-gallery-close:focus-visible {
  outline:0!important;
  box-shadow:none!important;
}
body.brand-system.product-page .vg-gallery-dialog.vg-rockstar-viewer .vg-gallery-thumbrail {
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-inline:contain!important;
  touch-action:pan-x!important;
}

/* GTA VI product pages already say RESTOCK. Show the gallery sooner on mobile;
   keep the original header and purchasing controls intact. */
body.brand-system.product-page.has-opening-banner[data-vg-pdp-colors="night"],
body.brand-system.product-page.has-opening-banner[data-vg-pdp-colors="dawn"] {
  --opening-banner-height: 0px;
  padding-top: 0;
}
body.brand-system.product-page.has-opening-banner[data-vg-pdp-colors="night"] .opening-page-chrome > .opening-banner,
body.brand-system.product-page.has-opening-banner[data-vg-pdp-colors="dawn"] .opening-page-chrome > .opening-banner {
  display: none;
}


/* PDP mobile placement only: retain existing branding, image framing and buttons.
   Move the legal Klarna offer after purchase actions in markup; never change its copy. */
body.brand-system.product-page .product-copy .product-purchase .product-price + .variant-label {
  margin-top: 0;
}
body.brand-system.product-page .product-copy .product-purchase .direct-buy-status + .vg-klarna-offer {
  margin-top: 14px;
  margin-bottom: 0;
}
@media (max-width: 640px) {
  body.brand-system.product-page .product-shell { gap: 22px; }
}


/* GTA VI PDP: restore the original centered emblem on mobile, just subtly
   smaller. Never replace the VG asset or change the homepage header. */
@media (max-width: 900px) {
  body.brand-system.product-page:is(.product-black,.product-white) .site-header .brand {
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    width:60px!important;
  }
  body.brand-system.product-page:is(.product-black,.product-white) .site-header .brand img {
    display:block!important;
    width:60px!important;
    height:34px!important;
    max-width:60px!important;
    max-height:34px!important;
    object-fit:contain!important;
    filter:none!important;
  }
}
