/* Styles specific to the Projects page */

.about-flex {
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    justify-content: center;
    gap: 2rem; /* Adjust gap as needed */
    padding: 0 13rem; /* Adjust padding as needed */
}

.image-section, .text-section, .video-section {
    width: 100%; /* Adjust this to control the width */
    max-width: 800px; /* Prevents the sections from becoming too wide */
    margin: auto; /* Centers the sections */
}

.image-section {
    width: 100%; /* Full width of the container */
    max-width: 800px; /* Maximum width */
    margin: auto; /* Centering the section */
    text-align: center; /* Center-aligns inline or inline-block children */
    padding: 1rem 0rem 0rem 0rem;
    justify-content: center;
    align-items: center;
}

.image-section img {
    max-width: 100%; /* Image can grow up to the container width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Block-level elements can receive margin auto for centering */
    margin: 0 auto; /* Top and bottom margin 0, left and right auto for centering */
    border-radius: 0.5rem; /* Styling */
}

.text-section {
    max-width: 100%; /* Adjust text width as needed */
    margin-top: 0rem; /* Reduced top margin, adjust as needed */
    line-height: 140%;
}

.video-container {
    width: 100%; /* Adjust width as needed */
    margin: 0 auto; /* Center the container with margin */
    overflow: hidden; /* Hide anything outside the container */
    position: relative;
}

.video-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px; /* Height of the overlay */
    background-color: #F5F5F5; /* Match the background color of the page */
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-flex {
        padding: 0 1rem; /* Adjust padding for mobile screens */
    }

    .image-section, .text-section, .video-section {
        max-width: 100%;
        width: 100%; /* Full width for smaller screens */
    }

    .image-section img {
        padding: 0;
    }
}
