/* Onglet Photos : photos au format d'origine (pas de rognage) et vidéos PeerTube. */
.borne-photos { max-width: var(--mc-largeur, 1100px); }
.borne-photos .bp-soiree { margin: 0 0 40px; }
.borne-photos h3 { display: inline-block; margin: 0 0 14px; padding: 0 6px; font-size: 1.4em; background: linear-gradient(transparent 55%, var(--mc-jaune, #faf533) 55%); }
.borne-photos .bp-album { margin: 0 0 22px; }
.borne-photos .bp-label { margin: 0 0 8px; font-weight: 700; }
.borne-photos .bp-label span { font-weight: 400; opacity: .7; }
/* Rangées justifiées : toutes les photos d'une rangée ont la même hauteur, sans rognage ni trou (hauteur visée : --bp-rang). */
.borne-photos { --bp-rang: 200px; }
.borne-photos .bp-grille { display: flex; flex-wrap: wrap; gap: 10px; }
.borne-photos .bp-grille::after { content: ""; flex: 999999 1 0; }   /* la dernière rangée ne s'étire pas */
.borne-photos .bp-photo { display: flex; flex: calc(var(--ar, 1.5) * 100) 1 calc(var(--ar, 1.5) * var(--bp-rang)); min-width: 0; margin: 0; border: 3px solid #000; background: #fff; line-height: 0; cursor: zoom-in; box-sizing: border-box; }
.borne-photos .bp-photo[hidden] { display: none; }
.borne-photos .bp-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ar, 1.5); display: block; }
.borne-photos .bp-photo:hover, .borne-photos .bp-photo:focus-visible { outline: 3px solid var(--mc-rose, #f545d4); outline-offset: 2px; }
.borne-photos .bp-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 4px 0 0; }
.borne-photos .bp-bouton { border: 3px solid #000; background: var(--mc-jaune, #faf533); color: #000; padding: 6px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.borne-photos .bp-lien { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--mc-rose, #f545d4); }
.borne-photos .bp-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.borne-photos .bp-video { border: 3px solid #000; background: #fff; }
.borne-photos .bp-lecteur { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.borne-photos .bp-lecteur img { width: 100%; height: 100%; object-fit: cover; display: block; }
.borne-photos .bp-lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.borne-photos .bp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; line-height: 56px; text-align: center; font-size: 24px; color: #000; background: var(--mc-jaune, #faf533); border: 3px solid #000; }
.borne-photos .bp-duree { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; font-size: .8em; color: #fff; background: rgba(0,0,0,.8); }
.borne-photos .bp-vtitre { margin: 0; padding: 8px 10px; font-weight: 600; }
.borne-photos .bp-vide { padding: 14px; border: 3px dashed #000; background: #fff; }
.borne-photos .bp-pied { margin: 28px 0 0; padding: 10px 14px; border: 3px solid #000; background: #fff; }
.borne-photos .bp-erreur { margin-top: 10px; font-size: .85em; opacity: .7; }
/* Soirées anciennes repliées */
.borne-photos .bp-ancienne { margin: 0 0 14px; border: 3px solid #000; background: #fff; }
.borne-photos .bp-ancienne[hidden] { display: none; }
.borne-photos .bp-ancienne summary { display: flex; align-items: center; gap: 14px; padding: 8px 12px; cursor: pointer; list-style: none; }
.borne-photos .bp-ancienne summary::-webkit-details-marker { display: none; }
.borne-photos .bp-ancienne summary::after { content: "▾"; margin-left: auto; font-size: 1.3em; }
.borne-photos .bp-ancienne[open] summary::after { content: "▴"; }
.borne-photos .bp-ancienne summary img { width: 64px; height: 64px; object-fit: cover; border: 3px solid #000; flex: none; }
.borne-photos .bp-ancienne-txt { display: flex; flex-direction: column; }
.borne-photos .bp-ancienne-txt small { opacity: .75; }
.borne-photos .bp-ancienne[open] summary { border-bottom: 3px dashed #000; background: var(--mc-jaune-pale, #fefecd); }
.borne-photos .bp-ancienne > .bp-album { margin: 14px 12px 14px; }
.borne-photos .bp-soiree:target h3, .borne-photos .bp-ancienne:target { outline: 3px solid var(--mc-rose, #f545d4); outline-offset: 4px; }
/* Visionneuse */
.bp-lb { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.92); }
.bp-lb[hidden] { display: none; }
.bp-lb img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border: 3px solid #fff; background: #111; }
.bp-lb button { position: absolute; border: 3px solid #000; background: #faf533; color: #000; font: inherit; font-weight: 700; cursor: pointer; padding: 8px 14px; }
.bp-lb .bp-x { top: 14px; right: 14px; }
.bp-lb .bp-p { left: 10px; top: 50%; transform: translateY(-50%); }
.bp-lb .bp-n { right: 10px; top: 50%; transform: translateY(-50%); }
.bp-lb .bp-c { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; }
@media (max-width: 600px) { .borne-photos { --bp-rang: 130px; } .borne-photos .bp-grille { gap: 8px; } .bp-lb .bp-p, .bp-lb .bp-n { top: auto; bottom: 10px; transform: none; } }
