/* Layouts from the supplied 1920px case-study designs. Source artwork stays intact.
   Theme controls the hero/header; each dark showcase and the footer own their colors. */
.revised-case {
  --portfolio-bg:#101010;
  --portfolio-ink:#fff;
  background: var(--portfolio-bg);
  overflow-x: clip;
}
.revised-case .portfolio-hero {
  height: 100svh;
  min-height: 540px;
}
.revised-case .portfolio-hero-image {
  object-position: center;
}
.revised-case .portfolio-hero::after {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.2));
}
.revised-case .portfolio-hero-heading {
  inset: auto 0 24px;
  width: 100%;
  max-width: none;
  padding-inline: 40px;
}
.revised-case h1 {
  font-family: Poppins, Pretendard, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.revised-case h1[data-title-max] {
  font-size: clamp(48px, 18.0556vw, 260px);
}
.revised-case .project-overview {
  background: #262626;
  color: #fff;
  padding: clamp(64px, 9vw, 175px) 24px;
}
.revised-case .project-overview p {
  max-width: 1120px;
  margin-inline: auto;
  font-size: clamp(20px, 2.08333vw, 40px);
  line-height: 1.4;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: pretty;
}
.revised-case .case-showcase {
  width: 100%;
  margin: 0;
  background: #101010;
}
.revised-case .case-artwork-layout {
  width: 100%;
  margin-inline: auto;
}
.revised-case .case-showcase img {
  display: block;
  max-width: 100%;
  height: auto;
}
.revised-case .case-full .case-artwork-layout > img {
  width: 100%;
}
.revised-case .case-contained {
  padding: clamp(48px, 7vw, 140px) 24px;
}
.revised-case .case-contained .case-artwork-layout {
  max-width: var(--artwork-width);
  display: grid;
  gap: clamp(32px, 6vw, 116px);
}
.revised-case .case-artwork {
  margin: 0;
}
.revised-case .case-artwork img {
  width: 100%;
}
.revised-case .case-pair .case-artwork-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.revised-case .case-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.revised-case .case-phones {
  padding: clamp(40px, 7vw, 135px) 24px;
}
.revised-case .case-phones .case-artwork-layout {
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(var(--phone-columns), minmax(0, 1fr));
  gap: clamp(24px, 5vw, 96px);
  align-items: start;
  justify-items: center;
}
.revised-case .case-phones img {
  width: 100%;
  max-width: 420px;
}
.revised-case .case-phones[style*="--phone-columns:2"] .case-artwork-layout {
  max-width: 1050px;
}
.revised-case .case-mosaic .case-artwork-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.revised-case .case-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.revised-case .case-mosaic img:nth-child(2) {
  grid-column: 2;
  grid-row: 1/span 2;
}
.revised-case .case-quad {
  padding: clamp(40px, 6vw, 115px) 24px;
  background: #174cac;
}
.revised-case .case-quad .case-artwork-layout {
  max-width: 1660px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 58px);
}
.revised-case .case-quad img {
  width: 100%;
}
.revised-case .case-closing {
  overflow: hidden;
}
.revised-case .case-closing img {
  width: 100%;
  aspect-ratio: 1920/1000;
  object-fit: cover;
  object-position: center;
}

.case-lifehealth, .case-lawyer, .case-wellness, .case-promotion {
  --portfolio-bg:#262626;
}
.case-lifehealth .case-showcase, .case-lawyer .case-showcase, .case-wellness .case-showcase, .case-promotion .case-showcase {
  background: #262626;
}

.case-togetherplay .case-contained {
  background: #101010;
}

.case-togetherplay .case-contained:last-of-type {
  padding-bottom: 0;
}

.case-lawyer .case-contained .case-artwork-layout {
  max-width: 1200px;
  gap: 100px;
}

.case-mgi .case-contained .case-artwork-layout {
  max-width: 950px;
}

.case-beauty .case-contained .case-artwork-layout {
  max-width: 1000px;
}

.case-domezip .case-contained .case-artwork-layout {
  max-width: 1200px;
}

.case-gundamm .case-contained .case-artwork-layout {
  max-width: 1300px;
  gap: 40px;
}

.case-letsstudy .case-full img + img {
  margin-top: 0;
}

body.revised-case[data-case-surface=dark] {
  --chrome-ink:#fff;
  --chrome-surface:#191919c9;
}

body.revised-case[data-case-surface=light] {
  --chrome-ink:#222;
  --chrome-surface:#ffffffc9;
}

@media (max-width: 1279px) {
  .revised-case .case-phones .case-artwork-layout {
    gap: 28px;
  }
  .revised-case .portfolio-hero-heading {
    padding-inline: 40px;
  }
}
@media (max-width: 767px) {
  .revised-case .portfolio-hero {
    height: 85svh;
    min-height: 450px;
  }
  .revised-case .portfolio-hero-heading {
    inset: auto 0 24px;
    padding-inline: 16px;
  }
  .revised-case .portfolio-hero-meta {
    font-size: 9px;
    gap: 8px;
  }
  .revised-case .project-overview {
    padding: 64px 24px;
  }
  .revised-case .project-overview p {
    font-size: 21px;
  }
  .revised-case .case-contained {
    padding: 40px 16px;
  }
  .revised-case .case-phones {
    padding: 40px 16px;
  }
  .revised-case .case-phones .case-artwork-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 12px;
  }
  .revised-case .case-phones img {
    max-width: 250px;
  }
  .revised-case .case-phones img:last-child:nth-child(odd) {
    grid-column: 1/-1;
    width: calc(50% - 6px);
  }
  .revised-case .case-mosaic .case-artwork-layout {
    grid-template-columns: 1fr;
  }
  .revised-case .case-mosaic img:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }
  .revised-case .case-quad {
    padding: 32px 16px;
  }
  .revised-case .case-quad .case-artwork-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .revised-case .case-closing img {
    aspect-ratio: 4/3;
  }
  .case-lawyer .case-contained .case-artwork-layout {
    gap: 40px;
  }
}
/* Astryx sets explicit text colors, so dark canvas text owns its color directly. */
.revised-case .project-overview p {
  color: #fff;
}

.revised-case h1 {
  color: var(--portfolio-hero-ink);
}

.portfolio-flow .portfolio-controls {
  color: #fff;
}

.portfolio-flow .portfolio-player > button {
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
