/* The blue wash gives way to warm paper, using the same painted texture. */
.outdoor-story {
  background: linear-gradient(180deg, transparent calc(100% - 260px), #fbf6ed);
}
.gallery-section {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  background: linear-gradient(180deg, #fbf6ed, #fcf8f1 72%, #fff);
}
.gallery-cream-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 160px, #000 calc(100% - 350px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 160px, #000 calc(100% - 350px), transparent);
}
.gallery-cream-wash {
  position: absolute;
  display: block;
  background: #d7b184;
  -webkit-mask-image: url('images/wasser-aquarell-verlauf-20261124.png'), linear-gradient(180deg, transparent, #000 14%, #000 82%, transparent);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: url('images/wasser-aquarell-verlauf-20261124.png'), linear-gradient(180deg, transparent, #000 14%, #000 82%, transparent);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}
.gallery-cream-wash--first { top: -110px; left: -9%; width: 165%; height: 1700px; opacity: .25; }
.gallery-cream-wash--second { top: 550px; right: -10%; width: 155%; height: 2300px; opacity: .18; transform: scale(-1, -1); }
.gallery-cream-wash--third { top: 2500px; left: -12%; width: 155%; height: 2000px; opacity: .16; }
.gallery-section .montage-story--feature { background: transparent; }

/* One landscape and two portraits share a height without losing their edges. */
.furniture-scene {
  --furniture-width: min(1100px, calc(100cqw - clamp(340px, 32cqw, 560px)));
  --furniture-photo-height: calc((var(--furniture-width) - 52px) * .3529411765);
  --furniture-accent-width: min(260px, calc((100cqw - var(--furniture-width)) / 2 - 26px));
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  width: 100cqw;
  margin-inline: calc((100% - 100cqw) / 2);
  padding: 12px 0 28px;
  overflow: clip;
}
.furniture-scene .gallery-row--furniture {
  grid-template-columns: minmax(0, 16fr) minmax(0, 9fr) minmax(0, 9fr);
  width: var(--furniture-width);
  margin-inline: auto;
  gap: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.furniture-scene .gallery-image {
  overflow: hidden;
  border-radius: 7px;
  -webkit-mask-image: none;
  mask-image: none;
}
.furniture-scene .gallery-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
}
.furniture-scene .gallery-caption { padding-top: 19px; }
.furniture-scene .gallery-caption strong { font-size: 15px; line-height: 1.5; }
.furniture-scene .gallery-caption .gallery-description { color: #65727b; font-size: 12px; }
.furniture-accent {
  position: absolute;
  z-index: -1;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
/* Both watercolor groups share the photos' baseline and stay in the margins. */
.furniture-accent--movein-left,
.furniture-accent--movein-right {
  width: var(--furniture-accent-width);
  height: auto;
  max-width: none;
  top: calc(var(--furniture-photo-height) + 26px);
  transform: translateY(-100%);
}
.furniture-accent--movein-left {
  left: calc((100% - var(--furniture-width)) / 4 - var(--furniture-accent-width) / 2);
}
.furniture-accent--movein-right {
  right: calc((100% - var(--furniture-width)) / 4 - var(--furniture-accent-width) / 2);
}

@media (max-width: 1000px) {
  .furniture-scene { --furniture-width: min(680px, calc(100cqw - 110px)); padding-bottom: 260px; }
  .furniture-scene .gallery-row--furniture { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .furniture-scene .gallery-card:first-child { grid-column: 1 / -1; }
  .furniture-accent--movein-left,
  .furniture-accent--movein-right { width: 190px; height: auto; top: auto; bottom: 16px; transform: none; }
  .furniture-accent--movein-left { left: calc(50% - 210px); }
  .furniture-accent--movein-right { right: calc(50% - 210px); }
}
@media (max-width: 650px) {
  .outdoor-story { background: linear-gradient(180deg, transparent calc(100% - 220px), #fbf6ed); }
  .gallery-cream-wash--first { width: 190%; left: -30%; height: 2100px; opacity: .19; }
  .gallery-cream-wash--second { top: 1000px; width: 190%; height: 3200px; opacity: .15; }
  .furniture-scene { --furniture-width: min(400px, calc(100cqw - 40px)); padding-top: 8px; padding-bottom: 230px; }
  .furniture-scene .gallery-row--furniture { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .furniture-scene .gallery-card:not(:first-child) { width: min(100%, 300px); justify-self: center; }
  .furniture-scene .gallery-caption strong { font-size: 15px; }
  .furniture-accent--movein-left,
  .furniture-accent--movein-right { width: min(180px, 40cqw); bottom: 14px; }
  .furniture-accent--movein-left { left: calc(50% - min(180px, 40cqw) - 10px); }
  .furniture-accent--movein-right { right: calc(50% - min(180px, 40cqw) - 10px); }
}
