/* Basic Page Styles */
body,
html {
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
    background-color: white;
    color: black;
}


/* Overlay Styling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Semi-transparent black */
    z-index: 1;
    /* Ensure it's above other content */
    display: none;
    /* Hidden by default */
}

/* Main Content Container */
.studies-page {
    text-align: center;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    /* Ensures the entire page is centered horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers child elements horizontally */

}

.studies-page h2 {
    text-transform: uppercase;
    font-size: 30px;
    font-weight: bold;
}

.subtitle {
    margin: -10px 0 40px;
    text-transform: uppercase;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Adjust column sizes based on available space */
    gap: 20px;
    margin: 0 auto;
    /* Center the grid horizontally */
    max-width: 1200px;
    /* Prevent the grid from becoming too wide */
    width: 100%;
    /* Ensure the grid adapts to smaller screens */
}


}

.grid-item {
    overflow: hidden;


}



/* Show the overlay when hovering on the dropdown */
.dropdown:hover ~ .overlay {
    display: block;
}


.grid-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;

}

.grid-item img:hover {
    transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    margin: auto;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.nav-buttons {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
}

.nav-buttons .prev,
.nav-buttons .next {
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0 20px;
    user-select: none;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 1); /* Add text shadow for better visibility */
}