/* HADES — poem as a threshold beside the first photograph.
   The original 18 frames and their desktop arrangement are untouched. */
.pendhore-project .gallery > .hades-poem {
  position:absolute;
  top:22px;
  left:12px;
  width:min(23%, 235px);
  z-index:3;
  color:#595c59;
}
.hades-poem-controls {
  display:flex;
  gap:11px;
  align-items:center;
  font:400 10px/1.4 Arial,Helvetica,sans-serif;
  letter-spacing:.16em;
  color:#8b8f8c;
  margin:0 0 29px;
}
.hades-poem-lang {
  font:inherit;
  color:inherit;
  background:transparent;
  border:0;
  border-bottom:1px solid transparent;
  padding:4px 2px 6px;
  cursor:pointer;
}
.hades-poem-lang.is-active { color:#262a26; border-bottom-color:#262a26; }
.hades-poem-lang:focus-visible { outline:1px solid currentColor;outline-offset:5px; }
.hades-poem-version[hidden] { display:none!important; }
.hades-poem-version { animation:hadesPoemFade .45s ease both; }
.hades-poem-version p {
  margin:0;
  font:400 clamp(11px,1vw,12px)/1.85 Arial,Helvetica,sans-serif;
  letter-spacing:.012em;
  white-space:pre-line;
  overflow-wrap:break-word;
  text-align:left;
}
@keyframes hadesPoemFade {from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:880px) and (min-width:701px) {
  .pendhore-project .gallery > .hades-poem{ left:10px; width:23%; top:14px; }
  .hades-poem-version p{font-size:10.5px;line-height:1.7;}
  .hades-poem-controls{margin-bottom:21px;}
}
@media(max-width:700px) {
  /* Read the poem after the opening image, before the descent continues. */
  .pendhore-project .gallery > .frame {order:2;}
  .pendhore-project .gallery > .frame.hero {order:0;}
  .pendhore-project .gallery > .hades-poem {
    order:1;
    position:relative;
    top:auto;
    left:auto;
    width:min(74%,365px);
    align-self:flex-start;
    margin:38px 0 38px 7%;
  }
  .hades-poem-controls{margin-bottom:24px;}
  .hades-poem-version p{font-size:12px;line-height:1.85;}
}
@media(prefers-reduced-motion:reduce){.hades-poem-version{animation:none;}}
