/* V2.9.9: preserve the existing slide crops after changing their order. */
#rg6-home .rg6-hero__slide[src*="Rebel-Golf-Sunset-Scorecard-Scene.webp"] { object-position: center 45%; }
#rg6-home .rg6-hero__slide[src*="Rebel-Golf-Sunset-Celebration.webp"] { object-position: center 32%; }

/* Restore the original V2.9.5 footer image even if V2.9.6 source CSS was installed.
   The existing footer layout, gradient, positioning and animation are unchanged. */
.rg6-footer[aria-label="Rebel Golf footer"]::before {
  background-image: linear-gradient(90deg,#080f16 1%,rgba(8,15,22,.97) 40%,rgba(8,15,22,.68) 68%,rgba(8,15,22,.20) 100%),url("https://rebelgolfgroup.com/wp-content/uploads/2026/10/Footer-Backing-Image-01-scaled.png");
}

/* Our Collection only: two fully filled, aligned rows, retaining the original
   column proportions and uniform gutters. Absolute media prevents theme image
   height rules from exposing navy strips beneath the photographs. */
.rg7-page--collections .rg7-collections-opening__grid {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:28px;
  align-items:stretch;
}
.rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-side {
  display:contents;
}
.rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-main,
.rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-beanies {
  display:block;
  grid-column:1;
  width:100%;
  max-width:none;
  height:auto;
  min-width:0;
  min-height:0;
  aspect-ratio:1.2 / 1;
  justify-self:stretch;
  align-self:stretch;
  margin:0;
}
.rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-main { grid-row:1; }
.rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-beanies { grid-row:2; }
.rg7-page--collections .rg7-collection-side > .rg7-collection-side__card {
  display:block;
  grid-column:2;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  margin:0;
}
.rg7-page--collections .rg7-collection-side > .rg7-collection-side__card:first-child { grid-row:1; }
.rg7-page--collections .rg7-collection-side > .rg7-collection-side__card:last-child { grid-row:2; }
.rg7-page--collections .rg7-collections-opening__grid .rg7-collection-main__image,
.rg7-page--collections .rg7-collections-opening__grid .rg7-collection-side__card > div {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
  margin:0;
}
.rg7-page--collections .rg7-collections-opening__grid a img {
  display:block!important;
  position:absolute;
  inset:0;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  margin:0!important;
}
.rg7-page--collections .rg7-collection-main__label { z-index:2; }
.rg7-page--collections .rg7-collection-beanies img { object-position:center 58%; }
@media (max-width:800px) {
  .rg7-page--collections .rg7-collections-opening__grid {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:none;
    gap:18px;
  }
  .rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-main,
  .rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-beanies,
  .rg7-page--collections .rg7-collections-opening__grid .rg7-collection-side > .rg7-collection-side__card {
    grid-column:1;
    grid-row:auto;
    width:100%;
    height:auto;
    aspect-ratio:1.2 / 1;
  }
  .rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-main { order:0; }
  .rg7-page--collections .rg7-collection-side > .rg7-collection-side__card:first-child { order:1; }
  .rg7-page--collections .rg7-collection-side > .rg7-collection-side__card:last-child { order:2; }
  .rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-beanies { order:3; }
}
@media (max-width:560px) {
  .rg7-page--collections .rg7-collections-opening__grid { gap:15px; }
  .rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-main,
  .rg7-page--collections .rg7-collections-opening__grid > .rg7-collection-beanies,
  .rg7-page--collections .rg7-collections-opening__grid .rg7-collection-side > .rg7-collection-side__card { aspect-ratio:1 / 1; }
  .rg7-page--collections .rg7-collections-opening__grid .rg7-collection-side__card span { font-size:clamp(30px,9vw,44px); }
}

/* Beanie product banner: use the same full-bleed editorial photograph,
   overlay, type and layout as the other product pages. The beanie is lower
   in this portrait photograph than in the standard product hero images. */
body.single-product .rgsi-product-hero--beanie .rgsi-product-hero__image {
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 58%!important;
}

/* Closing homepage photograph only: move the image framing down by anchoring
   its top edge and reducing its zoom/vertical parallax to protect the heads. */
#rg6-home .rg6-final__photo img[src*="Rebel-Golf-Ambassadors-at-Sunset.webp"] {
  object-position:center top!important;
  transform-origin:center top;
  transform:translate3d(0,clamp(-4px,var(--rg6-parallax-y,0px),0px),0) scale(1.02);
}
