.debrie-case .line-copy { width: clamp(365px, 69svh, 760px); }
.debrie-case .line-copy:not(.line-light) { background: #261e1b; }
.debrie-case .line-copy.line-light { background: #f5f0e7; }
.debrie-case .line-copy :is(h1, h2) { margin-bottom: clamp(18px, 3.2vh, 30px); }
.debrie-case .line-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); }
.debrie-case .debrie-intro { width: clamp(365px, 42vw, 680px); }
.debrie-intro h1 { font-size: clamp(2.2rem, 3.5vw, 3.5rem); }
.debrie-logo { display: block; width: min(112px, 40%); height: auto; margin: 0 auto 20px; }
.debrie-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 21px; }
.debrie-actions .line-watch { margin: 0; }

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

.debrie-gallery {
  display: grid;
  width: min(100vw, 158svh);
  grid-template-columns: repeat(var(--gallery-columns, 2), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 4px;
  background: #211b19;
}

.debrie-gallery-shop {
  --gallery-columns: 3;
  width: min(100vw, 102svh);
  gap: 8px;
  padding: clamp(10px, 2vh, 20px);
}
.debrie-tile { position: relative; min-width: 0; min-height: 0; margin: 0; }
.debrie-case .debrie-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.debrie-case .debrie-gallery-shop img { object-fit: contain; }
.debrie-case .debrie-tile .line-expand {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  margin: 0;
}
.debrie-tile .line-expand svg { width: 17px; height: 17px; }

@media (max-width: 680px) {
  .debrie-case .line-image, .debrie-case .line-copy, .debrie-gallery { width: 100vw; }
  .debrie-case .line-image img { width: 100%; }
  .debrie-gallery { gap: 6px; }
}
