.flomax-product-gallery { width:100%; max-width: 620px; }
.sub-section-separator .flomax-gallery-sticky-target { position: static; }
/* The product template switches to stacked columns at 991px. */
@media (min-width: 992px) {
	.sub-section-separator > .flomax-gallery-column { align-self: stretch; }
	.sub-section-separator .flomax-gallery-sticky-target.is-gallery-sticky {
		position: sticky;
		top: var(--flomax-gallery-sticky-top, 120px);
	}
}
/* Keep the frame independent of the selected image's intrinsic dimensions. */
.flomax-product-gallery__main { display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:100%; height:420px; padding:20px; border:1px solid #d5d5d5; background:#fff; cursor:zoom-in; }
.flomax-product-gallery__main img { display:block; width:100%; height:100%; min-width:0; max-width:100%; max-height:100%; object-fit:contain; object-position:center; }
.flomax-product-gallery__thumbs { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:10px; margin-top:10px; }
.flomax-product-gallery__thumb { display:flex; align-items:center; justify-content:center; min-height:90px; padding:7px; border:1px solid #d5d5d5; background:#fff; cursor:pointer; }
.flomax-product-gallery__thumb:hover, .flomax-product-gallery__thumb.is-active { border-color:#111; box-shadow:inset 0 0 0 1px #111; }
.flomax-product-gallery__thumb img { max-width:100%; max-height:76px; width:auto; height:auto; object-fit:contain; }
.flomax-gallery-lightbox { position:fixed; z-index:999999; inset:0; display:flex; align-items:center; justify-content:center; padding:30px; background:rgba(0,0,0,.88); }
.flomax-gallery-lightbox[hidden] { display:none; }
.flomax-gallery-lightbox__image { max-width:94vw; max-height:90vh; object-fit:contain; }
.flomax-gallery-lightbox__close { position:absolute; top:14px; right:18px; border:0; background:transparent; color:#fff; font-size:40px; line-height:1; cursor:pointer; }
@media (max-width: 600px) { .flomax-product-gallery__main { height:300px; padding:12px; } .flomax-product-gallery__thumbs { grid-template-columns:repeat(4, 1fr); gap:7px; } }