.section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1000px;
    /* Fixed width for section-content */
    margin: 0 auto;
    /* Center horizontally */
    padding: 40px;
    /* Add padding for space from sides */
    text-align: justify;
    /* Justify text within .text */
}

.section-content .text {
    flex: 1;
    padding-right: 20px;
    /* Add space between text and image */
}

.section-content .text h2 {
    font-size: 24px;
    /* Adjust font size */
    margin-bottom: 10px;
}

.section-content .text p {
    font-size: 16px;
    /* Adjust font size */
    line-height: 1.6;
    text-align: justify;
}

.section-content .image {
    flex: 1;
    padding-left: 20px;
    /* Add space between text and image */
    text-align: center;
}

.section-content .image img {
    max-width: 500px;
    /* Make image responsive */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.image-gallery {
    position: relative;
    /* Ensure proper positioning */
    overflow: hidden;
    padding: 20px 0;
    margin-top: 250px;
    height: 500px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.image-container {
    display: inline-block;
    width: 90%;
    /* Full width of each image container */
    height: 300px;
    /* Set a fixed height for each image */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 10%;
    top: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.image-container.active {
    opacity: 1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}

.image-container2 {
    display: inline-block;
    width: 90%;
    /* Full width of each image container */
    height: 300px;
    /* Set a fixed height for each image */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    right: 10%;
    opacity: 1;
    transition: opacity 1s ease;
}

.image-container2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}

.image-gallery span {
    margin-top: 400px;
    display: block;
    font-size: 14px;
    position: absolute;
    font-weight: 600;
    bottom: 10px;
    /* Adjust as needed */
    left: 0;
    right: 0;
    text-align: center;
    /* Center the text */
    text-shadow: -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
    /* White outline around the text */
}



.text {
    backdrop-filter: blur(1px);
    background-color: #f5e6ca;
    box-shadow: 0 0 30px rgba(245, 230, 202, 255);
    flex: 1;
    padding: 0 20px;
    text-align: left;
}

.text h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.text p {
    line-height: 1.6;
}

.image {
    flex: 1;
    padding: 0 20px;
}

.image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

#background-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.background-image {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 1;
    animation: float 1s linear infinite;
}

@keyframes float {
    0% {
        transform: translateX(0vh);
    }

    100% {
        transform: translateX(240vh);
    }
}

@keyframes float-reverse {
    0% {
        transform: translateX(240vh);
    }

    100% {
        transform: translateX(-20vh);
    }
}

.image-carousel {
    position: relative;
    overflow: hidden;
    left: 30px;
    margin-top: 50px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.carousel-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    /* Use flexbox for vertical centering */
    justify-content: center;
    /* Center content horizontally */
    align-items: center;
    /* Center content vertically */
}

.carousel-track {
    display: flex;
    /* Display images in a row */
    transition: transform 0.5s ease;
    /* Smooth transition for scrolling */
}

.carousel-track img {
    width: 100%;
    height: auto;
}


.bento-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
    max-width: 800px;
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-item.tall {
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.ending-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff88;
    padding: 30px 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.ending-card.hidden {
    opacity: 0;
}