@media (min-width: 0) {
    .fairImages {
        margin-left: 20px;
        margin-right: 20px;
        border: 10px solid white;
        /*box-shadow: 0 0 0 20px black;*/
        margin-top: 10vh;
    }

    .fairImages img {
        width: 100%;
        height: auto;
    }
}


@media (min-width: 992px) {
    .fairImages {
        /*border: 20px solid var(--delta-blue-dark);*/
        /*box-shadow: 0 0 0 30px var(--delta-blue-dark);*/
        border: none;
        margin-left: unset;
        margin-right: unset;
        margin-top: unset;
        margin-bottom: 3rem;
        display: flex;
        justify-content: center;
    }

    .fairImages img, .fairImages video {
        max-height: 80vh;
        border: 25px solid transparent;
        border-radius: 16px;
        background:
            linear-gradient(135deg, white, white) padding-box,
            linear-gradient(135deg, var(--delta-blue-dark), var(--delta-red)) border-box;
            padding: 10px; /* Adjust padding to show gradient */
    }

    /* Portrait images - controlled by aspect ratio */
    .fairImages.portrait img,
    .fairImages.portrait video {
        width: auto;
        max-width: 100%;
        height: auto;
    }

    /* Landscape images - full width */
    .fairImages.landscape img,
    .fairImages.landscape video {
        width: 100%;
        height: auto;
    }

}

.event-page-container {
    background-color: #f9f9f9; /* Light background for content area */
    border-radius: 8px;
    padding-top: 20px;
    padding-bottom: 30px;
}

.event-header h1 {
    color: var(--text-info-2, #1a7182); /* Use your theme color */
    font-weight: bold;
}

.event-date {
    font-size: 1.1em;
    color: #6c757d; /* Bootstrap text-muted color */
}

.event-main-image img {
    max-height: 500px;
    object-fit: cover;
    border: 8px solid transparent; /* Transparent space for the light effect */
    background: linear-gradient(90deg, red, yellow, green, blue, green, yellow, red, yellow, green, blue, green, yellow, red); /* Light gradient */
    background-size: 300% 300%;
    animation: running-light 5s linear infinite;
}
@keyframes running-light {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.event-description p {
    margin-bottom: 1.5em;
    font-size: 1.1rem; /* Slightly larger for readability */
}

.event-gallery h2 {
    color: var(--text-info-2, #1a7182);
}

/* Styles for winImgs placeholders if needed, though main.css might cover it */
.winImgs .placeholder-gallery-img {
    display: block;
    margin: 0 auto;
    max-width: 200px; /* Size for the loading logo */
    opacity: 0.5;
}

/* Adjustments for #toCoverFooter if event page content is short */
/* This is tricky with a fixed footer. Consider if #toCoverFooter is still the best approach.
   A common CSS sticky footer might be better. */
body.event-page #toCoverFooter { /* Add 'event-page' class to body in controller if needed */
    min-height: calc(100vh - var(--menubar-height, 50px) - var(--footer-height, 100px)); /* Example */
}