/* Golden Veil Bridal v601: preserve the composition of uploaded homepage tiles.
   The images and settings are still loaded by the existing v600 code. */
body.gv508-home .category-intro .category-veils {--gv601-image:var(--gv508-veils-image,none)}
body.gv508-home .category-intro .category-accessories {--gv601-image:var(--gv508-accessories-image,none)}
body.gv508-home .category-intro .category-groom {--gv601-image:var(--gv508-groom-image,none)}
body.gv508-home .category-intro .category-golden-edit {--gv601-image:var(--gv508-edit-image,none)}
/* Layer the same existing photo: soft backdrop behind a fully shown foreground.
   This avoids cropping heads and veils when the uploaded image is portrait. */
body.gv508-home .category-intro .category-card::before {
  display:block!important;
  content:""!important;
  background-image:var(--gv601-image)!important;
  background-size:contain!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-color:transparent!important;
  z-index:1!important;
  filter:none!important;
  transform:none!important;
  opacity:1;
  pointer-events:none!important;
}
body.gv508-home .category-intro .category-card::after {
  display:block!important;
  content:""!important;
  position:absolute!important;
  background:transparent!important;
  background-image:var(--gv601-image)!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  z-index:0!important;
  filter:blur(17px) saturate(.72)!important;
  opacity:.48!important;
  transform:scale(1.1)!important;
  pointer-events:none!important;
}
body.gv508-home .category-intro .category-card > div {position:relative!important;z-index:2!important}
body.gv508-home .category-intro .category-card:hover::before {transform:none!important}
/* Initial placeholders remain neutral until the selected Admin photos arrive. */
html.gv-home-hero-pending body.gv508-home .category-intro .category-card::before,
html.gv-home-hero-pending body.gv508-home .category-intro .category-card::after {opacity:0!important}
@media(min-width:701px) {
  body.gv508-home .category-intro .category-card::before,
  body.gv508-home .category-intro .category-card::after {inset:0 0 44px!important}
}
@media(max-width:700px) {
  body.gv508-home .category-intro .category-card:not(.category-golden-edit)::before,
  body.gv508-home .category-intro .category-card:not(.category-golden-edit)::after {inset:0 0 43px!important}
  /* A compact portrait-friendly Golden Edit tile: full image beside its title,
     instead of forcing a vertical portrait into a very shallow horizontal crop. */
  body.gv508-home .category-intro .category-golden-edit {
    display:grid!important;
    grid-template-columns:42% minmax(0,1fr)!important;
    align-items:stretch!important;
    padding:0!important;
    min-height:164px!important;
    height:164px!important;
    aspect-ratio:auto!important;
  }
  body.gv508-home .category-intro .category-golden-edit::before,
  body.gv508-home .category-intro .category-golden-edit::after {
    inset:0 auto 0 0!important;
    width:42%!important;
    height:100%!important;
  }
  body.gv508-home .category-intro .category-golden-edit > div {
    grid-column:2!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
    padding:9px!important;
    background:#f7f1eb!important;
  }
  body.gv508-home .category-intro .category-golden-edit h2 {
    max-width:100%!important;
    font-size:clamp(23px,6.8vw,31px)!important;
    line-height:1.02!important;
    text-align:center!important;
  }
}
@media(prefers-reduced-motion:reduce){body.gv508-home .category-intro .category-card::before,body.gv508-home .category-intro .category-card::after{transition:none!important}}
