/* Event List Styles */
.event-list {
    margin: 20px 0;
}

/* Event Section Titles */
.event-section {
    margin-bottom: 40px;
}

.event-section-title {
    font-size: 28px;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa;
    color: #333;
}

.upcoming-events .event-section-title {
    border-bottom-color: #0073aa;
}

.past-events {
    margin-top: 50px;
}

.past-events .event-section-title {
    border-bottom-color: #999;
    color: #666;
}

.past-events .event-item {
    opacity: 0.8;
}

/* Event Items - 2 Column Layout */
.event-item {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.event-thumbnail {
    flex: 0 0 350px;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.event-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.event-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.event-details {
    flex: 1;
    padding: 0;
    min-width: 0;
}

.event-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.event-meta {
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.event-meta-item {
    margin-bottom: 10px;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.event-meta-item:last-child {
    margin-bottom: 0;
}

.event-meta-item strong {
    color: #333;
    display: inline-block;
    min-width: 100px;
}

.event-meta-item a {
    color: #0073aa;
    text-decoration: none;
}

.event-meta-item a:hover {
    text-decoration: underline;
}

.event-content {
    margin-top: 15px;
    line-height: 1.8;
    color: #555;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 40px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 40px;
    right: 20px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.lightbox-close:hover {
    background: #f44336;
    color: #fff;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .event-section-title {
        font-size: 24px;
    }
    
    .event-item {
        flex-direction: column;
        padding: 15px;
    }
    
    .event-thumbnail {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .event-meta-item {
        font-size: 14px;
    }
    
    .lightbox-overlay {
        padding: 20px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}
