/* --- Hoofdstuk zes: foto's ------------------------------------------------- */
.so-fotos {
  overflow: hidden;
  background: linear-gradient(178deg, #0d1838, #11214a 55%, #0d1838);
  color: var(--paper);
}
.so-fotos__inner {
  position: relative;
  z-index: 2;
}

/* Fotogrid: 4 kolommen, 2 rijen van 200px; eerste cel beslaat 2x2 */
.so-fotos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.so-fotos__item {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(251, 243, 224, 0.7);
  font-family: var(--sans);
  font-size: 0.9rem;
  border: 1.5px dashed rgba(214, 162, 58, 0.4);
  border-radius: 18px;
}
.so-fotos__item--large {
  grid-column: span 2;
  grid-row: span 2;
}
.so-fotos__caption { max-width: 22ch; }

/* Voorbereid op echte foto's: een <img> in een cel vult de hele cel */
.so-fotos__item > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.so-fotos__item:has(> img) {
  padding: 0;
  border-style: solid;
  border-color: rgba(214, 162, 58, 0.28);
}

@media (max-width: 900px) {
  .so-fotos__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .so-fotos__item--large {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }
  .so-fotos__item:not(.so-fotos__item--large) {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}
