/* Example photograph lightbox. Loaded on Gifts and Custom Engraving. */

.blv4-example-zoom {
    cursor: zoom-in;
}

.blv4-zoom[hidden],
.blv4-zoom-nav[hidden] {
    display: none !important;
}

.blv4-zoom {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 20px;
    background: rgba(0, 0, 0, 0.86);
}

.blv4-zoom-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: auto;
    max-width: min(1100px, 100%);
    max-height: 100%;
}

.blv4-zoom-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.blv4-zoom-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 168px);
    object-fit: contain;
    background: #070707;
}

.blv4-zoom-x,
.blv4-zoom-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(8, 8, 8, 0.78);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.blv4-zoom-x {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    font-size: 20px;
}

.blv4-zoom-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
}

.blv4-zoom-prev { left: 8px; }
.blv4-zoom-next { right: 8px; }

.blv4-zoom-x:hover,
.blv4-zoom-x:focus-visible,
.blv4-zoom-nav:hover,
.blv4-zoom-nav:focus-visible {
    background: #8d1d1d;
    outline: 2px solid #ff4a3a;
    outline-offset: 2px;
}

.blv4-zoom-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #e7b2a4;
    border-radius: 3px;
    background: linear-gradient(180deg, #c73a32 0%, #8d1d1d 58%, #6e1414 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    text-transform: none;
}

.blv4-zoom-contact:hover,
.blv4-zoom-contact:focus-visible {
    color: #fff;
    background: linear-gradient(180deg, #d24a42 0%, #a32424 58%, #7a1818 100%);
    outline: 2px solid #ff4a3a;
    outline-offset: 3px;
}

body.blv4-zoom-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .blv4-zoom {
        padding: 16px 10px 14px;
    }

    .blv4-zoom-frame img {
        max-height: calc(100dvh - 190px);
    }

    .blv4-zoom-contact {
        font-size: 15px;
    }
}
