/* Basic Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* Light grey background for a clean look */
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1em;
    color: #222;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }

a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #000;
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.site-header h1 {
    margin: 0;
    font-size: 2em;
    display: inline-block;
    vertical-align: middle;
}

.site-header nav {
    display: inline-block;
    vertical-align: middle;
    margin-left: 30px;
}

.site-header nav ul {
    list-style: none;
}

.site-header nav ul li {
    display: inline-block;
    margin-left: 20px;
}

.site-header nav ul li a {
    font-weight: 400;
    font-size: 1.1em;
    padding: 5px 0;
}

/* Main Content Sections */
.main-content section {
    padding: 60px 0;
    text-align: center;
}

.main-content section:nth-child(even) {
    background-color: #f2f2f2; /* Alternate background for sections */
}

/* Photo Gallery Grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between images */
    padding-top: 40px;
    padding-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 8px; /* Slightly rounded corners */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 300px; /* Fixed height for consistent grid items */
    object-fit: cover; /* Crop images to fit, maintaining aspect ratio */
    display: block; /* Remove extra space below image */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* About and Contact Sections */
.about-section, .contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.about-section p, .contact-section p {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: #eee;
    color: #333;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

/* Modal/Lightbox Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh; /* Limit height to prevent overflow on small screens */
    object-fit: contain; /* Ensure the image fits within bounds */
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px; /* Space for caption */
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Responsive Design (Media Queries) */
@media (max-width: 768px) {
    .site-header h1 {
        display: block;
        margin-bottom: 10px;
    }
    .site-header nav {
        display: block;
        margin-left: 0;
    }
    .site-header nav ul li {
        margin: 0 10px;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .gallery-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }

    .gallery-item img {
        height: 200px;
    }

    .site-header h1 {
        font-size: 1.8em;
    }
    .site-header nav ul li a {
        font-size: 1em;
    }
}