    .flyer-main {
        max-height: 1000px;
        width: auto;
        display: block;
        margin: 0 auto;
        cursor: pointer;
    }
    .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;
    }
    .extra-thumbnails {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-top: 0.5rem;
    }

    /* Make modal overlay dark and close button visible */
    #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 buttons hidden by default */
    #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;
    }

    /* Show buttons on hover */
    #flyerLightbox .modal-content:hover #prevFlyer,
    #flyerLightbox .modal-content:hover #nextFlyer {
        opacity: 1;
    }

    /* Close button more noticeable */
    #flyerLightbox .btn-close-custom {
        font-size: 2rem; /* bigger X */
        color: #fff; /* white X */
        background-color: rgba(0,0,0,0.7); /* dark semi-transparent background */
        border: 2px solid #fff; /* white border for contrast */
        border-radius: 50%; /* circular button */
        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;
    }

    /* Hover effect */
    #flyerLightbox .btn-close-custom:hover {
        background-color: rgba(255,255,255,0.9);
        color: #000;
        transform: scale(1.1);
    }

    .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 {
        position: relative;
        display: inline-block;
    }

    .cancelled-overlay img {
        display: block;
    }

    /* Full-image dark overlay */
    .cancelled-overlay::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* darker overlay */
        z-index: 5;
        border-radius: 0.5rem; /* match any rounded image corners */
    }

    .cancelled-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2rem;
        font-weight: bold;
        color: #ff4d4d; /* bright red */
        text-shadow: 1px 1px 3px #000;
        z-index: 10; /* above the dark overlay */
        white-space: nowrap;
    }

