.er-map-photo-gallery{position:fixed;z-index:40;width:min(680px,calc(100vw - 36px));padding:.65rem .7rem .8rem;border:1px solid rgba(242,223,181,.24);border-radius:14px;background:rgba(8,12,18,.96);box-shadow:0 20px 60px rgba(0,0,0,.62);backdrop-filter:blur(12px);color:#edf1f5;pointer-events:auto}
.er-map-photo-gallery[hidden]{display:none}.er-map-photo-gallery__head{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:.4rem;padding:0 .15rem}.er-map-photo-gallery__head strong{display:block;font-size:.78rem;color:#f2dfb5}.er-map-photo-gallery__head small{display:block;margin-top:.1rem;color:#9ca8b7;font-size:.66rem}.er-map-photo-gallery__controls{display:flex;gap:.3rem}.er-map-photo-gallery__controls button{width:34px;height:30px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:#151d28;color:#eef2f5;font-size:1.15rem;line-height:1;cursor:pointer}.er-map-photo-gallery__controls button:hover,.er-map-photo-gallery__controls button:focus-visible{background:#202b39;border-color:rgba(242,223,181,.36);outline:none}
.er-map-photo-gallery__track{display:flex;align-items:center;gap:.55rem;height:178px;overflow-x:auto;overflow-y:hidden;padding:18px calc(50% - 82px);scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-x:contain}.er-map-photo-gallery__item{position:relative;flex:0 0 164px;width:164px;height:126px;padding:0;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:#0b1017;overflow:hidden;scroll-snap-align:center;cursor:pointer;opacity:.58;transform:scale(.82);transition:transform .16s ease,opacity .16s ease,border-color .16s ease,box-shadow .16s ease}.er-map-photo-gallery__item img{display:block;width:100%;height:100%;object-fit:cover}.er-map-photo-gallery__item span{position:absolute;left:.35rem;right:.35rem;bottom:.35rem;padding:.22rem .34rem;border-radius:6px;background:rgba(4,7,11,.78);color:#e4e9ee;font-size:.62rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.er-map-photo-gallery__item.is-active{z-index:2;opacity:1;transform:scale(1.18);border-color:rgba(242,223,181,.65);box-shadow:0 10px 28px rgba(0,0,0,.48)}.er-map-photo-gallery__item:hover{opacity:1}.er-map-photo-gallery__item:focus-visible{outline:2px solid #f2dfb5;outline-offset:2px}.er-map-photo-gallery__empty{flex:1 0 100%;display:grid;place-items:center;min-height:126px;color:#a7b0bc;font-size:.75rem;text-align:center}.er-map-photo-gallery.is-loading .er-map-photo-gallery__controls{opacity:.45;pointer-events:none}
.er-map-current-view:has(img){cursor:pointer}.er-map-current-view:has(img)::after{content:"Apri galleria";position:absolute;right:.5rem;top:.5rem;padding:.25rem .42rem;border-radius:6px;background:rgba(4,7,11,.72);color:#f2dfb5;font-size:.6rem;font-weight:800;opacity:0;transform:translateY(-2px);transition:opacity .14s ease,transform .14s ease;pointer-events:none}.er-map-current-view:has(img):hover::after{opacity:1;transform:translateY(0)}
.er-map-card-gallery-open{overflow:hidden}.er-map-card-gallery-overlay{position:fixed;inset:0;z-index:22000;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.78);backdrop-filter:blur(6px)}.er-map-card-gallery-overlay[hidden]{display:none}.er-map-photo-gallery--card{position:relative;left:auto!important;top:auto!important;z-index:1;width:min(820px,calc(100vw - 36px));padding:.8rem .85rem 1rem}.er-map-card-gallery__close{font-size:1rem!important}.er-map-card-gallery__track{height:250px;padding:28px calc(50% - 100px)}.er-map-card-gallery__item{flex:0 0 200px;width:200px;height:180px;display:grid;grid-template-rows:126px 54px;transform:scale(.82)}.er-map-card-gallery__item img{width:100%;height:126px}.er-map-card-gallery__item .er-map-card-gallery__meta{position:static;left:auto;right:auto;bottom:auto;display:grid;gap:.12rem;align-content:center;height:54px;box-sizing:border-box;padding:.32rem .42rem;border-radius:0;background:#0b1017;color:#e4e9ee;text-align:left;white-space:normal;overflow:hidden;text-overflow:clip}.er-map-card-gallery__meta time{display:block;color:#f2dfb5;font-size:.61rem;font-weight:800;line-height:1.15}.er-map-card-gallery__meta small{display:-webkit-box;overflow:hidden;color:#b8c1cc;font-size:.58rem;font-weight:500;line-height:1.18;-webkit-box-orient:vertical;-webkit-line-clamp:2}.er-map-card-gallery__item.is-active{transform:scale(1.16)}.er-map-photo-lightbox{z-index:30000}
.er-map-gallery-lightbox{position:fixed;inset:0;z-index:50000;display:grid;place-items:center;padding:clamp(18px,3vw,48px);background:rgba(0,0,0,.9);backdrop-filter:blur(8px);cursor:zoom-out}.er-map-gallery-lightbox[hidden]{display:none}.er-map-gallery-lightbox img{display:block;max-width:min(94vw,1500px);max-height:90vh;width:auto;height:auto;object-fit:contain;border-radius:12px;box-shadow:0 24px 90px rgba(0,0,0,.8);cursor:default}.er-map-gallery-lightbox__close{position:fixed;top:clamp(14px,2vw,28px);right:clamp(14px,2vw,28px);z-index:1;width:46px;height:46px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(12,18,26,.92);color:#fff;font-size:1.55rem;line-height:1;cursor:pointer;box-shadow:0 8px 28px rgba(0,0,0,.5)}.er-map-gallery-lightbox__close:hover,.er-map-gallery-lightbox__close:focus-visible{background:#202b39;border-color:rgba(242,223,181,.55);outline:2px solid rgba(242,223,181,.7);outline-offset:2px}
@media(max-width:720px){.er-map-photo-gallery{width:min(94vw,560px);padding:.55rem}.er-map-photo-gallery__track{height:152px;padding:14px calc(50% - 70px)}.er-map-photo-gallery__item{flex-basis:140px;width:140px;height:108px}.er-map-photo-gallery__item.is-active{transform:scale(1.12)}.er-map-card-gallery-overlay{padding:10px}.er-map-photo-gallery--card{width:min(96vw,560px);padding:.65rem}.er-map-card-gallery__track{height:218px;padding:24px calc(50% - 82px)}.er-map-card-gallery__item{flex-basis:164px;width:164px;height:158px;grid-template-rows:108px 50px}.er-map-card-gallery__item img{height:108px}.er-map-card-gallery__item .er-map-card-gallery__meta{height:50px}.er-map-card-gallery__item.is-active{transform:scale(1.12)}.er-map-gallery-lightbox{padding:12px}.er-map-gallery-lightbox img{max-width:96vw;max-height:88vh}.er-map-gallery-lightbox__close{width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){.er-map-photo-gallery__item{transition:none}.er-map-current-view:has(img)::after{transition:none}}
