/* --- Griglia --- */
.awgl{--awgl-gap:clamp(10px,1.3vw,20px);columns:3;column-gap:var(--awgl-gap);padding:0 clamp(16px,2vw,28px)}
.awgl--2{columns:2}
.awgl--4{columns:4}
.awgl-item{break-inside:avoid;margin:0 0 var(--awgl-gap);border-radius:18px;overflow:hidden;background:#f2f2f2;transform:translateZ(0)}
.awgl-link{position:relative;display:block;cursor:zoom-in;border-radius:inherit}
.awgl-link img{display:block;width:100%;height:auto;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.awgl-link:focus-visible{outline:2px solid #121212;outline-offset:-4px}
.awgl.is-ready .awgl-item{opacity:0;transform:translateY(22px)}
.awgl.is-ready .awgl-item.is-in{opacity:1;transform:none;transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover){
  .awgl-link::after{content:"";position:absolute;right:14px;bottom:14px;width:40px;height:40px;border-radius:50%;opacity:0;transform:scale(.8);
    transition:opacity .25s ease,transform .3s cubic-bezier(.2,.7,.2,1);
    background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='1.4'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/20px no-repeat;
    box-shadow:0 2px 14px rgba(0,0,0,.14)}
  .awgl-link:hover img{transform:scale(1.025)}
  .awgl-link:hover::after{opacity:1;transform:none}
}
@media (max-width:991px){.awgl,.awgl--4{columns:2}}
@media (max-width:767px){.awgl-item{border-radius:12px}}

/* --- Modale --- */
html.awlb-open{overflow:hidden}
.awlb{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;background:#090909;color:#EAEAEA;
  font-family:"Graphik",Helvetica,Arial,sans-serif;opacity:0;transition:opacity .28s ease;overscroll-behavior:contain;outline:0}
.awlb.is-on{opacity:1}
.awlb button{appearance:none;background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.awlb-top{flex:none;display:flex;align-items:center;gap:18px;padding:18px clamp(16px,2.4vw,32px)}
.awlb-count{flex:none;font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:11px;letter-spacing:.14em;font-variant-numeric:tabular-nums;opacity:.72}
.awlb-cap{flex:1;min-width:0;font-size:14px;line-height:1.3;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.awlb .awlb-btn{flex:none;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;border:1px solid rgba(234,234,234,.26);
  transition:background .2s ease,color .2s ease,border-color .2s ease,opacity .2s ease}
.awlb-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3}
.awlb .awlb-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.awlb-x{margin-left:auto}
.awlb-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:0 clamp(16px,6.5vw,104px);touch-action:pinch-zoom;user-select:none;-webkit-user-select:none}
.awlb-fig{position:relative;width:100%;height:100%;margin:0}
.awlb-img{position:absolute;inset:0;margin:auto;max-width:100%;max-height:100%;width:auto;height:auto;border-radius:18px;
  opacity:0;transition:opacity .32s ease,transform .45s cubic-bezier(.2,.7,.2,1);will-change:transform,opacity;-webkit-user-drag:none}
.awlb-img.is-on{opacity:1;transform:none}
.awlb-img.da-dx{transform:translateX(26px)}
.awlb-img.da-sx{transform:translateX(-26px)}
.awlb-load{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px;border-radius:50%;border:1px solid rgba(234,234,234,.2);border-top-color:#EAEAEA;animation:awlbGira .8s linear infinite;opacity:0;transition:opacity .2s ease .15s;pointer-events:none}
.awlb.is-load .awlb-load{opacity:1}
@keyframes awlbGira{to{transform:rotate(360deg)}}
.awlb-prev,.awlb-next{position:absolute;top:50%;margin-top:-24px;z-index:2}
.awlb-prev{left:clamp(16px,2.4vw,32px)}
.awlb-next{right:clamp(16px,2.4vw,32px)}
.awlb .awlb-btn[disabled]{opacity:.25;cursor:default}
.awlb-thumbs{flex:none;display:flex;gap:8px;justify-content:safe center;padding:16px clamp(16px,2.4vw,32px) max(18px,env(safe-area-inset-bottom));overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.awlb-thumbs::-webkit-scrollbar{display:none}
.awlb .awlb-t{flex:none;width:56px;height:56px;border-radius:10px;overflow:hidden;opacity:.42;transition:opacity .2s ease,box-shadow .2s ease;background:#1c1c1c}
.awlb-t img{display:block;width:100%;height:100%;object-fit:cover;-webkit-user-drag:none}
.awlb .awlb-t.is-on{opacity:1;box-shadow:0 0 0 1px #090909,0 0 0 2px #EAEAEA}
.awlb .awlb-t:focus-visible{opacity:1;outline:2px solid #fff;outline-offset:2px}
@media (hover:hover){
  .awlb .awlb-btn:not([disabled]):hover{background:#EAEAEA;color:#121212;border-color:#EAEAEA}
  .awlb .awlb-t:hover{opacity:1}
}
@media (hover:none){
  .awlb-stage{padding:0 12px}
  .awlb-prev,.awlb-next{top:auto;bottom:10px;margin:0;background:rgba(9,9,9,.6)}
  .awlb-prev{left:22px}
  .awlb-next{right:22px}
}
@media (max-height:560px){.awlb-thumbs{display:none}.awlb-top{padding-block:8px}.awlb-stage{padding-bottom:12px}}
@media (prefers-reduced-motion:reduce){
  .awgl.is-ready .awgl-item{opacity:1;transform:none}
  .awlb,.awlb-img{transition:none}
  .awlb-img.da-dx,.awlb-img.da-sx{transform:none}
}
