/* Event Detail Styles */
.event-detail-hero {
    padding: 180px 20px 60px;
    background-color: #fcf9f2;
    text-align: center;
}

.back-link {
    text-decoration: none;
    color: #4a7c44;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #b39347; 
}

.back-link:hover .arrow-slide {
    transform: translateX(-8px); /* The arrow 'points' forward on hover */
}

.event-stats {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #1b3022;
    font-size: 1.1rem;
}

.event-stats strong {
    color: #b39347; /* Logo Gold */
}

/* Story Section */
.event-story {
    padding: 80px 20px;
    background: white;
}

.container.tight {
    max-width: 800px;
    line-height: 1.8;
}

.lead {
    font-size: 1.5rem;
    color: #2e4f2d;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 100px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

.gallery-grid video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery-grid video:hover {
    transform: scale(1.03);
}


/* Lightbox Container */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 48, 34, 0.306); /* Dark green tint */
    
    /* Frosted Glass Effect */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

/* The Full-Size Image */
.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Animation when it opens */
.lightbox.active {
    display: flex;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

/* Ensure video stays within the screen like the images */
.lightbox-video {
    max-width: 90%;
    max-height: 80vh;
    display: none; /* Hidden until a video is clicked */
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Helper class to toggle visibility */
.lightbox.show-video .lightbox-video { display: block; }
.lightbox.show-video .lightbox-img { display: none; }

.lightbox.show-image .lightbox-video { display: none; }
.lightbox.show-image .lightbox-img { display: block; }

/* Close Button */
.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/* Lightbox Navigation Buttons */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 20px 15px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(179, 147, 71, 0.8); /* Logo Gold */
    color: white;
}

/* Hide buttons on very small screens to keep the image large */
@media (max-width: 600px) {
    .lightbox-prev, .lightbox-next {
        padding: 10px 5px;
        font-size: 1.5rem;
    }
}

