/* Giurie: griglia compatta a 8 colonne e biografie in finestra dialogo. */
.mljg-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:24px 12px;align-items:start;width:100%}
.mljg-grid *, .mljg-grid *::before,.mljg-grid *::after{box-sizing:border-box}
.mljg-grid-title{grid-column:1/-1;margin:0 0 8px}
.mljg-grid .mljg-person{min-width:0;max-width:100%;margin:0;padding:0;background:none;border:0}
.mljg-grid .mljg-person .mljg-photo{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center;border-radius:3px;background:#ebe5dd}
.mljg-grid .mljg-person .mljg-photo--empty{display:flex;align-items:center;justify-content:center;background:#eae5df;color:#91877c}
.mljg-grid .mljg-photo--empty span{font-family:inherit;font-weight:600;font-size:clamp(1.25rem,2vw,2rem);line-height:1.1;letter-spacing:.07em}
.mljg-grid .mljg-person .mljg-details{display:block;margin:0;border:0;border-bottom:1px solid #cec6bc;min-width:0;min-height:41px;padding:0}
.mljg-grid .mljg-person .mljg-person-button{appearance:none;display:flex;width:100%;align-items:start;justify-content:space-between;gap:4px;padding:10px 0 11px;background:transparent;border:0;border-radius:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
.mljg-grid .mljg-person .mljg-person-name{display:block;font-family:inherit!important;font-size:clamp(.72rem,.91vw,.9rem)!important;line-height:1.35!important;font-weight:700!important;text-transform:none!important;letter-spacing:normal!important;overflow-wrap:anywhere;word-break:normal;color:inherit;margin:0!important}
.mljg-grid .mljg-details>.mljg-person-name{padding:10px 0 11px}
.mljg-grid .mljg-plus{color:#ff5017;font-size:1.05rem;line-height:1;flex:none;font-weight:400}
.mljg-grid .mljg-person-button:focus-visible{outline:2px solid #ff5017;outline-offset:2px}
/* dialog è figlio della griglia, ma quando è chiuso non occupa celle */
.mljg-grid .mljg-modal:not([open]){display:none!important}
.mljg-grid .mljg-modal[open]{display:block;position:fixed;inset:0;margin:auto;max-width:min(850px,calc(100vw - 32px));width:850px;max-height:min(88vh,920px);padding:0;border:0;border-radius:10px;color:#202020;background:#fefcf8;box-shadow:0 24px 90px rgba(0,0,0,.3);overflow:auto;z-index:999999}
.mljg-grid .mljg-modal::backdrop{background:rgba(11,17,21,.75)}
.mljg-grid .mljg-modal-inner{position:relative;padding:clamp(22px,4vw,44px)}
.mljg-grid .mljg-modal-close{position:sticky;float:right;top:0;z-index:2;display:flex;align-items:center;justify-content:center;border:0;background:#ff5017;color:white;border-radius:50%;width:38px;height:38px;padding:0;font-family:Arial,sans-serif;font-size:27px;line-height:1;cursor:pointer}
.mljg-grid .mljg-modal-close:focus-visible{outline:3px solid #1b1b1b;outline-offset:3px}
.mljg-grid .mljg-modal-content{display:grid;grid-template-columns:minmax(0,210px) minmax(0,1fr);gap:28px;align-items:start;clear:both}
.mljg-grid .mljg-modal-photo{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:5px}
.mljg-grid .mljg-modal-copy{min-width:0}
.mljg-grid .mljg-modal-copy h2{font-family:inherit;font-weight:750;font-size:clamp(1.6rem,3vw,2.3rem);line-height:1.2;margin:0 0 20px;color:#161616}
.mljg-grid .mljg-modal-bio{font:inherit;font-size:1rem;line-height:1.75;overflow-wrap:break-word}
.mljg-grid .mljg-modal-bio> :first-child{margin-top:0}
@media(max-width:1199px){.mljg-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 14px}.mljg-grid .mljg-person .mljg-person-name{font-size:.87rem!important}}
@media(max-width:600px){.mljg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 12px}.mljg-grid .mljg-person .mljg-person-name{font-size:.87rem!important}.mljg-grid .mljg-modal-content{grid-template-columns:1fr;gap:18px}.mljg-grid .mljg-modal-photo{width:140px;max-width:45%;aspect-ratio:4/5}.mljg-grid .mljg-modal-inner{padding:22px}.mljg-grid .mljg-modal-copy h2{font-size:1.6rem;margin-bottom:12px}}

/* 1.4.1: bordi morbidi e foto attivabili come il nome. */
.mljg-grid .mljg-person .mljg-photo{border-radius:14px}
.mljg-grid .mljg-person .mljg-photo-button{
  display:block;width:100%;margin:0;padding:0;background:transparent;border:0;
  color:inherit;cursor:pointer;font:inherit;text-align:inherit;border-radius:14px;
  -webkit-appearance:none;appearance:none
}
.mljg-grid .mljg-person .mljg-photo-button:focus-visible{outline:3px solid #ff5017;outline-offset:3px}
.mljg-grid .mljg-person .mljg-photo-button:hover .mljg-photo{filter:brightness(.96)}
.mljg-grid .mljg-person .mljg-photo-button .mljg-photo{transition:filter .18s ease}
.mljg-grid .mljg-modal[open]{border-radius:18px}
.mljg-grid .mljg-modal-photo{border-radius:14px}
@media(prefers-reduced-motion:reduce){.mljg-grid .mljg-person .mljg-photo-button .mljg-photo{transition:none}}
