.riffx-journey {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: 7vw;
  align-items: center;
  padding: 2rem 8vw 10rem;
  background: #080706;
}

.riffx-media {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(189, 151, 97, .28);
  background: #11111b;
  cursor: zoom-in;
  box-shadow: 12px 12px 0 rgba(189, 151, 97, .08);
}

.riffx-gallery { display: grid; gap: 2.2rem; align-items: start; }
.riffx-item { margin: 0; }
.riffx-item figcaption,
.riffx-dialog figcaption {
  margin-top: .8rem;
  color: #817a72;
  font-size: .64rem;
  line-height: 1.5;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.riffx-media:focus-visible,
.riffx-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

.riffx-image-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #11111b;
}

.riffx-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Le concours étant terminé, le bouton de vote de la capture est neutralisé visuellement. */
.riffx-profile .riffx-image-frame::after,
.riffx-image-frame.is-profile::after {
  content: "Concours terminé";
  position: absolute;
  left: 44.5%;
  top: 10.7%;
  width: 54.5%;
  height: 9.9%;
  display: grid;
  place-items: center;
  background: #191a27;
  color: #bd9761;
  font: 500 clamp(.55rem, 1.2vw, .78rem) var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.riffx-copy h2 {
  font: 400 clamp(2.8rem, 5vw, 5rem)/1.08 var(--serif);
  letter-spacing: -.025em;
  margin: 1.3rem 0 2rem;
}

.riffx-copy h2 em { color: var(--gold); font-weight: 400; }
.riffx-copy p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.riffx-modal[hidden] { display: none; }
.riffx-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 3vh 3vw;
  overflow: hidden;
}
.riffx-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 2, .94); backdrop-filter: blur(8px); }
.riffx-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  height: min(92vh, 900px);
  height: min(92dvh, 900px);
  margin: 0;
  padding: 60px 72px 18px;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  background: #000;
  border: 1px solid rgba(189, 151, 97, .28);
}
.riffx-dialog .riffx-image-frame { max-width: 100%; max-height: 100%; }
.riffx-dialog .riffx-image-frame.is-visual { width: 100%; height: auto; aspect-ratio: 1405 / 685; }
.riffx-dialog .riffx-image-frame.is-profile { width: auto; height: 100%; aspect-ratio: 580 / 719; }
.riffx-dialog .riffx-image-frame img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.riffx-dialog figcaption { min-height: 32px; margin: 12px 0 0; text-align: center; color: #b4a99d; }
.riffx-close {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(189, 151, 97, .7);
  border-radius: 50%;
  background: rgba(8, 7, 6, .92);
  color: var(--gold);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.riffx-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(189, 151, 97, .7);
  border-radius: 50%;
  background: rgba(8, 7, 6, .9);
  color: var(--gold);
  font: 300 2.3rem/1 var(--serif);
  cursor: pointer;
  transform: translateY(-50%);
}
.riffx-arrow-left { left: 12px; }
.riffx-arrow-right { right: 12px; }

@media (max-width: 800px) {
  .riffx-journey {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 1rem 6vw 7rem;
  }
  .riffx-media { width: min(100%, 520px); margin: 0 auto; }
  .riffx-modal { padding: 12px; }
  .riffx-dialog { width: 100%; height: calc(100dvh - 24px); max-width: 100%; padding: 58px 12px 74px; }
  .riffx-dialog .riffx-image-frame.is-visual { width: 100%; height: auto; }
  .riffx-dialog .riffx-image-frame.is-profile { width: auto; height: 100%; }
  .riffx-arrow { top: auto; bottom: 16px; width: 44px; height: 44px; }
  .riffx-arrow-left { left: 16px; }
  .riffx-arrow-right { right: 16px; }
  .riffx-dialog figcaption { position: absolute; bottom: 28px; left: 72px; right: 72px; margin: 0; }
}
