.elementor-widget-sian-photo-gallery { width: 100%; min-width: 0; }
.sian-photo-gallery { --sian-gallery-row-height: 320px; --sian-gallery-gap: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sian-gallery-gap); position: relative; width: 100%; }
.sian-photo-gallery__item { display: block; position: relative; min-width: 0; aspect-ratio: var(--sian-photo-ratio); overflow: hidden; border-radius: 8px; background: #E7ECE5; cursor: zoom-in; }
.sian-photo-gallery.is-justified { display: block; }
.sian-photo-gallery.is-justified > .sian-photo-gallery__item { position: absolute; aspect-ratio: auto; }
.sian-photo-gallery__item img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; }
.sian-photo-gallery__item.is-open { visibility: hidden; }
.sian-photo-gallery__credit-source { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sian-photo-gallery__item:focus-visible { outline: 3px solid #A44040; outline-offset: 4px; }
.sian-photo-lightbox { --pswp-bg: #161616; --pswp-icon-color: #FFF; --pswp-icon-color-secondary: #A44040; z-index: 100000; }
.sian-photo-lightbox img { border-radius: 0; }
.sian-photo-lightbox .pswp__button { border-radius: 0; background: transparent; box-shadow: none; padding: 0; }
.sian-photo-lightbox .pswp__button:focus-visible { outline: 2px solid #FFF; outline-offset: -4px; }
.sian-photo-lightbox .pswp__sian-credit { position: absolute; bottom: 16px; left: 20px; right: 20px; max-width: 900px; max-height: 60px; margin: 0 auto; overflow-y: auto; color: #FFF; font-family: Helvetica, sans-serif; font-size: 14px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; text-shadow: none; }
@media (max-width: 1024px) {
  .sian-photo-gallery { --sian-gallery-row-height: 280px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sian-photo-gallery { --sian-gallery-row-height: 260px; grid-template-columns: minmax(0, 1fr); }
  .sian-photo-lightbox .pswp__sian-credit { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
