/* Galerie photo officielle 2026. */
.galleryAlbumLink {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #666;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .14em;
  transition: background .2s ease, border-color .2s ease;
}

.galleryAlbumLink:hover,
.galleryAlbumLink:focus-visible { background: #e20d2b; border-color: #e20d2b; }

.galleryGrid {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}

.galleryPhoto {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #171717;
  color: #fff;
  cursor: zoom-in;
}

.galleryPhoto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, #000b 100%);
  opacity: .55;
  transition: opacity .25s ease;
}

.galleryPhoto img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.galleryPhoto:hover img,
.galleryPhoto:focus-visible img { transform: scale(1.045); filter: saturate(1.08); }
.galleryPhoto:hover::after,
.galleryPhoto:focus-visible::after { opacity: .82; }
.galleryPhoto:focus-visible { outline: 3px solid #e20d2b; outline-offset: 3px; }

.galleryPhoto span {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .11em;
}

.galleryPhotoHero { grid-column: span 2; grid-row: span 2; }
.galleryPhotoTall { grid-row: span 2; }
.galleryPhotoWide { grid-column: span 2; }
.galleryCredit { margin-top: 20px; color: #888; text-align: right; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.galleryCredit a { color: #fff; }

.galleryLightbox[hidden] { display: none; }
.galleryLightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 56px 84px 34px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  background: #050505f2;
  backdrop-filter: blur(8px);
}
.galleryLightbox figure { margin: 0; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; }
.galleryLightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; box-shadow: 0 30px 90px #000; }
.galleryLightbox figcaption { padding-top: 14px; color: #ddd; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.galleryLightbox button { border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 32px; }
.galleryLightboxClose { position: absolute; right: 24px; top: 14px; width: 48px; height: 48px; }
.galleryLightboxPrev,.galleryLightboxNext { width: 48px; height: 70px; }
.galleryOpen { overflow: hidden; }

/* Protection générale contre les débordements décoratifs. */
.retroPage {
  overflow-x: hidden;
}

/*
 * Les contrôles radio et checkbox héritaient de width:100% via
 * .feedbackField input. Invisibles mais larges de 1280 px chacun,
 * ils portaient la largeur du document à plus de 2300 px.
 */
.rating label,
.choices label {
  position: relative;
  display: block;
}

.rating label input,
.choices label input {
  width: 1px !important;
  height: 1px !important;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .galleryGrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .galleryLightbox { padding: 60px 16px 28px; grid-template-columns: 42px minmax(0, 1fr) 42px; }
}

@media (max-width: 560px) {
  .galleryGrid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 6px; }
  .galleryPhotoHero { grid-column: span 2; grid-row: span 2; }
  .galleryPhotoTall { grid-row: span 2; }
  .galleryPhotoWide { grid-column: span 2; }
  .galleryPhoto span { left: 13px; right: 13px; bottom: 12px; font-size: 9px; }
  .galleryCredit { text-align: left; }
  .galleryLightbox { grid-template-columns: 36px minmax(0, 1fr) 36px; padding-inline: 6px; }
  .galleryLightbox button { font-size: 26px; }
}
