.wp-block-gallery.ht-justified-gallery{display:flex!important;flex-wrap:wrap!important;gap:3px!important;align-items:flex-start!important}
.wp-block-gallery.ht-justified-gallery>figure.wp-block-image{flex:none!important;margin:0!important;max-width:none!important;width:var(--ht-gallery-width,calc(33.33% - 3px))!important;height:auto!important;cursor:zoom-in;overflow:hidden}
.wp-block-gallery.ht-justified-gallery>figure.wp-block-image img{display:block;width:100%!important;height:var(--ht-gallery-height,auto)!important;max-width:100%!important;object-fit:contain!important;margin:0!important}
.ht-justified-gallery>figure.wp-block-image:not(.ht-pointer-focus):focus-visible{outline:3px solid #b58627;outline-offset:2px}
.ht-justified-gallery .lightbox-trigger{display:none!important}
.ht-lightbox[open]{position:fixed;inset:0;display:flex;flex-direction:column;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:12px;box-sizing:border-box;border:0;border-radius:0;background:#080808!important;color:#fff!important;overflow:hidden}
.ht-lightbox::backdrop{background:#080808}
.ht-lightbox-toolbar{display:flex;justify-content:flex-end;gap:12px;flex-shrink:0;padding-bottom:8px}
.ht-lightbox button{font:inherit;color:#fff!important;background:#181818!important;border:1px solid #666;border-radius:4px;cursor:pointer;padding:7px 12px;font-size:15px}
.ht-lightbox button:focus-visible{outline:2px solid white;outline-offset:2px}
.ht-lightbox-stage{position:relative;flex:1;min-height:0;display:flex;justify-content:center;align-items:center;padding-inline:48px;box-sizing:border-box}
.ht-lightbox-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transition:opacity .12s}
.ht-lightbox-image.is-loading{opacity:.25}
.ht-lightbox .ht-lightbox-prev,.ht-lightbox .ht-lightbox-next{position:absolute;top:50%;transform:translateY(-50%);font-size:36px;line-height:1;padding:8px 10px;z-index:1}
.ht-lightbox-prev{left:0}.ht-lightbox-next{right:0}
.ht-lightbox-caption{flex-shrink:0;margin:8px 0 0;text-align:center;font-size:14px;color:#ddd!important}
@media(max-width:600px){.ht-lightbox[open]{padding:8px}.ht-lightbox-stage{padding-inline:30px}.ht-lightbox .ht-lightbox-prev,.ht-lightbox .ht-lightbox-next{font-size:28px;padding:4px 6px}.ht-lightbox button{font-size:13px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.ht-lightbox-image{transition:none}}

.ht-justified-gallery>figure.wp-block-image.ht-pointer-focus:focus{outline:none!important;box-shadow:none!important}

.wp-block-gallery.ht-justified-gallery.ht-gallery-single{justify-content:center!important}
.wp-block-gallery.ht-justified-gallery.ht-gallery-single>figure.wp-block-image{max-width:100%!important}
.wp-block-gallery.ht-justified-gallery.ht-gallery-single>figure.wp-block-image img{width:auto!important;height:auto!important;max-width:100%!important;margin-inline:auto!important}
.wp-block-gallery.ht-justified-gallery.ht-gallery-single>figure.ht-gallery-portrait{width:fit-content!important}
.wp-block-gallery.ht-justified-gallery.ht-gallery-single>figure.ht-gallery-portrait img{max-height:max(600px,85vh)!important}
