.y-pv {
    --y-pv-backdrop:     rgba(26, 26, 26, .96);
    --y-pv-btn:          #ffffff;
    --y-pv-btn-hover:    rgba(255, 255, 255, .31);
    --y-pv-caption-bg:   rgba(30, 30, 30, .72);
    --y-pv-caption-text: rgba(255, 255, 255, .92);
    position: fixed;
    z-index: 99999;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--y-pv-backdrop);
    top: 0;
    left: 0;
    right: 0;
    transition: opacity .2s ease;
}

.y-pv.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.y-pv__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: transform .3s;
    z-index: 2;
}

.y-pv__image {
    max-width: 650px;
    border-radius: 10px;
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, .35);
    max-height: 100vh;
}

.y-pv__image.emoji {
    border: none;
    border-radius: 0;
}

.y-pv.is-idle .y-pv__close,
.y-pv.is-idle .y-pv__buttons,
.y-pv.is-idle .y-pv__nav,
.y-pv.is-idle .y-pv__caption:not(.is-hidden) {
    opacity: 0;
    pointer-events: none;
}

.y-pv__close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--y-pv-btn) !important;
    font-size: 24px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    transition: opacity .3s ease, background .4s;
    z-index: 3;
}

.y-pv__close:hover {
    background: var(--y-pv-btn-hover);
    cursor: pointer;
}

.y-pv__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    transition: opacity .3s ease;
}

.y-pv__nav--left {
    left: 20px;
}

.y-pv__nav--right {
    right: 20px;
}

.y-pv__buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    transition: opacity .3s ease;
}

.y-pv__btn {
    color: var(--y-pv-btn) !important;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    font-size: 20px;
    justify-content: center;
    border-radius: 100%;
    transition: .4s;
}

.y-pv__btn:hover {
    background: var(--y-pv-btn-hover);
    cursor: pointer;
}

.y-pv__caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 60%;
    width: max-content;
    background: var(--y-pv-caption-bg);
    backdrop-filter: blur(8px);
    color: var(--y-pv-caption-text);
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
    padding: 7px 16px;
    border-radius: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    transition: opacity .3s ease;
    z-index: 3;
}

.y-pv__caption.is-hidden {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1400px) {
    .y-pv__caption {
        max-width: 90%;
    }
}

@media (max-width: 800px) {
    .y-pv__caption {
        max-width: 100%;
        padding: 8px 16px 0;
    }

    .y-pv__image:not(.emoji) {
        border-radius: 0;
        max-width: 100%;
    }
}
