﻿.event-carousel__container {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.event-carousel__image-container {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 10px;
}

.event-carousel__image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.event-carousel__image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 14px;
    border-radius: 10px;
    max-width: 90%;
    margin: 10px auto;
    text-align: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
    height: 100%;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    opacity: 1;
    transition: opacity 0.3s ease;
}

.carousel-control-next {
    background: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.event-carousel__event-format,
.event-carousel__event-location {
    font-size: 14px;
    margin: 2px 0;
}

.event-carousel__event-time {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    width: fit-content;
    margin: 5px auto;
}

    .event-carousel__event-time svg {
        width: 20px;
        height: 20px;
        fill: #ffd700;
    }

@media (max-width: 1024px) {
    .event-carousel__container {
        height: auto;
    }
}

@media (max-width: 768px) {
    .event-carousel__container {
        width: 100%;
    }

    .event-carousel__image-container {
        padding-top: 62.5%;
    }

    .carousel-caption {
        font-size: 12px;
        padding: 5px;
        max-width: 90%;
        bottom: 10px;
        background: rgba(0, 0, 0, 0.6);
        white-space: normal;
        display: block !important;
    }

        .carousel-caption h5 {
            font-size: 14px;
        }

        .carousel-caption p {
            font-size: 11px;
            -webkit-line-clamp: 2;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .carousel-caption a.btn {
            display: none !important;
        }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .event-carousel__container {
        max-width: 100%;
    }

    .event-carousel__image-container {
        padding-top: 75%;
    }

    .carousel-caption h5 {
        font-size: 12px;
    }

    .carousel-caption p {
        font-size: 10px;
    }
}
