/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.banner {
    height: auto;
    padding: 20px 0;
    text-align: center;
}

.banner img {
    width: auto;
    max-width: 50%;
    height: auto;
}

.intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.profile-pic {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Gallery Styles */
#gallery .col-md-4 {
    margin-bottom: 30px;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-img.visible {
    opacity: 1;
}
@media (max-width: 768px) {
    .banner {
        height: 150px;
    }
    .gallery-img {
        height: 200px;
    }
    .profile-pic {
        order: 1;               /* Ensure the profile picture is first */
        margin-bottom: 20px;    /* Add space below the image */
        width: 150px;           /* Adjust size for mobile */
        height: 150px;
    }
    .intro {
        flex-direction: column; /* Stack items vertically */
        align-items: center;    /* Center items horizontally */
    }
    .intro-content {
        order: 2;               /* Position the about section below the image */
        text-align: center;     /* Center the text */
        padding-left: 0;        /* Remove left padding */
        width: 100%;            /* Full width for better readability */
    }
    .intro h2 {
        margin-bottom: 10px;    /* Space below the heading */
    }
    .intro p.bio {
        font-size: 1em;         /* Adjust font size for mobile */
    }
}