/* Festival shared gallery component. Preserve family classes and source rule values. */
.ssm-festival-gallery{position:relative;isolation:isolate;padding-block:var(--ssm-section-space)}
.ssm-festival-gallery::before,.ssm-festival-gallery::after{position:absolute;z-index:-1;width:clamp(160px,20vw,300px);height:clamp(160px,20vw,300px);background-position:center;background-size:contain;background-repeat:no-repeat;content:"";opacity:.075;pointer-events:none}
.ssm-festival-gallery::before{background-image:url(images/strawberry-round.svg)}
.ssm-festival-gallery::after{background-image:url(images/strawberry-pair.svg)}
.ssm-festival-gallery::before{top:7%;left:-9%;transform:rotate(-14deg)}
.ssm-festival-gallery::after{right:-10%;bottom:12%;transform:rotate(21deg)}
.ssm-festival-gallery__masonry{columns:3;column-gap:var(--ssm-grid-gap)}
.ssm-festival-gallery__masonry.is-balanced{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ssm-grid-gap);columns:auto}
.ssm-festival-gallery__column{display:flex;min-width:0;flex-direction:column;gap:var(--ssm-grid-gap)}
.ssm-festival-gallery__item{display:block;width:100%;margin:0 0 var(--ssm-grid-gap);padding:0;border:0;background:transparent;break-inside:avoid;cursor:zoom-in}
.ssm-festival-gallery__column .ssm-festival-gallery__item{margin:0}
.ssm-festival-gallery__item img{display:block;width:100%;height:auto}
.ssm-festival-gallery__item:hover img{filter:brightness(.87)}
.ssm-festival-gallery__item:focus-visible{outline-color:var(--ssm-red)}
.ssm-festival-gallery__dialog:not([open]){display:none}
.ssm-festival-gallery__dialog[open]{inset:0;width:min(1100px,calc(100vw - 2rem));height:min(90dvh,950px);max-width:none;max-height:none;margin:auto;padding:0;border:0;background:var(--ssm-ink);color:#fff}
.ssm-festival-gallery__dialog::backdrop{background:#071820d9}
.ssm-festival-gallery__dialog-head,.ssm-festival-gallery__dialog-controls{display:flex;align-items:center;justify-content:space-between;padding:.8rem 1rem}
.ssm-festival-gallery__dialog-head button,.ssm-festival-gallery__dialog-controls button{padding:.35rem .6rem;border:1px solid #fff;background:transparent;color:#fff;cursor:pointer}
.ssm-festival-gallery__dialog-head button{width:2.5rem;height:2.5rem;font-size:1.8rem;line-height:1}
.ssm-festival-gallery__dialog-head button:hover,.ssm-festival-gallery__dialog-controls button:hover{background:#fff;color:var(--ssm-ink)}
.ssm-festival-gallery__dialog :is(button):focus-visible{outline-color:#fff}
.ssm-festival-gallery__dialog figure{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;height:calc(100% - 7.5rem);margin:0;padding:0 1rem}
.ssm-festival-gallery__dialog figure img{max-width:100%;max-height:calc(100% - 3.2rem);object-fit:contain}
.ssm-festival-gallery__dialog figcaption{max-height:3.2rem;overflow:auto;text-align:center;font-size:.95rem;line-height:1.4}
@media(max-width:900px){
.ssm-festival-gallery__masonry{columns:2}
.ssm-festival-gallery__masonry.is-balanced{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
.ssm-festival-gallery__masonry{columns:2;column-gap:.5rem}
.ssm-festival-gallery__item{margin-bottom:.5rem}
.ssm-festival-gallery__dialog[open]{width:calc(100vw - .7rem);height:94dvh}
}
