/* Carousel Styles */
.event-carousel {
    margin: 20px 0;
}

.event-carousel .event-item {
    background: #fff;
    padding: 15px;
    margin: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    transition: transform 0.3s ease;
    height: 400px; /* Fixed height for rectangular items */
    display: flex;
    flex-direction: column;
}

.event-carousel .event-item:hover {
    transform: translateY(-3px);
}

.event-image {
    height: 200px; /* Fixed image height */
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: 10px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-carousel h3 {
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.3;
    flex-grow: 1;
}

.event-date,
.event-time,
.event-location {
    margin: 3px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.event-categories span {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 6px;
    margin: 2px;
    border-radius: 2px;
    font-size: 10px;
}

.event-excerpt {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Slick Overrides */
.slick-prev:before, 
.slick-next:before {
    font-size: 24px;
}

.slick-prev {
    left: -30px;
}

.slick-next {
    right: -30px;
}

@media (max-width: 768px) {
    .event-carousel .event-item {
        height: 350px;
    }
    
    .event-image {
        height: 160px;
    }
    
    .slick-prev {
        left: -15px;
    }
    
    .slick-next {
        right: -15px;
    }
}

/* Single Event Styles */
.event-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.event-title {
    color: #333;
    margin-bottom: 20px;
}

.event-meta {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.event-meta div {
    margin: 10px 0;
    font-size: 1.1em;
}

.event-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 30px;
}

.event-content {
    line-height: 1.6;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.event-gallery {
    margin-top: 40px;
}

.event-gallery h3 {
    margin-bottom: 20px;
}

.gallery {
   
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Slick Overrides */
.slick-prev:before, 
.slick-next:before {
    color: #333;
}

@media (max-width: 768px) {
    .event-meta {
        grid-template-columns: 1fr;
    }
}