/* Projects, services and cases. Frame family 181. */

/* Preserve the source paint rather than lowering the whole media opacity. */
.page-case .case-cover { opacity:1; }
.page-case .case-cover::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:rgba(25,25,25,.5);
}
.services-hero .new-background::after { background:rgba(0,0,0,.7); }

/* Exact 14 x 4 Figma asset, not a typographic em dash or a 2px rule. */
.service-row h3::before,
.guest-list li::before {
  width:14px; height:4px;
  background:transparent url('../images/review-dash.svg') center / 14px 4px no-repeat;
}
.service-row h3::before { top:10px; }
.guest-list li::before { top:7.5px; }
.credits .credit-row { gap:0 8px; }
.credit-dash {
  display:inline-flex; align-items:center; justify-content:center;
  width:14px; height:19px; flex:0 0 14px;
}
.credit-dash img { display:block; width:14px; height:4px; }

/* Decorative vertical time/date boxes. Text itself is rotated, not written
 * with vertical glyph orientation. Their markup is supplied by the generator patch. */
.review-decorative-label {
  position:absolute; z-index:2; width:14px;
  color:var(--yellow); font:400 12px/14px var(--mono);
  pointer-events:none;
}
.review-decorative-label time {
  position:absolute; left:50%; top:50%; display:block;
  transform:translate(-50%,-50%) rotate(-90deg);
  white-space:nowrap;
}
.feature-xv { position:relative; }
.review-projects-date { left:56px; top:882px; height:73px; font-weight:700; }
.review-services-date { left:48px; top:436px; height:73px; }
.review-services-time { left:48px; top:563px; height:58px; }

@media (min-width:768px) {
  /* 181:6223 / 6563: one-line lead spans 1360px at the 1440px frame.
   * Liga 181:6472 intentionally keeps its separate 673px column. */
  .page-bonchinche-weekend .case-hero.case-full .case-heading,
  .page-bonchinche-xv .case-hero.case-full .case-heading {
    width:calc(100% - 80px); max-width:none;
  }
  .weekend-article { padding-block:64px; }
  .weekend-prose .desktop-only { gap:20px; }
  .case-crumbs { top:2px; }

  /* 181:6435: full-width 4:3 photo anchored to TOP of the 1360x765 slot. */
  .service-photo-dj picture { position:relative; overflow:hidden; }
  .service-photo-dj img {
    position:absolute; left:0; top:0;
    width:100%; height:133.333333%; aspect-ratio:auto;
  }

  /* 181:5973: gradientTransform converted for the 1440x807 source rectangle. */
  .feature-weekend .feature-background::after {
    background:linear-gradient(89.4097deg,
      rgba(0,0,0,.4) 41.611%, rgba(102,102,102,0) 99.713%);
  }
  .feature-whos .feature-background::after { background:rgba(25,25,25,.5); }

  /* 181:6297 / 6298: child 674x455 at y0, clipped by 674x449 parent. */
  .case-gallery.desktop-only .deep-gallery-crop img {
    position:absolute; top:0; left:0;
    width:100%; height:101.336303%; object-fit:cover;
  }

  .new-jump { gap:8px; }
  .new-jump a { padding-block:4px; }
}

@media (min-width:1101px) {
  /* Source desktop text x positions at 1440px; retain the existing <=1100 layout. */
  .services-hero .new-editorial { margin-left:25%; width:791px; max-width:65%; }
  .services-hero .offset-first,
  .services-hero .new-body { margin-left:347px !important; width:444px; }

  /* 181:5989 / 6016: editorial x288,w887. First row and body stay x731. */
  .feature-overlay .new-editorial {
    margin-left:18.2352941176%; width:65.2205882353%; max-width:887px;
  }
  .feature-overlay .offset-first,
  .feature-overlay .new-body {
    margin-left:49.9436302142% !important; width:50.0563697858%;
  }
  .feature-overlay .offset-second { white-space:nowrap; }
  .feature-whos .offset-second { text-align:right; }
}

/* Source has no intermediate frame. Allow authored long lines to wrap before
 * the desktop layout becomes narrower than their natural width. */
@media (min-width:1101px) and (max-width:1199px) {
  .services-hero .offset-first,
  .services-hero .new-body { margin-left:35% !important; width:65%; }
  .feature-overlay .offset-second { white-space:normal; }
}

@media (max-width:767px) {
  /* 181:8278 has y235.5 in its 844px centered parent, not top padding68 only. */
  .weekend-article { justify-content:center; }

  /* 181:7812 is 350px wide at x40; the body deliberately remains 250px at x100. */
  .feature-whos .project-intro h2 { margin-bottom:18px; }
  .feature-whos .new-lead { width:350px; max-width:calc(100vw - 40px); }

  .services-hero .new-background::after { background:rgba(25,25,25,.7); }
  .projects-hero .new-background img,
  .projects-hero .new-background video {
    object-position:53.52597% center;
    /* Inverse of source imageTransform ty=-0.0005297636380419135. */
    transform:translateY(.0529764%);
  }

  /* 181:8276 and 8297 are opacity1 VIDEO fills, without an overlaid dark rect. */
  .page-bonchinche-weekend .case-cover,
  .page-liga-tanca .case-cover { right:0; }
  .page-bonchinche-weekend .case-cover::after,
  .page-liga-tanca .case-cover::after { display:none; }
  .page-liga-tanca .case-cover img,
  .page-liga-tanca .case-cover video { object-position:44.205% center; }

  .case-gallery .gallery-prev { left:12px; }
  .case-gallery .gallery-next { right:12px; }
  /* Who's slides4-8 are 259px high, centered in the 260px gallery row. */
  .page-whos-bitch .case-gallery.mobile-only .rail-track { align-items:center; }
  .case-gallery.mobile-only .rail-track>.gallery-mobile-short { aspect-ratio:390/259; }

  .service-row h3::before { top:8.5px; }
  .credit-dash { height:17px; }
  .review-decorative-label { display:none; }
}

@media(min-width:768px) {
  .liga-opening { width:689px; padding:0; }
  .services-hero .new-body { min-height:114px; }
}
@media(max-width:767px) {
  .feature-whos .new-lead { min-height:84px; }
}

@media(min-width:768px) {
  .page-liga-tanca .platforms-interview + .case-section { padding-top:0; }
  .page-liga-tanca .platforms-interview + .case-section h2 { margin-bottom:24px; }
}
@media(max-width:767px) {
  .feature-whos .new-lead { max-width:calc(100vw - 40px); }
  .feature-whos .project-intro { padding-right:0; }
  .feature-whos .new-body { width:calc(100vw - 140px); }
  .feature-whos .project-action { padding-right:40px; }
  .feature-whos + .project-more { margin-top:92px; }
}
[data-figma-node="181:7812"],[data-figma-node="181:8301"] { container-type:inline-size; }
@container (min-width:349px) and (max-width:351px) {
  [data-figma-node="181:7812"] .reference-line,
  [data-figma-node="181:8301"] .reference-line { display:block; white-space:pre; }
}
@media(max-width:389px) {
  .feature-whos .new-lead { max-width:calc(100vw - 60px); }
}
