/* Shared by every layout: photo lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10, 10, 10, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; padding: 56px 64px; }
.lightbox img { max-width: min(1400px, calc(100vw - 128px)); max-height: calc(100vh - 150px); object-fit: contain; }
.lightbox figcaption { font: 500 1rem/1.4 system-ui, sans-serif; text-align: center; max-width: 70ch; }
.lightbox__btn { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 12px; top: 12px; font-size: 1.2rem; }
@media (max-width: 600px) {
  .lightbox figure { padding: 56px 8px 80px; }
  .lightbox img { max-width: calc(100vw - 16px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
}
.lightbox video { max-width: min(1400px, calc(100vw - 128px)); max-height: calc(100vh - 150px); background: #000; }
.lightbox [hidden] { display: none; }
@media (max-width: 600px) { .lightbox video { max-width: calc(100vw - 16px); } }
/* Video tiles inside photo grids */
a.is-video { position: relative; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; pointer-events: none; }
.play-badge svg { width: 24px; fill: #fff; margin-left: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Privacy page: neutral layout that inherits the active style's fonts and colours */
.legal-page { background: #fff; }
.legal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px max(16px, calc((100% - 760px) / 2)); border-bottom: 1px solid rgba(0,0,0,.12); }
.legal-head a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: inherit; }
.legal-head a:last-child { text-decoration: underline; font-weight: 600; }
.legal { width: min(760px, 100% - 32px); margin: 0 auto; padding: 48px 0 64px; line-height: 1.65; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.1; margin: 0 0 8px; }
.legal h2 { font-size: 1.35rem; line-height: 1.25; margin: 36px 0 10px; }
.legal p { margin: 0 0 1em; max-width: 68ch; }
.legal__updated { opacity: .7; font-size: .95rem; }
.legal-foot { text-align: center; padding: 24px 16px; font-size: .9rem; border-top: 1px solid rgba(0,0,0,.12); }
.legal-foot > p { opacity: .7; }
.legal-page--originale .legal h1, .legal-page--originale .legal h2 { text-transform: none; }

/* Affiliation notice required by the hosting school */
.affiliation { display: grid; gap: 12px; justify-items: center; text-align: center; margin: 28px auto 0; max-width: 760px; }
.affiliation__logos { width: min(520px, 100%); height: auto; }
.affiliation__text { margin: 0; font-size: .88rem; line-height: 1.5; max-width: 62ch; }
.affiliation--card { background: #fff; color: #222; border-radius: 14px; padding: 18px 22px; }
.affiliation--inline { justify-items: start; text-align: left; margin: 26px 0 0; max-width: none; }
.affiliation--inline .affiliation__logos { width: min(420px, 100%); }

/* No horizontal scrolling on phones (Safari ignores overflow-x on body alone) */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
