/* KORA – correctif photos V4
   Tous les visuels utilisés ici sont carrés.
   On conserve donc un cadre 1:1 et on empêche tout recadrage. */

/* HERO */
.hero-photo-card {
  position: relative;
  width: min(520px, 43vw);
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
  border-radius: 34px;
  background: #f3efe5;
}

.hero-photo-card > img:first-child {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* Laisse les éléments décoratifs du hero au-dessus de l'image. */
.hero-photo-shade,
.hero-photo-mark,
.hero-photo-label {
  position: absolute;
}

/* CARTES KORA STIMMEN / KORA KÖLN */
.photo-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.photo-story,
.photo-story-wide {
  position: relative;
  width: 100%;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
  border-radius: 30px;
  background: #f3efe5;
}

.photo-story > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* Les textes existent déjà dans les visuels. */
.photo-story-overlay,
.photo-story-copy {
  display: none !important;
}

/* Aucun zoom au survol. */
.photo-story:hover > img,
.photo-story:focus > img,
.photo-story:active > img {
  transform: none !important;
}

@media (max-width: 980px) {
  .hero-photo-card {
    width: min(560px, 86vw);
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }

  .photo-stories-grid {
    grid-template-columns: 1fr;
  }

  .photo-story,
  .photo-story-wide {
    width: min(100%, 680px);
    margin-inline: auto;
    aspect-ratio: 1 / 1 !important;
  }
}

@media (max-width: 700px) {
  .hero-photo-card {
    width: min(430px, 92vw);
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    transform: none;
  }

  .hero-photo-card > img:first-child {
    min-height: 0 !important;
    object-position: center !important;
  }

  .photo-stories {
    overflow: hidden;
  }

  .photo-stories-grid {
    width: 100%;
    padding-inline: 16px;
    box-sizing: border-box;
  }

  .photo-story,
  .photo-story-wide {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1 !important;
    border-radius: 22px;
  }
}
