/* Golden Veil Bridal v630 — quiet four-across editorial category cards.
   Only the homepage tiles are affected.  All live Admin photo choices remain
   authoritative via --gv508-{category}-image; images use contain (no cropping). */

/* Four balanced entries in one line on desktop. */
@media(min-width:1025px){
  body.gv508-home .category-intro {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:clamp(12px,1.7vw,24px)!important;
    max-width:1530px!important;
    padding:clamp(52px,5vw,72px) clamp(20px,3vw,44px) clamp(52px,5vw,75px)!important;
  }
  body.gv508-home .category-intro .category-card,
  body.gv508-home .category-intro .category-card.category-golden-edit {
    height:clamp(370px,31.5vw,440px)!important;
    min-height:370px!important;
  }
}
@media(min-width:701px) and (max-width:1024px){
  body.gv508-home .category-intro {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:19px!important;
  }
  body.gv508-home .category-intro .category-card,
  body.gv508-home .category-intro .category-card.category-golden-edit {
    height:clamp(352px,42vw,430px)!important;
  }
}
/* White-on-ivory stationery look. No grey boxes and no blurry photo fills. */
body.gv508-home .category-intro .category-card,
body.gv508-home .category-intro .category-card.category-golden-edit,
body.gv508-home .category-intro .category-card:not(.category-golden-edit) {
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) 130px!important;
  align-items:stretch!important;
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  aspect-ratio:auto!important;
  border:1px solid #e6dbd2!important;
  border-radius:5px!important;
  background:#fffdfa!important;
  box-shadow:0 3px 17px rgba(77,56,43,.035)!important;
  overflow:hidden!important;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease!important;
}
body.gv508-home .category-intro .category-card::after,
body.gv508-home .category-intro .category-card.category-golden-edit::after,
body.gv508-home .category-intro .category-card:not(.category-golden-edit)::after {
  display:none!important;
  content:none!important;
  background:none!important;
}
body.gv508-home .category-intro .category-card::before,
body.gv508-home .category-intro .category-card.category-golden-edit::before,
body.gv508-home .category-intro .category-card:not(.category-golden-edit)::before {
  content:''!important;
  display:block!important;
  position:absolute!important;
  inset:13px 13px 143px!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  z-index:1!important;
  border:0!important;
  border-radius:0!important;
  background-color:transparent!important;
  background-image:var(--gv601-image,none)!important;
  background-size:contain!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  filter:none!important;
  transform:none!important;
  opacity:1!important;
  pointer-events:none!important;
}
html.gv-home-hero-pending body.gv508-home .category-intro .category-card::before {opacity:0!important;}
body.gv508-home .category-intro .category-card > div,
body.gv508-home .category-intro .category-card:not(.category-golden-edit) > div,
body.gv508-home .category-intro .category-card.category-golden-edit > div {
  box-sizing:border-box!important;
  grid-column:1!important;
  grid-row:2!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:130px!important;
  min-height:130px!important;
  margin:0!important;
  padding:12px 12px 15px!important;
  border:0!important;
  border-top:1px solid #efe6df!important;
  border-radius:0!important;
  background:#fffdfa!important;
  text-align:center!important;
  overflow:hidden!important;
  z-index:2!important;
}
body.gv508-home .category-intro .category-card .eyebrow,
body.gv508-home .category-intro .category-card.category-golden-edit .eyebrow {
  display:block!important;
  margin:0 0 6px!important;
  font:600 8px/1.25 Inter,Arial,sans-serif!important;
  color:#aa8e7b!important;
  letter-spacing:.13em!important;
  text-align:center!important;
}
body.gv508-home .category-intro .category-card h2,
body.gv508-home .category-intro .category-card.category-golden-edit h2 {
  display:block!important;
  flex:none!important;
  max-width:100%!important;
  margin:0 0 10px!important;
  font:400 clamp(29px,2.6vw,42px)/.98 'Cormorant Garamond',Georgia,serif!important;
  letter-spacing:-.026em!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  color:#4e3e35!important;
}
/* No truncated marketing paragraphs in narrow cards. The photos do the talking. */
body.gv508-home .category-intro .category-card p:not(.eyebrow),
body.gv508-home .category-intro .category-card.category-golden-edit p:not(.eyebrow){display:none!important;}
body.gv508-home .category-intro .category-card > div > span,
body.gv508-home .category-intro .category-card.category-golden-edit > div > span{
  display:inline-block!important;
  flex:none!important;
  max-width:100%!important;
  padding:0 0 5px!important;
  margin:0!important;
  border-bottom:1px solid #bea590!important;
  font:600 9px/1.25 Inter,Arial,sans-serif!important;
  letter-spacing:.06em!important;
  text-align:center!important;
  white-space:normal!important;
  color:#685449!important;
}
body.gv508-home .category-intro .category-card:hover,
body.gv508-home .category-intro .category-card.category-golden-edit:hover {
  transform:translateY(-2px)!important;
  border-color:#c8af9c!important;
  box-shadow:0 9px 25px rgba(77,56,43,.075)!important;
}
@media(max-width:700px){
  body.gv508-home .category-intro {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    padding:38px 13px 41px!important;
  }
  body.gv508-home .category-intro .category-card,
  body.gv508-home .category-intro .category-card.category-golden-edit,
  body.gv508-home .category-intro .category-card:not(.category-golden-edit) {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr) 87px!important;
    height:clamp(253px,70vw,298px)!important;
    min-height:253px!important;
  }
  body.gv508-home .category-intro .category-card::before,
  body.gv508-home .category-intro .category-card.category-golden-edit::before,
  body.gv508-home .category-intro .category-card:not(.category-golden-edit)::before {
    inset:8px 8px 95px!important;
    width:auto!important;
    height:auto!important;
  }
  body.gv508-home .category-intro .category-card > div,
  body.gv508-home .category-intro .category-card:not(.category-golden-edit) > div,
  body.gv508-home .category-intro .category-card.category-golden-edit > div {
    grid-column:1!important;
    grid-row:2!important;
    height:87px!important;
    min-height:87px!important;
    padding:10px 5px 12px!important;
    border:0!important;
    border-top:1px solid #efe6df!important;
    margin:0!important;
  }
  body.gv508-home .category-intro .category-card .eyebrow,
  body.gv508-home .category-intro .category-card.category-golden-edit .eyebrow {display:none!important;}
  body.gv508-home .category-intro .category-card h2,
  body.gv508-home .category-intro .category-card.category-golden-edit h2 {
    font-size:clamp(23px,6.4vw,30px)!important;
    margin:0 0 9px!important;
    line-height:1.04!important;
  }
  body.gv508-home .category-intro .category-card.category-golden-edit h2 {font-size:clamp(22px,5.8vw,28px)!important;}
  body.gv508-home .category-intro .category-card > div > span,
  body.gv508-home .category-intro .category-card.category-golden-edit > div > span {
    font-size:8px!important;
    line-height:1.2!important;
    padding-bottom:4px!important;
  }
}
@media(max-width:370px){
  body.gv508-home .category-intro {gap:9px!important;padding-left:10px!important;padding-right:10px!important;}
  body.gv508-home .category-intro .category-card h2 {font-size:22px!important;}
  body.gv508-home .category-intro .category-card.category-golden-edit h2 {font-size:21px!important;}
}
@media(prefers-reduced-motion:reduce){
  body.gv508-home .category-intro .category-card{transition:none!important;}
}
