[x-cloak] {
    display: none !important;
}

.tm-product-gallery {
    --tm-gallery-control-bg: rgba(255, 255, 255, 0.92);
    --tm-gallery-control-border: rgba(15, 23, 42, 0.16);
    --tm-gallery-control-color: #0f172a;
    --tm-gallery-accent: #2563eb;
}

.tm-product-gallery-modal-open {
    overflow: hidden;
}

.tm-product-gallery__dialog--fullscreen {
    background: #21140f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem 3rem;
}

.tm-product-gallery__stage {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    min-height: 18rem;
}

.tm-product-gallery .tm-product-gallery__stage {
    overflow: visible !important;
}

.tm-product-gallery__dialog--fullscreen .tm-product-gallery__stage {
    align-self: center;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    min-height: 0;
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.tm-product-gallery__image {
    aspect-ratio: 1 / 1;
    max-height: 42rem;
}

.tm-product-gallery__dialog--fullscreen .tm-product-gallery__image {
    aspect-ratio: auto;
    filter: drop-shadow(0 1.5rem 3rem rgba(0, 0, 0, 0.4));
    margin: 0 auto;
    max-height: min(72vh, 46rem);
    max-width: min(76vw, 58rem);
    width: auto;
}

.tm-product-gallery__lens {
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.24), 0 0.75rem 1.75rem rgba(15, 23, 42, 0.28);
    height: min(38%, 12rem);
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, -50%);
    width: min(38%, 12rem);
    z-index: 12;
}

.tm-product-gallery__zoom-pane {
    background-color: #fff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.22);
    height: 100%;
    left: calc(100% + 1rem);
    pointer-events: none;
    position: absolute;
    top: 0;
    width: min(100%, 36rem);
    z-index: 30;
}

.tm-product-gallery__modal-backdrop {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(34px);
    inset: -3rem;
    opacity: 1;
    position: absolute;
    transform: scale(1.04);
}

.tm-product-gallery__modal-backdrop::after {
    background: rgba(19, 12, 8, 0.56);
    content: "";
    inset: 0;
    position: absolute;
}

.tm-product-gallery__modal-title {
    bottom: -2.25rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    left: 0;
    line-height: 1.4;
    position: absolute;
    right: 0;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.tm-product-gallery__nav,
.tm-product-gallery__fullscreen,
.tm-product-gallery__close {
    align-items: center;
    background: var(--tm-gallery-control-bg);
    border: 1px solid var(--tm-gallery-control-border);
    border-radius: 999px;
    color: var(--tm-gallery-control-color);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.tm-product-gallery__nav:hover,
.tm-product-gallery__fullscreen:hover,
.tm-product-gallery__close:hover {
    background: #fff;
    border-color: rgba(37, 99, 235, 0.45);
}

.tm-product-gallery__dialog--fullscreen .tm-product-gallery__close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.78);
    position: fixed;
    right: 1.25rem;
    top: 1.25rem;
    z-index: 2;
}

.tm-product-gallery__dialog--fullscreen .tm-product-gallery__close:hover {
    color: #fff;
    transform: scale(1.06);
}

.tm-product-gallery__dialog--fullscreen .tm-product-gallery__nav {
    background: rgba(0, 0, 0, 0.24);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.tm-product-gallery__icon {
    display: block;
    fill: currentColor;
    height: 1.5rem;
    width: 1.5rem;
}

.tm-product-gallery__video-play {
    background: transparent;
    border: 0;
    color: #fff;
    display: grid;
    margin: auto;
    place-items: center;
}

.tm-product-gallery__video-play .tm-product-gallery__icon {
    background: rgba(15, 23, 42, 0.48);
    border-radius: 999px;
    box-sizing: content-box;
    height: 2rem;
    padding: 1rem;
    width: 2rem;
}

.tm-product-gallery__video-play:hover .tm-product-gallery__icon {
    background: rgba(15, 23, 42, 0.65);
}

.tm-product-gallery__video iframe {
    border: 0;
    height: 100%;
    width: 100%;
}

.tm-product-gallery__thumb {
    background: #fff;
    border-radius: 0.5rem;
    min-width: 5.625rem;
    overflow: hidden;
    position: relative;
}

.tm-product-gallery__thumb img {
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.tm-product-gallery__thumb--active {
    border-color: var(--tm-gallery-accent);
    box-shadow: 0 0 0 1px var(--tm-gallery-accent);
}

.tm-product-gallery__thumb-video {
    align-items: center;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    display: inline-flex;
    inset: 0;
    justify-content: center;
    position: absolute;
}

.tm-product-gallery .sr-only {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 767px) {
    .tm-product-gallery__stage {
        min-height: 14rem;
    }

    .tm-product-gallery__nav {
        min-height: 2.25rem;
        min-width: 2.25rem;
    }

    .tm-product-gallery__zoom-pane,
    .tm-product-gallery__lens {
        display: none !important;
    }

    .tm-product-gallery__dialog--fullscreen {
        padding: 4rem 1rem 3rem;
    }
}

