#cgm-quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility 0s linear .2s;
}

#cgm-quick-view-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .2s ease, visibility 0s;
}

.cgm-qv-content {
    position: relative;
    width: min(650px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,.22);
}

.cgm-qv-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.cgm-qv-image { text-align: center; margin-bottom: 18px; }
.cgm-qv-image img { width: min(260px, 100%); height: auto; }

.cgm-qv-title { margin: 0 0 20px; text-align: center; font-size: 22px; }
.cgm-qv-title a { color: inherit; text-decoration: none; }

.cgm-qv-loading,
.cgm-qv-error { padding: 30px; text-align: center; }

.cgm-qv-error { color: #ab2929; }
