/* For smaller screens, adjust layout */
@media (max-width: 768px) {
    header {
        width: 100%;
        height: auto;
        position: relative;
    }
    main {
        margin-left: 0;
        padding-top: 20px;
    }
    footer {
        width: 100%;
        left: 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Apply Montserrat font to the entire body */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    color: #FFF;
    font-size: 16px; /* Set a base font size */
}

/* Header styling */
header {
    background: #000;
    color: #fff;
    width: 250px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    font-size: 1rem; /* Use rem for consistency */
}

/* Logo styling */
header .logo img {
    margin: 20px 0;
    width: 200px;
}

/* Navigation styling */
nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

nav ul li {
    width: 100%;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    width: 100%;
}

nav ul li a:hover {
    background: #555;
}

/* Main content area */
main {
    margin-left: 250px;
    padding: 20px;
    padding-bottom: 15vh;
    flex: 1;
    background: url('background.jpg');
    background-size: cover;
}

/* Gallery section styling */
#gallery {
    padding: 20px;
}
#gallery h1 {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem; /* Increased readability */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

/* Lightbox styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox-content {
    display: flex;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-sizing: border-box;
}

.lightbox-img {
    max-width: 60%; /* Adjust as needed */
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px 0 0 8px; /* Rounded corners on the image side */
}

.lightbox-blurb {
    padding: 20px;
    color: #fff;
    max-width: 40%; /* Adjust as needed */
    box-sizing: border-box;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5); /* 50% opacity background */
    border-radius: 0 8px 8px 0; /* Rounded corners on the blurb side */
    display: flex;
    justify-content: center;
    align-items: center; /* Center content vertically */
    text-align: center; /* Center text horizontally */
    flex: 1; /* Allow the blurb to take up remaining space */
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem; /* Use rem for consistency */
    font-weight: bold;
    cursor: pointer;
}

/* Footer styling */
footer {
    font-size: 1rem; /* Use rem for consistency */
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: calc(100% - 250px);
    position: fixed;
    bottom: 0;
    left: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

footer .social-media {
    display: flex;
    gap: 100px;
    margin-top: 10px;
}

footer .social-media a {
    color: #fff;
    text-decoration: none;
}

footer .social-media a:hover {
    text-decoration: underline;
}
