.unit-gallery-grid.swm-gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));height:560px;gap:12px;max-width:1240px;margin:auto}.swm-gallery .swm-photo-tile{position:relative;overflow:hidden;padding:0;border:0;cursor:pointer;min-width:0;min-height:0;background:#d7ddcf}.swm-gallery .swm-photo-tile:first-child{grid-row:span 2}.swm-gallery .swm-photo-tile img,.swm-gallery .swm-photo-tile video{display:block;width:100%;height:100%;object-fit:cover}.swm-gallery[data-count="1"]{grid-template-columns:1fr}.swm-gallery[data-count="2"]{grid-template-columns:1fr 1fr}.swm-gallery[data-count="2"] .swm-photo-tile{grid-row:span 2}.swm-gallery[data-count="3"]{grid-template-columns:1fr 1fr}.swm-gallery[data-count="4"]{grid-template-columns:2fr 1fr 1fr}.swm-gallery[data-count="4"] .swm-photo-tile:last-child{grid-column:2 / 4}.swm-all-photos{position:absolute;right:16px;bottom:16px;background:#fff;color:#253b2b;border-radius:7px;padding:12px 18px;font:600 15px/1.3 system-ui;box-shadow:0 2px 12px #0003}.swm-photo-tile:focus-visible{outline:3px solid #b38d46;outline-offset:3px}.swm-photo-viewer{inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:65px 70px 70px;border:0;background:#142019;color:white;box-sizing:border-box}.swm-photo-viewer::backdrop{background:#142019}.swm-viewer-stage{height:100%;display:flex;align-items:center;justify-content:center}.swm-viewer-stage img,.swm-viewer-stage video{width:100%;height:100%;object-fit:contain}.swm-photo-viewer button{position:absolute;border:0;border-radius:50%;background:#ffffff20;color:white;width:44px;height:44px;font:30px/1 system-ui;cursor:pointer}.swm-viewer-close{right:18px;top:12px}.swm-viewer-previous{left:12px;top:48%}.swm-viewer-next{right:12px;top:48%}.swm-viewer-caption{position:absolute;bottom:12px;left:65px;right:65px;text-align:center;font:15px/1.5 system-ui;margin:0}.swm-viewer-open{overflow:hidden}.swm-photo-viewer button:focus-visible{outline:3px solid white}.swm-photo-viewer [hidden]{display:none!important}@media(max-width:800px){.unit-gallery-grid.swm-gallery{height:420px;gap:8px;grid-template-columns:1fr 1fr;grid-template-rows:2fr 1fr 1fr}.swm-gallery .swm-photo-tile:first-child{grid-row:auto;grid-column:1 / 3}.swm-gallery[data-count="4"] .swm-photo-tile:last-child{grid-column:auto}.swm-gallery[data-count="1"],.swm-gallery[data-count="2"]{grid-template-columns:1fr;grid-template-rows:repeat(2,1fr)}.swm-gallery[data-count="1"] .swm-photo-tile{grid-column:auto;grid-row:1 / 3}.swm-gallery[data-count="2"] .swm-photo-tile{grid-column:auto;grid-row:auto}.swm-gallery[data-count="3"]{grid-template-rows:2fr 1fr}.swm-all-photos{right:8px;bottom:8px;font-size:12px;padding:9px 11px}.swm-photo-viewer{padding:60px 40px 90px}.swm-viewer-caption{left:20px;right:20px;bottom:22px;font-size:13px}.swm-photo-viewer button{width:34px;height:34px}.swm-viewer-previous{left:3px}.swm-viewer-next{right:3px}}

/* SWM fitted gallery photos */
.swm-gallery .swm-photo-tile.has-fitted-photo { background: transparent; }
.swm-gallery .swm-photo-tile > img.is-fitted-photo {
  object-fit: contain;
  transform: none;
}

/* Fill the four gallery previews while preserving the saved photo for the viewer. */
.swm-gallery .swm-photo-tile:not(:first-child) > img.is-fitted-photo { object-fit: cover; }
