/* PENDHORE / HADES : suite photographique inspirée de la composition organique de HEXE.
   Seulement à partir de la photographie n° 5 (data-index="4").
   Le parcours original des 4 premières photos, la note d'intention, le poème,
   les liens, l'ordre des 18 photos et la visionneuse sont conservés. */

.pendhore-project .gallery > .hades-constellation {
  position: relative;
  flex: none;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1000 / 4050;
  margin: clamp(24px, 4.5vw, 55px) 0 0;
  isolation: isolate;
}

/* Les règles originales de .frame.left/.right/.backdrop sont neutralisées
   uniquement dans ce nouveau tableau, jamais pour les quatre premières. */
.pendhore-project .hades-constellation > .frame,
.pendhore-project .hades-constellation > .frame.backdrop {
  position: absolute !important;
  left: var(--hades-x);
  top: var(--hades-y);
  right: auto;
  bottom: auto;
  width: var(--hades-w) !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  align-self: auto !important;
  z-index: 2;
  transform: translateY(0);
}
.pendhore-project .hades-constellation > .frame[data-index="11"] {z-index: 1;}
.pendhore-project .hades-constellation > .frame:not(.inview) {
  opacity: 0;
  transform: translateY(19px);
}
.pendhore-project .hades-constellation > .frame.inview {
  opacity: 1;
  transform: translateY(0);
}
.pendhore-project .hades-constellation .photo img {
  display: block;
  width: 100%;
  height: auto;
}
.pendhore-project .hades-constellation > .frame[data-index="4"] { --hades-x:39%; --hades-y:1.0%; --hades-w:54%; }
.pendhore-project .hades-constellation > .frame[data-index="5"] { --hades-x:7%; --hades-y:6.0%; --hades-w:28%; }
.pendhore-project .hades-constellation > .frame[data-index="6"] { --hades-x:57%; --hades-y:12.4%; --hades-w:31%; }
.pendhore-project .hades-constellation > .frame[data-index="7"] { --hades-x:24%; --hades-y:18.8%; --hades-w:27%; }
.pendhore-project .hades-constellation > .frame[data-index="8"] { --hades-x:61%; --hades-y:26.4%; --hades-w:30%; }
.pendhore-project .hades-constellation > .frame[data-index="9"] { --hades-x:9%; --hades-y:31.6%; --hades-w:26%; }
.pendhore-project .hades-constellation > .frame[data-index="10"] { --hades-x:36%; --hades-y:39.0%; --hades-w:31%; }
.pendhore-project .hades-constellation > .frame[data-index="11"] { --hades-x:5%; --hades-y:49.9%; --hades-w:64%; }
.pendhore-project .hades-constellation > .frame[data-index="12"] { --hades-x:70%; --hades-y:43.0%; --hades-w:27%; }
.pendhore-project .hades-constellation > .frame[data-index="13"] { --hades-x:7%; --hades-y:60.8%; --hades-w:28%; }
.pendhore-project .hades-constellation > .frame[data-index="14"] { --hades-x:59%; --hades-y:59.2%; --hades-w:32%; }
.pendhore-project .hades-constellation > .frame[data-index="15"] { --hades-x:26%; --hades-y:72.7%; --hades-w:58%; }
.pendhore-project .hades-constellation > .frame[data-index="16"] { --hades-x:5%; --hades-y:81.3%; --hades-w:29%; }
.pendhore-project .hades-constellation > .frame[data-index="17"] { --hades-x:58%; --hades-y:86.1%; --hades-w:32%; }

@media (max-width:700px) {
  .pendhore-project .gallery > .hades-constellation {
    order: 2; /* Après la photo 4 et la note d'intention ; poème toujours après la photo 1. */
    aspect-ratio: 1000 / 5800;
    margin-top: 20px;
  }
  .pendhore-project .hades-constellation > .frame:not(.inview) {
    transform: translateY(15px);
  }
}
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="4"] { --hades-x:19%; --hades-y:0.5%; --hades-w:71%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="5"] { --hades-x:5%; --hades-y:7.0%; --hades-w:40%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="6"] { --hades-x:54%; --hades-y:10.5%; --hades-w:42%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="7"] { --hades-x:12%; --hades-y:18.6%; --hades-w:40%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="8"] { --hades-x:58%; --hades-y:22.0%; --hades-w:40%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="9"] { --hades-x:5%; --hades-y:29.2%; --hades-w:40%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="10"] { --hades-x:54%; --hades-y:32.7%; --hades-w:42%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="11"] { --hades-x:12%; --hades-y:43.8%; --hades-w:76%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="12"] { --hades-x:53%; --hades-y:53.3%; --hades-w:43%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="13"] { --hades-x:6%; --hades-y:56.2%; --hades-w:41%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="14"] { --hades-x:52%; --hades-y:67.5%; --hades-w:43%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="15"] { --hades-x:10%; --hades-y:78.8%; --hades-w:78%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="16"] { --hades-x:4%; --hades-y:89.0%; --hades-w:42%; } }
@media (max-width:700px) { .pendhore-project .hades-constellation > .frame[data-index="17"] { --hades-x:55%; --hades-y:88.3%; --hades-w:42%; } }

@media (prefers-reduced-motion:reduce) {
  .pendhore-project .hades-constellation > .frame,
  .pendhore-project .hades-constellation > .frame:not(.inview) {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}
