/* The column ends with the product summary, keeping sticky photos out of recommendations. */
.bootlg124-gallery-column { min-width: 0; }
.bootlg124-gallery { position: relative; }
.bootlg124-gallery .bootlg124-main-image { cursor: zoom-in; touch-action: pan-y pinch-zoom; }
.bootlg-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 12px; grid-column: 2; grid-row: 2; }
.bootlg-gallery-controls button,
.bootlg-gallery-dialog button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 4px; border: 1px solid #dededb; border-radius: 0; background: #fff; color: #1f1f1f; cursor: pointer; font: 30px/1 system-ui,sans-serif; box-shadow: none; }
.bootlg-gallery-controls button:hover,
.bootlg-gallery-dialog button:hover { background: #f3f2ef; }
.bootlg-gallery-controls button:disabled,
.bootlg-gallery-dialog button:disabled { opacity: .3; cursor: default; }
.bootlg-gallery-count { min-width: 48px; text-align: center; font: 14px/1.4 system-ui,sans-serif; }
.bootlg-gallery-controls .bootlg-gallery-expand { margin-left: auto; font-size: 26px; }
.single-product .bootlg124-gallery:not(:has(.bootlg124-thumbs)) .bootlg-gallery-controls { grid-column: 1; }
.bootlg-gallery-controls [hidden], .bootlg-gallery-dialog [hidden] { display: none !important; }
html.bootlg-gallery-open { overflow: hidden; }
.bootlg-gallery-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); border: 0; background: #fff; color: #1f1f1f; overflow: hidden; overscroll-behavior: contain; }
.bootlg-gallery-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 10px; }
.bootlg-gallery-dialog::backdrop { background: rgba(0,0,0,.75); }
.bootlg-gallery-toolbar { display: flex; align-items: center; justify-content: end; gap: 12px; padding-top: env(safe-area-inset-top); }
.bootlg-gallery-toolbar > span { margin-right: auto; padding-left: 8px; font: 14px/1.4 system-ui,sans-serif; }
.bootlg-gallery-stage { min-height: 0; min-width: 0; position: relative; overflow: hidden; }
.bootlg-gallery-viewport { height: 100%; width: 100%; overflow: auto; touch-action: none; overscroll-behavior: contain; scrollbar-width: none; cursor: zoom-in; }
.bootlg-gallery-viewport::-webkit-scrollbar { display: none; }
.bootlg-gallery-canvas { display: grid; place-items: center; }
.bootlg-gallery-canvas img { display: block; max-width: none; max-height: none; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.bootlg-gallery-dialog.is-zoomed .bootlg-gallery-viewport { cursor: grab; }
.bootlg-gallery-dialog.is-zoomed .bootlg-gallery-viewport:active { cursor: grabbing; }
.bootlg-gallery-stage > .bootlg-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgba(255,255,255,.92); }
.bootlg-gallery-previous { left: 4px; }
.bootlg-gallery-next { right: 4px; }
.bootlg-gallery-modal-thumbs { display: flex; justify-content: safe center; gap: 8px; overflow-x: auto; min-height: 0; padding: 4px; }
.bootlg-gallery-modal-thumbs .bootlg-gallery-modal-thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 2px; }
.bootlg-gallery-modal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bootlg-gallery-dialog .bootlg-gallery-modal-thumb[aria-pressed=true] { border: 2px solid #1f1f1f; }
@media (max-width:749px) {
    .bootlg-gallery-controls { margin-top: 10px; gap: 8px; }
    .bootlg-gallery-controls .bootlg-gallery-expand { margin-left: 8px; }
    .bootlg-gallery-dialog { padding: 8px; padding-bottom: max(8px,env(safe-area-inset-bottom)); }
    .bootlg-gallery-modal-thumbs .bootlg-gallery-modal-thumb { flex-basis: 52px; width: 52px; height: 52px; }
}

.bootlg-thumb-navigation { grid-column: 1; grid-row: 2; display: flex; justify-content: space-between; gap: 2px; }
.bootlg-thumb-navigation[hidden] { display: none; }
.bootlg-thumb-navigation button { flex: 1; min-width: 0; height: 44px; padding: 0; border: 1px solid #dededb; background: #fff; color: #1f1f1f; font: 22px/1 system-ui,sans-serif; cursor: pointer; }
.bootlg-thumb-navigation button:disabled { opacity: .3; cursor: default; }
@media (max-width:749px) { .bootlg-thumb-navigation { display: none; } }
