.dupuy-case .line-copy { width: clamp(365px, 69svh, 760px); }
.dupuy-case .line-copy:not(.line-light) { background: #193033; }
.dupuy-case .line-copy.line-light { background: #f5f0e8; }
.dupuy-case .line-copy :is(h1, h2) { margin-bottom: clamp(18px, 3.2vh, 30px); }
.dupuy-case .line-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); }
.dupuy-case .dupuy-intro { width: clamp(365px, 42vw, 680px); }
.dupuy-intro h1 { font-size: clamp(2.2rem, 3.5vw, 3.5rem); }
.dupuy-logo {
  display: block;
  width: 78px;
  height: auto;
  margin: 0 auto 20px;
}

.dupuy-case .line-image { width: min(100vw, calc(100svh * var(--image-ratio))); }
.dupuy-case .dupuy-hero { width: min(58vw, 115svh); }
.dupuy-case .dupuy-document { background: #20292a; }

.dupuy-gallery {
  display: grid;
  width: min(100vw, 158svh);
  grid-template-columns: repeat(var(--gallery-columns, 3), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
  padding: clamp(10px, 2vh, 20px);
  background: #20292a;
}

.dupuy-tile { position: relative; min-width: 0; min-height: 0; margin: 0; }
.dupuy-case .dupuy-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dupuy-case .dupuy-tile .line-expand {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  margin: 0;
}
.dupuy-tile .line-expand svg { width: 17px; height: 17px; }

.dupuy-gallery-mosaic { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.dupuy-gallery-mosaic .dupuy-tile:first-child { grid-row: span 2; }
.dupuy-gallery-wide { --gallery-columns: 2; }
.dupuy-gallery-photos { gap: 4px; padding: 0; }
.dupuy-case .dupuy-gallery-photos img { object-fit: cover; }

@media (max-width: 680px) {
  .dupuy-case .line-image, .dupuy-case .line-copy, .dupuy-gallery { width: 100vw; }
  .dupuy-case .line-image img { width: 100%; }
  .dupuy-gallery { --gallery-columns: 2; gap: 6px; }
  .dupuy-gallery-mosaic { grid-template-columns: minmax(0, 1fr); }
  .dupuy-gallery-mosaic .dupuy-tile:first-child { grid-row: auto; }
}
