.hdsg{--hdsg-current-cols:var(--hdsg-cols);--hdsg-current-gap:var(--hdsg-gap);--hdsg-current-height:var(--hdsg-height);display:grid;grid-template-columns:repeat(var(--hdsg-current-cols),minmax(0,1fr));gap:var(--hdsg-current-gap);width:100%}.hdsg-item{position:relative;min-width:0;min-height:0;margin:0;overflow:hidden;border-radius:var(--hdsg-radius)}.hdsg-link{display:block;position:relative;width:100%;height:100%;overflow:hidden;cursor:zoom-in}.hdsg-img{display:block!important;width:100%!important;height:var(--hdsg-current-height)!important;max-width:none!important;object-fit:cover;transition:transform .3s ease}.hdsg-link:hover .hdsg-img{transform:scale(1.045)}.hdsg-shade{position:absolute;inset:0;background:var(--hdsg-overlay);opacity:0;transition:opacity .25s;display:grid;place-items:center}.hdsg-has-overlay:hover .hdsg-shade,.hdsg-has-overlay:focus-within .hdsg-shade{opacity:.55}.hdsg-magnify{font-size:38px;color:#fff;font-weight:300}.hdsg-caption{position:relative;padding:8px 3px;font-size:13px;line-height:1.4}.hdsg--masonry{display:block;columns:var(--hdsg-current-cols);column-gap:var(--hdsg-current-gap)}.hdsg--masonry .hdsg-item{display:block;break-inside:avoid;margin:0 0 var(--hdsg-current-gap)}.hdsg--masonry .hdsg-img{height:auto!important}.hdsg--justified{display:flex;flex-wrap:wrap;gap:var(--hdsg-current-gap)}.hdsg--justified .hdsg-item{flex:1 1 calc((100% - (var(--hdsg-current-cols) - 1)*var(--hdsg-current-gap))/var(--hdsg-current-cols));min-width:min(100%,160px)}.hdsg--justified .hdsg-img{height:var(--hdsg-current-height)!important}.hdsg--hive .hdsg-item{clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);border-radius:0}.hdsg--rhomb .hdsg-item{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);border-radius:0}.hdsg-overlay-screen{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:55px 65px}.hdsg-overlay-screen[hidden]{display:none!important}.hdsg-overlay-screen img{max-height:calc(100vh - 110px);max-width:100%;height:auto;width:auto;object-fit:contain}.hdsg-overlay-screen button{border:0!important;background:transparent!important;color:#fff!important;cursor:pointer;position:absolute;font-size:36px;padding:10px;line-height:1}.hdsg-lb-close{top:10px;right:20px}.hdsg-lb-prev{left:12px;top:50%}.hdsg-lb-next{right:12px;top:50%}.hdsg-lb-counter{position:absolute;bottom:14px;color:#fff;font-size:13px;left:50%;transform:translateX(-50%)}@media(max-width:1024px){.hdsg{--hdsg-current-cols:var(--hdsg-cols-t);--hdsg-current-gap:var(--hdsg-gap-t);--hdsg-current-height:var(--hdsg-height-t)}}@media(max-width:767px){.hdsg{--hdsg-current-cols:var(--hdsg-cols-m);--hdsg-current-gap:var(--hdsg-gap-m);--hdsg-current-height:var(--hdsg-height-m)}.hdsg-overlay-screen{padding:50px 35px}.hdsg-lb-prev{left:0}.hdsg-lb-next{right:0}}

/* Gallery Semplice: expanded gallery after the configured number of photos. */
.hdsg-widget{width:100%;min-width:0}
.hdsg-popup-trigger{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;max-width:100%;margin-top:14px;padding:11px 17px;border:1px solid #0f766e;border-radius:12px;background:#0f766e;color:#fff;font:inherit;font-size:14px;font-weight:800;line-height:1.4;cursor:pointer;transition:background .2s ease,transform .2s ease}
.hdsg-popup-trigger:hover,.hdsg-popup-trigger:focus-visible{background:#115e59;color:#fff;transform:translateY(-1px)}
.hdsg-popup-total{font-size:12px;font-weight:650;opacity:.85}
.hdsg-popup{position:fixed;inset:0;z-index:2147482000;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(2,6,23,.82);box-sizing:border-box}
.hdsg-popup.is-open{display:flex}
.hdsg-popup-dialog{box-sizing:border-box;width:min(1080px,100%);max-height:min(90dvh,920px);overflow:auto;overscroll-behavior:contain;background:#fff;border-radius:20px;padding:22px;box-shadow:0 24px 75px rgba(0,0,0,.35);color:#0f172a}
.hdsg-popup-heading{position:sticky;top:-22px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:5px 0 17px;margin-bottom:15px;border-bottom:1px solid #e2e8f0;background:#fff}
.hdsg-popup-heading h2{margin:0 0 3px;color:#0f172a;font-size:23px;font-weight:850;line-height:1.2}
.hdsg-popup-heading span{color:#64748b;font-size:13px}
.hdsg-popup-close{width:42px;height:42px;min-width:42px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#f1f5f9;color:#0f172a;font-size:30px;cursor:pointer}
.hdsg-popup-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr));gap:12px}
.hdsg-popup-thumb{display:block;width:100%;aspect-ratio:4/3;padding:0;border:0;border-radius:12px;background:#f1f5f9;overflow:hidden;cursor:zoom-in}
.hdsg-popup-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.hdsg-popup-thumb:hover img{transform:scale(1.06)}
.hdsg-popup-thumb:focus-visible,.hdsg-popup-close:focus-visible{outline:3px solid #0f766e;outline-offset:3px}
html.hdsg-popup-open{overflow:hidden}
@media(max-width:600px){.hdsg-popup{padding:9px}.hdsg-popup-dialog{padding:14px;border-radius:14px;max-height:94dvh}.hdsg-popup-heading{top:-14px}.hdsg-popup-heading h2{font-size:19px}.hdsg-popup-thumbs{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}}
