/* Redfin case study — preview page only. Hero overlay is allowed; all other blocks stay side-by-side or stacked. */

.case-study-hero.text_banner_sec{ min-height:420px; }
.case-study-hero.text_banner_sec::after{
  background:linear-gradient(to bottom, rgba(0,0,0,.52), rgba(0,0,0,.66) 58%, rgba(0,0,0,.58));
}
.case-study-hero img{
  width:100%;
  height:clamp(420px, 58vw, 680px);
  object-fit:cover;
  object-position:center 42%;
}
.case-study-hero .eyebrow{
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:14px;
  margin:0 0 14px;
  font-weight:600;
}
.case-study-hero h1.section_title{
  font-size:clamp(30px, 4.4vw, 60px);
  line-height:1.08;
  margin:0;
  color:#fff;
}
.case-study-hero .lede{
  font-size:clamp(17px, 2vw, 22px);
  line-height:1.45;
  max-width:36em;
  margin:16px auto 0;
}

.cs-cuts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px 28px;
  margin:28px 0 8px;
}
.cs-cut{
  border-left:4px solid #eb1e8b;
  padding:4px 0 4px 18px;
}
.cs-cut .nums{
  font-family:ITCAvantGardePro-Bold, "ITC Avant Garde Gothic", sans-serif;
  font-size:clamp(26px, 3vw, 34px);
  line-height:1.15;
  color:#1f1f1f;
  margin:0;
}
.cs-cut p{ margin:8px 0 0; }

.cs-units{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px 28px;
  margin-top:28px;
}
.cs-unit{
  background:#f7f5f6;
  padding:28px 26px 24px;
  border-radius:4px;
}
.cs-unit .cs-kicker{
  color:#eb1e8b;
  font-family:ITCAvantGardePro-Bold, "ITC Avant Garde Gothic", sans-serif;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:0 0 8px;
}
.cs-unit h3{
  margin:0 0 10px;
  font-size:clamp(20px, 2.2vw, 26px);
  line-height:1.2;
}
.cs-unit p{ margin:0; }

.cs-gallery{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px 24px;
  margin-top:28px;
}
.cs-gallery figure{ margin:0; }
.cs-gallery img{
  width:100%;
  height:auto;
  max-height:520px;
  object-fit:cover;
  object-position:center 30%;
  border-radius:4px;
  aspect-ratio:4/3;
}
.cs-gallery figure.portrait img{
  aspect-ratio:3/4;
  max-height:620px;
  object-position:center 40%;
}
.cs-gallery figcaption{
  padding:12px 2px 0;
  color:#1f1f1f;
  font-size:15px;
  line-height:1.45;
}

.cs-cta.section17{ background:#1f1f1f; color:#fff; }
.cs-cta.section17 .section_title,
.cs-cta.section17 p{ color:#fff; }
.cs-cta.section17 p{ margin-bottom:22px; }

.section12.cs-related figure img{
  width:100%;
  height:auto;
  aspect-ratio:16/10;
  object-fit:cover;
}
.section12.cs-related figcaption{
  padding:12px 2px 0;
  color:#1f1f1f;
  font-size:18px;
  font-family:ITCAvantGardePro-Bold, "ITC Avant Garde Gothic", sans-serif;
}

.cs-index-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
  margin-top:36px;
}
.cs-index-grid a{ color:#1f1f1f; text-decoration:none; display:block; }
.cs-index-grid img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  border-radius:4px;
}
.cs-index-grid h3{ margin:14px 0 8px; font-size:22px; line-height:1.25; }
.cs-index-grid p{ margin:0; }
.cs-index-grid a:hover h3{ color:#eb1e8b; }

@media (max-width:767px){
  .case-study-hero img{ height:420px; }
  .cs-cuts, .cs-units, .cs-gallery, .cs-index-grid{ grid-template-columns:1fr; }
  .cs-gallery figure.portrait img{ aspect-ratio:3/4; max-height:none; }
}

/* Keep body copy readable in alternating blocks (site default right-aligns .right). */
.alternate-img-content .flex-row.right{ text-align:left; }
.alternate-img-content .flex-row.right .section_title{ float:none !important; }
.alternate-img-content .col-img.cs-pump img{ object-position:center 22%; }


/* Kualoa additions (preview only). Hero overlay allowed; other blocks stay separate. */

.case-study-hero.cs-kualoa-hero img{
  object-position: left 45%;
}
.cs-hotel-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 28px;
  margin:20px 0 0;
  padding:0;
  list-style:none;
}
.cs-hotel-list li{
  padding:8px 0 8px 14px;
  border-left:3px solid #eb1e8b;
  margin:0;
}
.cs-video{
  margin:28px 0 8px;
  display:flex;
  justify-content:center;
}
.cs-video video{
  width:100%;
  max-width:360px;
  height:auto;
  border-radius:4px;
  background:#111;
  aspect-ratio:9/16;
}
.cs-video figcaption{
  max-width:36em;
  margin:12px auto 0;
  text-align:center;
  font-size:15px;
  line-height:1.45;
}
.cs-gallery figure.portrait img{
  aspect-ratio:9/16;
  object-fit:cover;
  object-position:center 40%;
  max-height:640px;
}
@media (max-width:767px){
  .cs-hotel-list{ grid-template-columns:1fr; }
  .cs-video video{ max-width:280px; }
}
