/* Tableau des distances : lieux cliquables */
.gl-lieu { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .45em; color: inherit; }
.gl-lieu span { text-decoration: underline dotted; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: .25em; }
.gl-lieu svg { flex: none; opacity: .6; transition: opacity .2s; }
.gl-lieu:hover span, .gl-lieu:focus-visible span { color: var(--ocre); text-decoration-color: currentColor; }
.gl-lieu:hover svg, .gl-lieu:focus-visible svg { opacity: 1; color: var(--ocre); }
.gl-lieu:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; border-radius: 2px; }

/* La photo et son histoire : côte à côte sur grand écran, l'une sous l'autre sur téléphone */
.gl-boite { border: 0; padding: 0; background: #f6f3ee; color: #1e2a25; border-radius: 8px; width: min(1180px, 94vw); max-width: none; max-height: 92vh; overflow: visible; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.gl-boite::backdrop { background: rgba(18, 32, 27, .82); }
.gl-boite[open] { animation: gl-entree .25s ease-out; }
.gl-boite figure { margin: 0; max-height: 92vh; overflow-y: auto; border-radius: 8px; }
.gl-boite img { display: block; width: 100%; height: auto; max-height: 55vh; object-fit: cover; background: #12201b; }
.gl-boite figcaption { display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.3rem 1.2rem; }
.gl-boite strong { font: 1.35rem/1.25 var(--wp--preset--font-family--titre); color: #1f4437; }
.gl-texte { margin: 0; font-size: 1rem; line-height: 1.6; }
.gl-credit { margin-top: auto; font-size: .78rem; color: #5a655f; }
.gl-credit a { color: inherit; }
@media (min-width: 900px) {
  .gl-boite figure { display: grid; grid-template-columns: 58% 1fr; overflow: hidden; }
  .gl-boite img { height: 100%; max-height: none; min-height: 460px; }
  .gl-boite figcaption { padding: 1.6rem 1.7rem 1.3rem; overflow-y: auto; max-height: 92vh; box-sizing: border-box; }
}
.gl-fermer { position: absolute; z-index: 1; top: -14px; right: -14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #1f4437; color: #fff; font: 26px/1 sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.gl-fermer:hover, .gl-fermer:focus-visible { background: #a5432a; }
.gl-fermer:focus:not(:focus-visible) { outline: none; }
@media (max-width: 600px) { .gl-fermer { top: 8px; right: 8px; } }
@keyframes gl-entree { from { opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .gl-boite[open] { animation: none; } }