body.wqv-open {
    overflow: hidden;
}

#wqv-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,.65);
    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transition: opacity 260ms ease, visibility 260ms ease;
}

#wqv-modal.wqv-modal--active {
    opacity: 1;
    visibility: visible;
}

/* MODAL BOX (this is the animated part) */
.wqv-box {
    width: 700px;
    max-width: 95%;
    max-height: 90vh;

    background: #fff;

    overflow: auto;
    position: relative;

    border-radius: 18px;
    overflow: hidden;


    opacity: 0;
    transform: scale(0.92) translateY(20px);
    will-change: transform, opacity;

    border:7px solid black;
    padding:35px;
}

#wqv-modal.wqv-modal--active .wqv-box {
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.wqv-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
}

/***********************************

    Layout of the actual modal view

***********************************/
.wqv-grid {
    display: flex;
    gap: 20px;
}

.wqv-grid img {
    width: 50%;
    max-width: 280px;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

/*
gives the image a 200px tall grey box if it fails to load
*/
.wqv-grid img:not([src]),
.wqv-grid img[src=""] {
    min-height: 200px;
    background: #f0f0f0;
}

.wqv-details {
    flex: 1;
    min-width: 0;
}