#gite {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

#gite h1, #gite h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

#gite p {
    margin-bottom: 10px;
}

.carousel {
    position: relative;
    max-width: 600px;
    margin: 20px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%;
    flex-shrink: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Media Queries for responsive design */
@media (min-width: 1400px) {
    main {
        flex-direction: row; /* Align content side by side on larger screens */
    }

    #gite, .carousel {
        flex: 1; /* Ensure both sections take up equal space */
    }

    #carousel{
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 1399px) {
    main {
        align-items: center; /* Center content vertically when stacked */
    }

    #carousel {
        margin-top: 20px; /* Add space between text and carousel */
    }
}