/* ============================================================
   BLACK ROCK — Photography
   Unsplash images injected via CSS targeting each context.
   Replace these with actual project renders when available.
   ============================================================ */

/* ---- Shared photo overrides ---- */
.ph.photo {
  background-size: cover !important;
  background-position: center !important;
  background-image: none;  /* base — overridden per element */
}
.ph.photo::after { display: none; }

/* Suppress label text on any element where bg-image is set inline */
.hero__bg .ph::after,
.intro__media .ph:first-child::after,
.about__grid .ph::after,
#project .ph::after,
.amen__panel .ph::after,
.villa__img::after,
[data-gal-grid] .ph::after,
.loc__map .ph::after { display: none; }

/* ---- HERO (full-bleed) ---- */
.hero__bg .ph {
  background-image: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center 45%;
  border: none;
}

/* ---- INTRO lifestyle ---- */
.intro__media .ph:not(.badge .ph) {
  background-image: url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}

/* ---- ABOUT — vision render ---- */
.about__grid .ph.on-cream {
  background-image: url("https://images.unsplash.com/photo-1580587771525-78b9dba3b914?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center 60%;
}

/* ---- PROJECT — masterplan banner ---- */
#project .ph[style*="aspect-ratio:21/9"] {
  background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center 35%;
}

/* ---- AMENITIES ---- */
.amen__panel[data-amen-panel="club"] .ph {
  background-image: url("https://images.unsplash.com/photo-1571902943202-507ec2618e8f?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}
.amen__panel[data-amen-panel="farm"] .ph {
  background-image: url("https://images.unsplash.com/photo-1500595046743-cd271d694d30?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center 40%;
}
.amen__panel[data-amen-panel="villa"] .ph {
  background-image: url("https://images.unsplash.com/photo-1600210492493-0946911123ea?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}

/* ---- FLOOR PLANS — villa thumbnails ---- */
.villa:nth-child(1) .villa__img {
  background-image: url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=800&q=80&crop=right");
  background-size: cover; background-position: center;
}
.villa:nth-child(2) .villa__img {
  background-image: url("https://images.unsplash.com/photo-1560185007-cde436f6a4d0?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
.villa:nth-child(3) .villa__img {
  background-image: url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
.villa:nth-child(4) .villa__img {
  background-image: url("https://images.unsplash.com/photo-1580587771525-78b9dba3b914?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center 40%;
}

/* ---- GALLERY — Exterior ---- */
[data-gal-grid="ext"] .ph:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1600607688969-a5bfcd646154?auto=format&fit=crop&w=1200&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="ext"] .ph:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: right center;
}
[data-gal-grid="ext"] .ph:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1519125323398-675f0ddb6308?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="ext"] .ph:nth-child(4) {
  background-image: url("https://images.unsplash.com/photo-1580587771525-78b9dba3b914?auto=format&fit=crop&w=1200&q=80&crop=top");
  background-size: cover; background-position: center 30%;
}
[data-gal-grid="ext"] .ph:nth-child(5) {
  background-image: url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="ext"] .ph:nth-child(6) {
  background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=800&q=80&crop=bottom");
  background-size: cover; background-position: center;
}

/* ---- GALLERY — Interior ---- */
[data-gal-grid="int"] .ph:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1600210492493-0946911123ea?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="int"] .ph:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=800&q=80&crop=right");
  background-size: cover; background-position: center;
}
[data-gal-grid="int"] .ph:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1556909212-d5b604d0c90d?auto=format&fit=crop&w=1200&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="int"] .ph:nth-child(4) {
  background-image: url("https://images.unsplash.com/photo-1560185007-cde436f6a4d0?auto=format&fit=crop&w=800&q=80&crop=top");
  background-size: cover; background-position: center;
}
[data-gal-grid="int"] .ph:nth-child(5) {
  background-image: url("https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}

/* ---- GALLERY — Clubhouse ---- */
[data-gal-grid="club"] .ph:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1571902943202-507ec2618e8f?auto=format&fit=crop&w=1200&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="club"] .ph:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1419242902214-272b3f66ee7a?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="club"] .ph:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1519125323398-675f0ddb6308?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="club"] .ph:nth-child(4) {
  background-image: url("https://images.unsplash.com/photo-1506126613408-eca07ce68773?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="club"] .ph:nth-child(5) {
  background-image: url("https://images.unsplash.com/photo-1600210492493-0946911123ea?auto=format&fit=crop&w=1200&q=80");
  background-size: cover; background-position: center;
}

/* ---- GALLERY — Landscape ---- */
[data-gal-grid="land"] .ph:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="land"] .ph:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="land"] .ph:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1500595046743-cd271d694d30?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="land"] .ph:nth-child(4) {
  background-image: url("https://images.unsplash.com/photo-1518241353330-0f7941c2d9b5?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="land"] .ph:nth-child(5) {
  background-image: url("https://images.unsplash.com/photo-1500595046743-cd271d694d30?auto=format&fit=crop&w=800&q=80&crop=right");
  background-size: cover; background-position: center;
}

/* ---- GALLERY — Construction (keep muted, tinted) ---- */
[data-gal-grid="cons"] .ph:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
  filter: saturate(0.6);
}
[data-gal-grid="cons"] .ph:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
  filter: saturate(0.6);
}
[data-gal-grid="cons"] .ph:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
  filter: saturate(0.6);
}
[data-gal-grid="cons"] .ph:nth-child(4) {
  background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=800&q=80&crop=bottom");
  background-size: cover; background-position: center;
  filter: saturate(0.6);
}

/* ---- GALLERY — Videos (dark overlay, keep play icon) ---- */
[data-gal-grid="vid"] .ph:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1200&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="vid"] .ph:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="vid"] .ph:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=800&q=80");
  background-size: cover; background-position: center;
}
[data-gal-grid="vid"] .ph { border: none; }

/* Video overlay + play icon readability */
[data-gal-grid="vid"] .ph.play::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(20,18,14,0.44);
  z-index: 0;
}
[data-gal-grid="vid"] .ph.play::before { z-index: 1; }
