body {
    font-family: "Terrazzo";
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 0;
}

h2 {
    font-family: "Nimbus Sans Cond Black";
    font-style: normal;
    font-weight: normal;
}

#container {
    display: flex;
    flex-direction: column; /* Stack modules in a single column */
    gap: 16px;
    /*padding: 16px;*/
}

#footer {
    height: 50px;
    width: 100%;
    background-color: white;
    border: none;
    box-shadow: inset 0 8px 6px -6px rgba(0, 0, 0, 0.5);
}

#footer.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
}

.module {
    border: 1px solid #ddd;
    padding: 16px;
    box-sizing: border-box;
    width: 95%;
    margin-left: 10px;
    background-color: white;
    margin-bottom: 200px;
}

.module h2 {
    margin: 0 0 8px;
    font-size: 2em;
    font-family: "Nimbus Sans Cond Black";
    font-style: normal;
    font-weight: normal;
}

.module.class-2 {
    padding-bottom: 0;
    margin-left: 4%;
}

.module p {
    font-family: "Nimbus Sans Light";
    font-style: normal;
    font-weight: normal;
    font-size: 1em;
    margin: 8px 0 16px;
    max-width: 700px;
    width: 100%;
    line-height: 1.5;
}

.class-2 h2 {
    color: black;
    font-size: 3rem;
    font-family: "Chunk";
    font-style: normal;
    font-weight: normal;
}
.class-2 p {
    color: black;
}
/*
.the_text-container h2 { color: blue}
.the_text-container p {color: green }
*/

.class-1, .class-2, .class-3 {
    border: black solid 1px;
    border-bottom: black solid 3px;
    box-shadow: -3px 7px 6px 0 rgba(0, 0, 0, 0.5);
}



.class-3 img,
.class-3 video {
    width: 100%;
    height: auto;
}

.image-container {
    display: flex;
    gap: 8px;
}

.image-container-2 {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.the_image-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-track img,
.carousel-track video {
    min-width: 100%;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.dot.active {
    background: black;
}

.image-container img,
.image-container video {
    width: 100%; /* Default width */
    max-width: 50%; /* Limit the width to 50% of the container */
    flex: 1; /* Ensure the images still share available space equally */
}

section {
    position: relative;
}

@keyframes slideIntoView {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-80vh);
    }
}

section:first-of-type article {
    animation: slideIntoView 0.8s ease-out 2s both;
}

figure img {
    width: 100%;
}

figure {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    top: 0;
    z-index: -1;
    overflow-x: hidden;
    opacity: 1;
}

article p:not(:last-of-type) {
    margin: 0 0 1rem;
}

/* Landscape Orientation */
@media (orientation: landscape) {
    .image-container {
        flex-direction: row;
    }
    .the_image-container {
        flex: 1;
    }
    .the_image-container img,
    .the_image-container video {
        width: 100%;
    }
    .the_text-container {
        flex: 1;
        /*border: red solid 1px;*/
        padding: 20px;
        /*padding-bottom: 44px;*/
    }
    .class-3 {
        max-width: 700px;
        margin: 0 auto;
        margin-bottom: 200px;
    }
}
/* Portrait Orientation: Stack images vertically */
@media (orientation: portrait) {
    .module {
        width: 100%;
        margin-left: 0;
    }
    .class-3 {
        width: 100%;
    }
    .module.class-2 {
        padding-bottom: 0;
        margin-left: 0;
    }

    .module p {
        width: 100%;
    }
    figure {
        height: 110vh;
        width: 100%;
    }
    figure img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .image-container {
        flex-direction: column;
    }
    .image-container-2 {
        flex-direction: column;
    }
    .the_image-container {
        width: 100%;
    }
    .the_image-container img,
    .the_image-container video {
        width: 100%;
    }
    .the_text-container {
        width: 100%;
        height: 100vw;
    }
    .image-container img,
    .image-container video {
        width: 100%; /* Default width */
        max-width: 100%; /* Limit the width to 50% of the container */
        flex: 1; /* Ensure the images still share available space equally */
    }
    .class-2 h2 {
        font-size: 2rem;
    }
}
