/* --- Global Styles --- */
:root {
    --primary-color: #333; /* Dark text/background */
    --secondary-color: #f4f4f4; /* Light background */
    --accent-color: #007bff; /* Button/Highlight color (e.g., a blue) */
    --font-family: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

/* --- Header & Navigation --- */
header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Sticky nav bar */
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: white;
    padding: 0.5rem 1rem;
    transition: background 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Section Styling --- */
main section {
    padding: 4rem 5%;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: url('hero.jpg') no-repeat center center/cover;
    color: white;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #0056b3;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.about-content p {
    flex: 1;
    min-width: 300px;
}

/* --- Gallery Styling --- */
.gallery-section {
    background-color: white;
}

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 2rem;
}

.filter-buttons button {
    background: var(--secondary-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    background: var(--primary-color);
    color: white;
}

/* Gallery Grid Layout (Key for Photo/Video Display) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video specific styling */
.gallery-item iframe {
    width: 100%;
    /* Keep video aspect ratio (16:9) */
    aspect-ratio: 16 / 9; 
    display: block;
}


/* --- Footer & Contact --- */
.contact-section {
    background-color: var(--secondary-color);
}

.contact-details {
    margin-top: 20px;
    line-height: 2;
}

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}


/* --- Responsiveness (Media Queries) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li a {
        padding: 0.5rem 0.75rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        justify-content: center;
        text-align: center;
    }

    .profile-pic {
        margin: 0 auto 15px auto;
    }

    /* Adjust grid for smaller screens */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Style for hidden items (used by JS for filtering) */
.hidden {
    display: none !important;
}

/* --- Lightbox Styles (NEW) --- */

.lightbox-modal {
    /* Fixed position to cover the entire viewport */
    display: none; 
    position: fixed; 
    z-index: 2000; /* Ensure it's on top of everything */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    height: auto; /* Allow content to dictate height */
}

/* Style for image inside the lightbox */
.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh; /* Limit height to 85% of viewport height */
    object-fit: contain;
}

/* Style for video iframe inside the lightbox */
.lightbox-content iframe {
    width: 100%;
    /* Maintain 16:9 aspect ratio */
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 10vh;
}

.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;
}

/* Ensure gallery images are clickable pointers */
.photo-grid img {
    cursor: pointer;
}