/* Archivio Fotografico 1.7 — layout compatto, isolato dagli stili Divi */
.af-gallery{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
 width:100%;max-width:1100px;margin:var(--af-outer,0px) auto!important;
 padding:0!important;border:0!important;gap:0!important;
 font-family:var(--af-font-family,inherit);font-size:var(--af-font-size,15px);
 color:var(--af-text-color,#333);line-height:1.3!important;
}
.af-gallery *{box-sizing:border-box}
.af-gallery > *{flex-shrink:0;min-height:0}
.af-gallery .af-filters{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 flex-wrap:wrap;column-gap:16px;row-gap:5px;
 margin:0!important;padding:0!important;line-height:1.3!important;
}
.af-gallery .af-filters label{
 display:flex;align-items:center;gap:6px;margin:0!important;padding:0!important;
 font-size:var(--af-label-size,15px);font-weight:600;line-height:1.3!important;
}
.af-gallery .af-filters select{
 width:auto;min-width:130px;max-width:100%;height:auto;
 padding:4px 8px!important;margin:0!important;border:1px solid #aaa;
 border-radius:5px;background:#fff;color:#222;font:inherit;line-height:1.3;
}
.af-gallery .af-sharing{
 display:flex!important;align-items:center;gap:8px;flex-wrap:wrap;
 margin:var(--af-filter-share,8px) 0 0!important;padding:0!important;
 min-height:0!important;line-height:1.3!important;
}
.af-gallery .af-share{
 margin:0!important;border:1px solid #888;border-radius:5px;
 background:var(--af-button-bg,#fff);color:var(--af-button-text,#222);
 font:inherit;line-height:1.3!important;padding:5px 10px!important;cursor:pointer;
}
.af-gallery .af-share-feedback:empty{display:none!important}
.af-gallery .af-status{
 display:block;margin:0!important;padding:0!important;line-height:1.3!important;
 height:auto;min-height:0!important;
}
.af-gallery .af-status:empty{display:none!important}
.af-gallery .af-stage{
 display:flex!important;align-items:center;gap:6px;
 background:var(--af-gallery-bg,#171717);border-radius:7px;
 padding:6px!important;margin:var(--af-share-stage,8px) 0 0!important;
 min-height:0!important;
}
.af-gallery .af-stage[hidden]{display:none!important}
.af-gallery .af-full{
 flex:1;min-width:0;display:flex;justify-content:center;align-items:center;
 margin:0!important;padding:0!important;text-decoration:none;
}
.af-gallery .af-image{
 display:block!important;width:100%!important;max-width:100%!important;
 height:var(--af-stage-height,440px)!important;max-height:75vh!important;
 object-fit:contain!important;margin:0!important;padding:0!important;border:0!important;
}
.af-gallery .af-prev,.af-gallery .af-next{
 flex-shrink:0;margin:0!important;border:0;border-radius:5px;
 background:var(--af-button-bg,#fff);color:var(--af-button-text,#222);
 font-size:24px;line-height:1!important;padding:8px 11px!important;cursor:pointer;
}
.af-gallery .af-counter{
 display:block;text-align:center;margin:var(--af-stage-counter,5px) 0 0!important;
 padding:0!important;line-height:1.3!important;font-size:var(--af-counter-size,14px);
}
.af-gallery .af-counter:empty{display:none!important}
.af-gallery .af-thumbs{
 display:flex!important;gap:5px;overflow-x:auto;
 margin:var(--af-counter-thumbs,6px) 0 0!important;padding:0!important;
 min-height:0!important;
}
.af-gallery .af-thumbs:empty{display:none!important}
.af-gallery .af-thumbs button{
 flex:0 0 calc(var(--af-thumb-height,64px) * 1.25);
 width:calc(var(--af-thumb-height,64px) * 1.25);
 height:var(--af-thumb-height,64px);
 margin:0!important;padding:2px!important;
 border:2px solid transparent;background:transparent;cursor:pointer;
}
.af-gallery .af-thumbs button[aria-current=true]{border-color:var(--af-text-color,#333)}
.af-gallery .af-thumbs img{
 display:block;width:100%;height:100%;object-fit:cover;margin:0!important;
}
@media(max-width:600px){
 .af-gallery .af-stage{gap:3px;padding:4px!important}
 .af-gallery .af-prev,.af-gallery .af-next{font-size:18px;padding:6px!important}
 .af-gallery .af-image{max-height:60vh!important}
}
