.gub-product-image-modal[x-cloak] {
    display: none !important;
}

.gub-product-image-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.gub-product-image-trigger:focus-visible,
.gub-product-image-modal__close:focus-visible {
    outline: 3px solid #169bd5;
    outline-offset: 3px;
}

.gub-product-image-trigger--checkout {
    border-radius: .25rem;
}

body.gub-product-image-modal-open {
    overflow: hidden;
}

.gub-product-image-modal {
    align-items: center;
    background: rgba(0, 0, 0, .78);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 10000;
}

.gub-product-image-modal__panel {
    align-items: center;
    background: #fff;
    border-radius: .5rem;
    display: flex;
    justify-content: center;
    max-height: calc(100vh - 2rem);
    max-width: min(72rem, calc(100vw - 2rem));
    min-height: 5rem;
    min-width: 5rem;
    overflow: auto;
    padding: 3rem 1rem 1rem;
    position: relative;
}

.gub-product-image-modal__close {
    align-items: center;
    background: #fff;
    border: 2px solid #00577a;
    border-radius: 9999px;
    color: #00577a;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.75rem;
    height: 2.5rem;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: .75rem;
    top: .75rem;
    width: 2.5rem;
}

.gub-product-image-modal__image {
    display: block;
    height: auto;
    max-height: calc(100vh - 6rem);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

@media (max-width: 480px) {
    .gub-product-image-modal {
        padding: .5rem;
    }

    .gub-product-image-modal__panel {
        max-height: calc(100vh - 1rem);
        max-width: calc(100vw - 1rem);
        padding: 3.25rem .5rem .5rem;
    }

    .gub-product-image-modal__image {
        max-height: calc(100vh - 5rem);
    }
}
