.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Fixed width for carousels */
    margin: 20px auto;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Maintain consistent size */
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%; /* Match height of wrapper */
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Preserve aspect ratio */
    flex-shrink: 0;
    cursor: pointer;
}

.carousel-buttons {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%; /* Cover entire wrapper */
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; /* Prevent blocking gestures */
}

.carousel-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white !important;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    pointer-events: all; /* Enable clicks for buttons */
    box-shadow: none;
    border-radius: inherit;
    height: auto;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
}

.modal span {
    color: white;
    font-weight:bold;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

