.hero__frame {
  aspect-ratio: 2 / 1;
  background: #fff;
}

.hero__frame img {
  object-fit: contain;
  object-position: center;
}

.media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  aspect-ratio: 3 / 2;
  padding: 1rem;
  background: #fff;
  border: 1px dashed #e4d5cc;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.feature__photo img,
.gallery img,
.shot__open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.feature__photo--quadrat img,
.shot-grid .shot__open img,
.gallery img {
  aspect-ratio: 1;
}

.gallery img {
  aspect-ratio: 2 / 1;
}

.feature__copy h2 {
  margin-bottom: 0.85rem;
}

.feature__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 1.1rem 0 0;
}

.feature__links .text-link {
  font-weight: 600;
}

.materials .media-placeholder {
  margin-bottom: 0.9rem;
}

.materials .trust-card p:last-child {
  margin-top: 0.85rem;
}

.narrow {
  max-width: 40rem;
}

.narrow .feature__links {
  margin-top: 1.25rem;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.shot-grid.shot-grid--fuenf,
.shot-grid.shot-grid--sechs {
  grid-template-columns: 1fr;
}

.shot-grid--paar {
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .shot-grid--paar {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid.shot-grid--fuenf {
    grid-template-columns: repeat(4, 1fr);
  }

  .shot-grid.shot-grid--fuenf > .shot {
    grid-column: span 2;
  }

  .shot-grid.shot-grid--fuenf > .shot:nth-child(5) {
    grid-column: 2 / span 2;
  }

  .shot-grid.shot-grid--sechs {
    grid-template-columns: 1fr 1fr;
  }
}

.shot {
  margin: 0;
}

.shot__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  cursor: zoom-in;
}

.shot figcaption,
.gallery figcaption {
  margin-top: 0.65rem;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.45;
  text-align: center;
}

.foto-dialog {
  width: min(68rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0.75rem 0.75rem 1rem;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.foto-dialog::backdrop {
  background: rgba(36, 31, 28, 0.72);
}

.foto-dialog__bar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.foto-dialog__nav,
.foto-dialog form {
  display: flex;
  gap: 0.5rem;
  margin: 0;
}

.foto-dialog button {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font: inherit;
  cursor: pointer;
}

.foto-dialog img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 9.5rem);
  margin: 0 auto;
  aspect-ratio: auto;
  border-radius: 8px;
}

.foto-dialog__text {
  margin: 0.7rem 0 0;
  color: var(--heading);
  font-size: 1.0625rem;
  line-height: 1.45;
  text-align: center;
}

.gallery {
  display: grid;
  gap: 1.5rem;
}

.gallery figure {
  margin: 0;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 55.99rem) {
  .hero__copy {
    order: -1;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 56rem) {
  .hero__frame {
    aspect-ratio: 2 / 1;
  }

  .feature {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }

  .feature.feature--text {
    grid-template-columns: minmax(0, 42rem);
  }

  .feature--reverse .feature__photo {
    order: 2;
  }

  .materials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shot-grid.shot-grid--fuenf {
    grid-template-columns: repeat(6, 1fr);
  }

  .shot-grid.shot-grid--fuenf > .shot:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .shot-grid.shot-grid--fuenf > .shot:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .shot-grid.shot-grid--sechs {
    grid-template-columns: repeat(3, 1fr);
  }

  .shot-grid.shot-grid--sechs > .shot {
    grid-column: auto;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}
