body {
    font-family: 'Times New Roman', serif;
    margin: 10px;
    display: flex;
    flex-direction: column; /* Stack mainbar and main content vertically */
    background-color: #f4f4f4;
    justify-content: center;
    text-align: center; /* Optional: Center text within the centered element */
    min-height: 100vh;
    align-items: center;
}

.mainbar {
    width: 100%; /* Make mainbar full width */
    background-color: #fafafa;
    padding: 20px;
    border-bottom: 1px solid #e4e4e4; /* Adjust border for mobile view */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile {
    text-align: center;
}

.profile img {
    width: 100px; /* Adjust size for mobile */
    border-radius: 50%;
    display: inline-block;
    border: 2px solid black; /* Add the border */
}

.profile h1 {
    font-size: 24px;
    color: #000000;
    text-align: center;
    margin: 10px 0 5px 0;
}

.profile h2 {
    font-size: 15px;
    color: #757575;
    text-align: center;
    margin: 0;
}

.profile h3 {
    font-size: 13px;
    color: #757575;
    text-align: center;
    margin: 0;
}

/* Navigation bar styling */
.navbar {
    display: block;
    justify-content: center;
    margin-top: 20px;
}

/* Social icons styling */
.social a {
    text-decoration: none; /* Remove underline from links */
}

.social i {
    font-size: 24px; /* Adjust icon size */
    color: #000; /* Set icon color, can be changed */
    padding: 8px; /* Add some padding inside the border */
    border: 2px solid #ccc; /* Border color and thickness */
    border-radius: 50%; /* Make the border circular */
    margin-right: 10px; /* Space between icons */
    transition: all 0.3s ease; /* Smooth transition for hover effect */
}

.social i:hover {
    color: #1DA1F2; /* Change icon color on hover */
    border-color: #1DA1F2; /* Change border color on hover */
}

.main-content {
    flex-grow: 1;
    padding: 20px;
}

#gallery h1 {
    font-size: 25px;
    color: #000000;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-right: 0px;
    margin-left: 2px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #e4e4e4;
    border-radius: 5px;
    cursor: pointer;
}

/* Lightbox styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black with opacity */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}