.color-swatch {
    cursor: zoom-in;
}

.color-lightbox[hidden] {
    display: none;
}

.color-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.72);
}

.color-lightbox__inner {
    position: relative;
    max-width: min(520px, 92vw);
    max-height: 86vh;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.color-lightbox__image {
    display: block;
    width: min(440px, 78vw);
    max-height: 70vh;
    border-radius: 14px;
    object-fit: contain;
}

.color-lightbox__caption {
    margin-top: 12px;
    color: #333333;
    font: 600 17px Garamond, 'Palatino Linotype', 'Book Antiqua', serif;
    text-align: center;
}

.color-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #333333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font: 700 24px/1 Arial, sans-serif;
}

body.color-lightbox-open {
    overflow: hidden;
}
