/* themerkgroup.com static restore — replaces Squarespace runtime behaviour (no external requests) */
img.restore-ph{background:#d6d6d6;display:block;max-width:100%;height:auto}
/* image blocks with aspect wrappers: fill like Squarespace ImageLoader did */
.image-block-wrapper.has-aspect-ratio{position:relative;overflow:hidden}
.image-block-wrapper.has-aspect-ratio>img,.image-block-wrapper.has-aspect-ratio img.thumb-image{position:absolute;top:0;left:0;width:100%!important;height:100%!important;object-fit:cover}
.image-block-wrapper:not(.has-aspect-ratio) img{width:100%;height:auto}
/* homepage slideshow */
.collection-type-index.design-slideshow .index-gallery .gallery-wrapper{top:0;left:0}
.collection-type-index.design-slideshow .index-gallery .slide-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;float:none;opacity:0;transition:opacity .9s ease-in-out;z-index:1}
.collection-type-index.design-slideshow .index-gallery .slide-wrapper.sqs-active-slide{opacity:1;z-index:2}
.collection-type-index.design-slideshow .index-gallery .slide img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}
.collection-type-index.design-slideshow .index-gallery .slide img.loaded{visibility:visible;opacity:1}
.collection-type-index.design-slideshow .index-gallery .circles .circle{cursor:pointer}
/* summary blocks (autogrid / carousel) without Squarespace JS */
.summary-item-list.sqs-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.summary-item{width:auto!important;margin:0!important;float:none!important;position:static!important}
.summary-thumbnail-container{display:block}
.summary-thumbnail.img-wrapper{position:relative;padding-bottom:75%;overflow:hidden}
.summary-thumbnail.img-wrapper img{position:absolute;top:0;left:0;width:100%!important;height:100%!important;object-fit:cover}
.summary-carousel-pager{display:none!important}
/* gallery blocks */
.sqs-gallery-block-grid .sqs-gallery,.sqs-gallery-design-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.sqs-gallery-block-grid .slide{width:auto!important;float:none!important;position:relative}
.sqs-gallery-block-grid .slide img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.sqs-gallery-block-slideshow .slide{display:none}.sqs-gallery-block-slideshow .slide:first-child{display:block}
/* safety */
html,body{overflow-x:hidden}
img,video,iframe{max-width:100%}
.form-wrapper .form-submit-note{display:block;font-size:12px;opacity:.7;margin-top:8px}
.form-wrapper fieldset legend{display:none}
/* past events were hidden by the demo-template tweak; show them (content exists in the archived page) */
.eventlist--past{display:block!important}
.content-fill{position:relative;overflow:hidden;display:block}
.content-fill>img{position:absolute;top:0;left:0;width:100%!important;height:100%!important;object-fit:cover}
.sqs-block-content,.entry-content,.eventitem-column-content,.summary-excerpt,.eventlist-excerpt{overflow-wrap:break-word;word-wrap:break-word}
.restore-map-card,.restore-video-card{position:relative;background:#e4e4e4;padding-bottom:40%;min-height:180px;overflow:hidden}
.restore-video-card{padding-bottom:56.25%;background:#2b2b2b}
.restore-map-inner,.restore-video-inner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;width:90%}
.restore-map-title{margin:6px 0;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.restore-map-pin{display:inline-block;width:18px;height:18px;border-radius:50% 50% 50% 0;background:#cb9286;transform:rotate(-45deg)}
.restore-video-card a{color:#fff;border-bottom:1px solid rgba(255,255,255,.6)}
.restore-play{display:inline-block;width:0;height:0;border-left:26px solid #fff;border-top:16px solid transparent;border-bottom:16px solid transparent;margin-bottom:8px}
/* gallery block: slider -> horizontal row (as Squarespace slider), stacked -> vertical */
.sqs-gallery-block-slider .sqs-gallery{display:flex;overflow-x:auto;gap:10px;height:420px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.sqs-gallery-block-slider .sqs-gallery>*{flex:0 0 auto;height:100%;width:auto!important;position:relative!important;scroll-snap-align:start}
.sqs-gallery-block-slider .sqs-gallery img{height:100%!important;width:auto!important;max-width:none;position:static!important}
@media (max-width:640px){.sqs-gallery-block-slider .sqs-gallery{height:260px}}
.sqs-gallery-block-stacked .sqs-gallery>*{display:block;margin-bottom:10px;position:relative!important}
.sqs-gallery-block-stacked .sqs-gallery img{width:100%!important;height:auto!important;position:static!important}
.sqs-gallery-block-grid.sqs-gallery-aspect-ratio-square .slide img{aspect-ratio:1/1}
.sqs-gallery-block-grid.sqs-gallery-thumbnails-per-row-4 .sqs-gallery{grid-template-columns:repeat(4,1fr)}
@media (max-width:640px){.sqs-gallery-block-grid.sqs-gallery-thumbnails-per-row-4 .sqs-gallery{grid-template-columns:repeat(2,1fr)}}
