/**
 * QP UNeed Lightbox styles
 */

a.qp-uneed-lightbox-link img {
    cursor: zoom-in;
}

.qp-uneed-modal {
    display: none;
}

.qp-uneed-modal[aria-hidden="false"] {
    display: block;
}

.qp-uneed-modal__overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.88);
}

.qp-uneed-modal__container {
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 12px;
}

.qp-uneed-modal__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0;
    border-bottom: 0;
    position: relative;
}

.qp-uneed-modal__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.qp-uneed-modal__close {
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    margin: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 99px;
}

.qp-uneed-modal__content {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 8px;
}

.qp-uneed-modal__image {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
}

.qp-uneed-modal__nav {
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    margin: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
}

.qp-uneed-modal__nav[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.qp-uneed-modal__footer {
    padding: 8px 16px 14px;
}

.qp-uneed-modal__caption {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.84);
    text-align: center;
}

.pswp__custom-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px 18px;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

@media (max-width: 767px) {
    .qp-uneed-modal__container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .qp-uneed-modal__content {
        grid-template-columns: 34px 1fr 34px;
        padding: 10px 8px 6px;
    }

    .qp-uneed-modal__nav {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
}
