/* */
/* CSS for effects on the photo page */
/* */

body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f0f0f0; /* Light background */
}

.gallery-container { /* Add a new container */
    padding-left: 40px;
    padding-right: 40px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive columns */
    grid-gap: 20px;
    padding: 20px;
    max-width: 1600px;
    margin: 0 auto;
    justify-content: center; /* Center photos horizontally within grid cells */
    align-items: center; /* Center photos vertically within grid cells */ 
}

.gallery img {
    width: 100%;
    height: auto;
    display: block; /* Prevents small gap at bottom of images */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.gallery img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    cursor: pointer; /* Change cursor on hover */
}

/* Basic Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999; /* Ensure it's on top */
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Prevents image from being cropped */
    border-radius: 8px;
}

.lightbox.active {
    display: flex;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3em;
    color: white;
    cursor: pointer;
}