/* ===== CD GALLERY ===== */

.cdzoom-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
}

.cdzoom-item {
    width: 100%;
    max-width: 300px;
    justify-self: center;
    min-width: 0;
    text-align: center;
    box-sizing: border-box;border: 1px solid #bfad88;
}

.cdzoom-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.cdzoom-cover:hover {
    opacity: 0.8;
}

.cdzoom-item h3 {
    font-size: 19px;
    line-height: 1.4;
    margin: 10px 0;
    font-weight: 800;
}

.cdzoom-link {
    display: block;
    width: 60%;
    margin: 10px auto 0;
    padding: 8px 5px;
    box-sizing: border-box;
    border: 1px solid #b59a64;
    border-radius: 4px;
    background: linear-gradient(to bottom, #ffffff, #ffcc33);
    color: #222222;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
}

.cdzoom-link:hover {
    background: #ffcc33;
    color: #000000;
}


/* ===== LARGE IMAGE POPUP ===== */
#cdzoom-popup.cdzoom-visible {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 999999 !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.95) !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

#cdzoom-popup img#cdzoom-image {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 96vw !important;
    max-height: 92vh !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
}


.cdzoom-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.94);
    justify-content: center;
    align-items: center;
    padding: 25px;
    box-sizing: border-box;
}

.cdzoom-popup.cdzoom-visible {
    display: flex;
}

.cdzoom-popup-image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    border-radius: 4px;
}

.cdzoom-close {
    position: absolute;
    top: 12px;
    right: 25px;
    color: #ffffff;
    font-size: 46px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}


/* ===== TABLETS ===== */

@media (max-width: 900px) {
    .cdzoom-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ===== MOBILE ===== */

@media (max-width: 600px) {
    .cdzoom-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .cdzoom-item {
        max-width: 280px;
    }

    .cdzoom-item h3 {
        font-size: 17px;
    }

    .cdzoom-link {
        width: 75%;
        font-size: 15px;
    }

    .cdzoom-popup {
        padding: 12px;
    }

    .cdzoom-popup-image {
        max-width: 96vw !important;
        max-height: 88vh !important;
    }
}


