/* ================================
   GLOBAL LIGHTBOX STYLES
   (used by both large-main + thumbs-only)
   ================================ */

/* Thumbnails (baseline) */
.flyer-thumb {
    width: 90px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: transform .2s;
}
.flyer-thumb:hover {
    transform: scale(1.05);
}
.active-thumb {
    border: 2px solid #0d6efd;
}

/* Thumbnails container */
.extra-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-top: 0.5rem;
}

/* Lightbox modal overlay */
#flyerLightbox .modal-content {
    background-color: rgba(0,0,0,0.85);
    border: 0;
    position: relative;
}
#flyerLightbox .modal-content img {
    display: block;
    margin: 0 auto;
}

/* Prev/Next nav buttons */
#prevFlyer, #nextFlyer {
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 2rem;
    background-color: rgba(255,255,255,0.6);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}
#flyerLightbox .modal-content:hover #prevFlyer,
#flyerLightbox .modal-content:hover #nextFlyer {
    opacity: 1;
}

/* Close button */
#flyerLightbox .btn-close-custom {
    font-size: 2rem;
    color: #fff;
    background-color: rgba(0,0,0,0.7);
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1055;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
#flyerLightbox .btn-close-custom:hover {
    background-color: rgba(255,255,255,0.9);
    color: #000;
    transform: scale(1.1);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.status-red { background-color: #dc3545; color: #fff; }
.status-blue { background-color: #0d6efd; color: #fff; }

/* Cancelled overlay (full dark overlay w/ big text) */
.cancelled-overlay {
    position: relative;
    display: inline-block;
}
.cancelled-overlay img {
    display: block;
}
.cancelled-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 5;
    border-radius: 0.5rem;
}
.cancelled-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: #ff4d4d;
    text-shadow: 1px 1px 3px #000;
    z-index: 10;
    white-space: nowrap;
}
