main{
    padding-bottom: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 20px;
    background: linear-gradient(180deg, #f8fff8 0%, #eaf6ea 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.event {
    width: 100%;
    max-width: 500px;
    background: #ffffffc9;
    border-radius: 20px;
    padding: 20px 15px;
    box-shadow: 0 6px 15px rgba(0, 50, 10, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(10, 70, 20, 0.08);
    transition: all 0.3s ease;
}

.event:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 70, 20, 0.15);
}

.event-title {
    text-align: center;
    font-size: 1.5rem;
    color: #0b3d1c;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    position: relative;
}

.event-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1f7a3d, #3fb36a);
    margin: 8px auto 0;
    border-radius: 10px;
}

.event-gallary ul {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

.event-gallary ul li {
    width: 200px;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    background: #f5fff5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-gallary ul li:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 80, 20, 0.15);
}

.event-gallary ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-time {
    margin-top: 15px;
    text-align: center;
    color: #2e5d3b;
    font-size: 0.95rem;
    line-height: 1.4;
}

.event-time p:first-child {
    font-weight: 600;
    color: #1c5d2b;
}

.event-time p:last-child {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Lightbox popup styling */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 15, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.4s ease-in-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 50, 10, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.lightbox.show {
    display: flex;
}

.lightbox.show img {
    transform: scale(1);
    animation: popUp 0.3s ease-in-out;
}

@keyframes popUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Optional cursor effect */
.event-gallary img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.event-gallary img:hover {
    transform: scale(1.05);
}