.imagegallery {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.gallery1 {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery {

    height: 450px;
    overflow: hidden;
    width: 100%;
}

.carousel {

    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    width: calc(100% + 20px);
    /* Adjust for margins */
    margin-left: -10px;
    /* Compensate for left margin */
}

.carousel-card {
    border: 2px solid gray;
    border-radius: 10px;
    position: relative;
    /* Allow positioning of child elements */
    flex: 0 0 auto;
    /* Prevent flex items from shrinking */
    margin: 0 10px;
    height: 400px;
    /* Allow height to adjust based on content */


}

.carousel-card img {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.description-button {
    margin-top: 2px;
    margin-bottom: 1rem;
    padding: 3px 5px;
    border: none;
    background: none;
}



/* Responsive styles */
@media (min-width: 768px) {
    .carousel-card {
        width: calc(25% - 20px);
        /* Show 4 cards in large screens (4 x 25% - margin) */
    }
}

@media (max-width: 767px) {
    .carousel-card {
        width: calc(100% - 20px);
        /* Show 1 card on small screens */
    }
}