/* Small local lightbox used for product gallery links with data-fancybox. */
.fancybox-local {
    align-items: center;
    background: rgba(17, 17, 17, 0.9);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10550;
}

.fancybox-local.is-open {
    display: flex;
}

.fancybox-local__stage {
    align-items: center;
    display: flex;
    justify-content: center;
    max-height: calc(100vh - 96px);
    max-width: min(1180px, calc(100vw - 96px));
    position: relative;
    width: 100%;
}

.fancybox-local__content {
    display: flex;
    justify-content: center;
    max-height: inherit;
    max-width: 100%;
}

.fancybox-local__content img,
.fancybox-local__content iframe {
    background: #000;
    border: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 96px);
    max-width: 100%;
}

.fancybox-local__content iframe {
    aspect-ratio: 16 / 9;
    width: min(960px, calc(100vw - 96px));
}

.fancybox-local__caption {
    bottom: -34px;
    color: #fff;
    font-size: 14px;
    left: 0;
    line-height: 1.4;
    position: absolute;
    right: 0;
    text-align: center;
}

.fancybox-local__button {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 28px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    position: fixed;
    width: 44px;
    z-index: 10551;
}

.fancybox-local__button:hover,
.fancybox-local__button:focus {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    outline: none;
}

.fancybox-local__close {
    right: 20px;
    top: 20px;
}

.fancybox-local__prev,
.fancybox-local__next {
    top: 50%;
    transform: translateY(-50%);
}

.fancybox-local__prev {
    left: 20px;
}

.fancybox-local__next {
    right: 20px;
}

.fancybox-local__button[hidden] {
    display: none;
}

@media (max-width: 767.98px) {
    .fancybox-local {
        padding: 16px;
    }

    .fancybox-local__stage {
        max-height: calc(100vh - 72px);
        max-width: calc(100vw - 32px);
    }

    .fancybox-local__content img,
    .fancybox-local__content iframe {
        max-height: calc(100vh - 72px);
    }

    .fancybox-local__content iframe {
        width: calc(100vw - 32px);
    }

    .fancybox-local__close {
        right: 12px;
        top: 12px;
    }

    .fancybox-local__prev {
        left: 12px;
    }

    .fancybox-local__next {
        right: 12px;
    }
}
