.ut-cornerstone-gallery{gap:var(--utility-gallery-gap,1em)}
.ut-cornerstone-gallery[data-layout="grid"],.ut-cornerstone-gallery:not([data-layout]){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--utility-gallery-min-width,240px)),1fr));align-items:start}
.ut-cornerstone-gallery[data-layout="carousel"]{display:block;position:relative;overflow:visible}
.ut-cornerstone-gallery-track{display:grid;gap:var(--utility-gallery-gap,1em);min-width:0;grid-auto-flow:column;grid-auto-columns:min(86%,var(--utility-gallery-min-width,240px));grid-template-columns:none;align-items:start;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth}
.ut-cornerstone-gallery-track>.ut-cornerstone-gallery-image{scroll-snap-align:start}
.ut-cornerstone-gallery[data-layout="featured"]:not(.is-featured){display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));align-items:start}
.ut-cornerstone-gallery[data-layout="featured"]:not(.is-featured)>.ut-cornerstone-gallery-image:first-child{grid-column:1/-1}
.ut-cornerstone-gallery.is-featured{display:flex;flex-direction:column;align-items:stretch}
.ut-cornerstone-gallery-stage{display:block;width:100%;margin:0;padding:0;border:0;overflow:hidden;border-radius:var(--utility-gallery-radius,8px);background:rgba(0,0,0,.04);line-height:0;cursor:zoom-in}
.ut-cornerstone-gallery-stage img{display:block;width:100%;height:auto;object-fit:fill;object-position:center;transition:opacity .18s ease}
.ut-cornerstone-gallery-reel{position:relative;min-width:0}
.ut-cornerstone-gallery-film{display:flex;align-items:stretch;gap:var(--utility-gallery-gap,1em);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth}
.ut-cornerstone-gallery-film>.ut-cornerstone-gallery-image{flex:1 0 min(100%,var(--utility-gallery-min-width,240px));scroll-snap-align:center;position:relative;opacity:.58;transition:opacity .2s ease}
.ut-cornerstone-gallery-film>.ut-cornerstone-gallery-image[aria-current="true"],.ut-cornerstone-gallery-film>.ut-cornerstone-gallery-image:hover,.ut-cornerstone-gallery-film>.ut-cornerstone-gallery-image:focus-visible{opacity:1}
.ut-cornerstone-gallery-scroll{position:absolute;z-index:2;top:50%;display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;background:var(--utility-gallery-nav-bg,rgba(17,17,17,.72));color:var(--utility-gallery-nav-icon,#fff);font:300 24px/1 inherit;transform:translateY(-50%);cursor:pointer}
.ut-cornerstone-gallery-scroll.is-previous{left:8px}
.ut-cornerstone-gallery-scroll.is-next{right:8px}
.ut-cornerstone-gallery-scroll:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.ut-cornerstone-gallery-scroll[hidden]{display:none}
.ut-cornerstone-gallery.is-featured .ut-cornerstone-gallery-film [aria-current="true"]{position:relative}
.ut-cornerstone-gallery.is-featured .ut-cornerstone-gallery-film [aria-current="true"]::after{content:"";position:absolute;inset:0;border:3px solid #fff;border-radius:inherit;box-shadow:inset 0 0 0 2px rgba(0,0,0,.7);pointer-events:none}
.ut-cornerstone-gallery[data-shape="uniform"]{align-items:stretch}
.ut-cornerstone-gallery-image{display:block;min-width:0;overflow:hidden;line-height:0;border-radius:var(--utility-gallery-radius,8px);outline-offset:4px;background:rgba(0,0,0,.04);cursor:zoom-in}
.ut-cornerstone-gallery-image img{display:block;width:100%;min-width:0;max-width:100%;height:auto;aspect-ratio:var(--utility-gallery-image-ratio,auto);object-fit:fill;object-position:center;contain-intrinsic-size:none;border-radius:inherit;transition:opacity .18s ease}
.ut-cornerstone-gallery-image:hover img,.ut-cornerstone-gallery-stage:hover img{opacity:.7}
.ut-cornerstone-gallery-film .ut-cornerstone-gallery-image{cursor:pointer}
.ut-cornerstone-gallery-film .ut-cornerstone-gallery-image:hover img{opacity:1}
.ut-cornerstone-gallery-image:focus-visible{outline:2px solid currentColor}
.ut-cornerstone-gallery-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:72px 80px;border:0;background:var(--utility-gallery-overlay,rgba(15,15,15,.96));color:var(--utility-gallery-color,#fff);overflow:hidden}
.ut-cornerstone-gallery-dialog[open]{display:grid;place-items:center;animation:utility-gallery-arrive .2s ease-out}
.ut-cornerstone-gallery-dialog::backdrop{background:transparent}
.ut-cornerstone-gallery-dialog figure{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;margin:0;pointer-events:none}
.ut-cornerstone-gallery-full{display:block;max-width:100%;max-height:calc(100% - 64px);width:auto;height:auto;object-fit:contain;object-position:center;border-radius:var(--utility-gallery-radius,8px);pointer-events:auto;transition:opacity .18s ease}
.ut-cornerstone-gallery-full.is-loading{opacity:0}
.ut-cornerstone-gallery-caption{max-width:70ch;margin-top:16px;font:400 14px/1.5 inherit;text-align:center;white-space:pre-wrap;overflow:auto;max-height:20vh;pointer-events:auto}
.ut-cornerstone-gallery-dialog button{position:absolute;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;margin:0;padding:0;border:1px solid currentColor;border-color:color-mix(in srgb,currentColor 16%,transparent);border-radius:50%;background:var(--utility-gallery-control-bg,rgba(255,255,255,.1));color:inherit;font:300 30px/1 inherit;cursor:pointer;transition:background-color .18s ease,opacity .18s ease}
.ut-cornerstone-gallery-dialog button:hover{background:color-mix(in srgb,var(--utility-gallery-color,#fff) 22%,transparent)}
.ut-cornerstone-gallery-dialog button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.ut-cornerstone-gallery-dialog button:disabled{opacity:.3;cursor:default}
.ut-cornerstone-gallery-close{top:20px;right:20px}
.ut-cornerstone-gallery-previous{top:calc(50% - 22px);left:20px}
.ut-cornerstone-gallery-next{top:calc(50% - 22px);right:20px}
.ut-cornerstone-gallery-count{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);font:400 12px/1.5 inherit;opacity:.7}
.ut-cornerstone-gallery-dialog [hidden]{display:none!important}
@keyframes utility-gallery-arrive{from{opacity:0}to{opacity:1}}
@media(max-width:600px){.ut-cornerstone-gallery-dialog{padding:72px 16px 88px}.ut-cornerstone-gallery-previous,.ut-cornerstone-gallery-next{top:auto;bottom:20px}.ut-cornerstone-gallery-full{max-height:calc(100% - 64px)}}
@media(prefers-reduced-motion:reduce){.ut-cornerstone-gallery-dialog[open]{animation:none}.ut-cornerstone-gallery-dialog button,.ut-cornerstone-gallery-full,.ut-cornerstone-gallery-image img,.ut-cornerstone-gallery-stage img{transition:none}.ut-cornerstone-gallery-track,.ut-cornerstone-gallery-film{scroll-behavior:auto}}

.ut-cornerstone-gallery[data-layout="grid"][data-last-row="grow"],.ut-cornerstone-gallery[data-layout="grid"][data-last-row="center"]{display:flex;flex-wrap:wrap;justify-content:center}
.ut-cornerstone-gallery[data-layout="grid"][data-last-row="grow"]>.ut-cornerstone-gallery-image,.ut-cornerstone-gallery[data-layout="grid"][data-last-row="center"]>.ut-cornerstone-gallery-image{flex:1 1 min(100%,var(--utility-gallery-min-width,240px));max-width:100%}
.ut-cornerstone-gallery[data-layout="grid"][data-last-row="center"]>.ut-cornerstone-gallery-image{flex-grow:0}
.ut-cornerstone-gallery[data-lightbox="0"]>.ut-cornerstone-gallery-image,.ut-cornerstone-gallery[data-lightbox="0"] .ut-cornerstone-gallery-stage{cursor:default}
.ut-cornerstone-gallery[data-lightbox="0"]>.ut-cornerstone-gallery-image:hover img,.ut-cornerstone-gallery[data-lightbox="0"] .ut-cornerstone-gallery-stage:hover img{opacity:1}

@media(max-width:600px){.ut-cornerstone-gallery-film{box-sizing:border-box;padding-inline:16%;scroll-padding-inline:16%}.ut-cornerstone-gallery-film>.ut-cornerstone-gallery-image{flex:0 0 min(100%,var(--utility-gallery-min-width,240px));max-width:100%}.ut-cornerstone-gallery-film>.ut-cornerstone-gallery-image:only-child{flex-grow:1}.ut-cornerstone-gallery-film>.ut-cornerstone-gallery-image img{height:100%;max-height:32vh;object-fit:cover}.ut-cornerstone-gallery-scroll{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){.ut-cornerstone-gallery-film>.ut-cornerstone-gallery-image{transition:none}}

.ut-cornerstone-gallery[data-layout="grid"][data-sizing="columns"]{grid-template-columns:repeat(var(--utility-gallery-columns,3),minmax(0,1fr))}
.ut-cornerstone-gallery[data-layout="grid"][data-sizing="columns"][data-last-row="grow"]>.ut-cornerstone-gallery-image,.ut-cornerstone-gallery[data-layout="grid"][data-sizing="columns"][data-last-row="center"]>.ut-cornerstone-gallery-image{flex-basis:max(0px,calc((100% - (var(--utility-gallery-columns,3) - 1)*var(--utility-gallery-gap,1em))/var(--utility-gallery-columns,3)))}

.ut-cornerstone-gallery-stage{touch-action:pan-y pinch-zoom}
.ut-cornerstone-gallery-film{touch-action:pan-x pan-y pinch-zoom;-webkit-overflow-scrolling:touch}

.ut-cornerstone-gallery[data-layout="carousel"][data-sizing="columns"]>.ut-cornerstone-gallery-track{grid-auto-columns:max(0px,calc((100% - (var(--utility-gallery-columns,3) - 1)*var(--utility-gallery-gap,1em))/var(--utility-gallery-columns,3)))}
.ut-cornerstone-gallery[data-layout="featured"][data-sizing="columns"] .ut-cornerstone-gallery-film{padding-inline:0;scroll-padding-inline:0}
.ut-cornerstone-gallery[data-layout="featured"][data-sizing="columns"] .ut-cornerstone-gallery-film>.ut-cornerstone-gallery-image{flex:0 0 max(0px,calc((100% - (var(--utility-gallery-columns,3) - 1)*var(--utility-gallery-gap,1em))/var(--utility-gallery-columns,3)))}

.ut-cornerstone-gallery-scroll:hover,.ut-cornerstone-gallery-scroll:focus-visible{background:var(--utility-gallery-nav-hover-bg,rgba(17,17,17,.9));color:var(--utility-gallery-nav-hover-icon,#fff)}

.ut-cornerstone-gallery-track{overflow-anchor:none}

.ut-cornerstone-gallery-track{position:relative}
