﻿/* ============================= */
/* Thumbnail Image Gallery CSS   */
/* ============================= */

/* Default thumbnail size */
:root {
    --thumb-size: 120px;
}

.cc-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cc-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    border: 2px solid #000;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .cc-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ============================= */
/* Responsive Thumbnail Sizes    */
/* ============================= */

/* Large screens (desktops) */
@media (min-width: 1200px) {
    :root {
        --thumb-size: 150px;
    }
}

/* Medium screens (tablets) */
@media (max-width: 1199px) and (min-width: 768px) {
    :root {
        --thumb-size: 110px;
    }
}

/* Small screens (phones) */
@media (max-width: 767px) {
    :root {
        --thumb-size: 50px;
    }
}

/* Extra small screens (tiny phones) */
@media (max-width: 480px) {
    :root {
        --thumb-size: 75px;
    }
}



/* ===================================================== */
/* FULLSCREEN SLIDESHOW / LIGHTBOX CSS (NEW)             */
/* ===================================================== */

/* Fullscreen overlay */
#ccLightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Fullscreen image */
#ccLightboxImage {
    max-width: 95%;
    max-height: 85vh;
    object-fit: contain; /* fit image fully on screen */
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

/* Close button */
#ccLightboxClose {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* Bottom control bar (Prev/Next + Counter) */
.cc-lightbox-controls {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Prev/Next buttons */
.cc-nav-btn {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

    .cc-nav-btn:hover {
        background: #333;
    }

/* Image counter text */
#ccLightboxCounter {
    color: #fff;
    font-size: 18px;
}

/* Prevent image click from closing lightbox */
#ccLightboxImage {
    pointer-events: none;
}
