/* === FOOTER STYLES === */
footer {
    background-color: #0f2136; /* Dark blue */
    color: #adb5bd; /* Lighter text color for footer */
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #2c3e50; /* Slightly lighter border */
}

.footer-about h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4, .footer-connect h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}
.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-icons a {
    color: #adb5bd;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #3D90D7; /* Orange on hover for social icons */
}
.social-icons a:last-child {
    margin-right: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.85rem;
}
.footer-bottom p {
    margin: 0;
}

/* Responsive adjustments for Header/Footer - (You might have more detailed ones) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        padding-left: 0;
    }
    header nav ul li {
        margin-left: 0;
        margin-bottom: 5px;
        width: 100%;
    }
    header nav ul li a {
        display: block;
        padding: 8px 0;
    }
    .theme-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about, .footer-links, .footer-connect {
        margin-bottom: 20px;
    }
    /* .social-icons {
        justify-content: center; No, they are inline-block and center via text-align of parent
    } */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom p {
        margin-bottom: 5px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f4f8; /* Overall page background */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER STYLES === */
header {
    background-color: #0f2136; /* Dark blue */
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #e0e0e0;
    padding: 5px 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active { /* Style for the active link */
    color: #fff;
    font-weight: 500;
}




/* Gallery Page Specific Styles */

body {
    /* Ensure your global body style from main.css applies, like background-color */
    /* background-color: #f0f4f8; */
}

.gallery-page-content {
    padding-top: 40px; /* Space below header */
    padding-bottom: 60px; /* Space above footer */
    background-color: #ffffff; /* White background for the main content area */
}

#gallery-main h1 {
    font-size: 2.5rem;
    color: #0f2136;
    text-align: center;
    margin-bottom: 15px;
}

.gallery-intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.image-gallery-grid {
    display: grid;
    /* Default to 1 column for mobile, then adjust with media queries */
    grid-template-columns: 1fr;
    gap: 20px; /* Gap between images */
}

/* Small devices (e.g., phones in landscape) - 2 columns */
@media (min-width: 576px) {
    .image-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (e.g., tablets) and up - 3 columns */
@media (min-width: 768px) {
    .image-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px; /* Slightly larger gap for larger screens */
    }
}

/* Large devices (desktops) - can keep 3 or go to 4 if desired, 3 is specified in requirement */
/* @media (min-width: 992px) {
    .image-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
} */


.gallery-image-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    position: relative; /* For potential overlays or captions if added later */
    /* Aspect ratio to maintain shape before image loads, or for consistent item size */
    /* Common aspect ratios: 1/1 (square), 4/3, 3/2, 16/9 */
    aspect-ratio: 4 / 3; /* Or adjust to your images' common aspect ratio */
}

.gallery-image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 10; /* Bring hovered item to front */
}

.gallery-image-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the container, cropping if necessary */
    /* Use object-fit: contain; if you want to see the whole image and accept letterboxing */
    display: block; /* Remove extra space below image */
    transition: opacity 0.3s ease;
}

.gallery-image-item a:hover img {
    opacity: 0.8; /* Slight visual feedback */
}

/* Ensure header, footer, and global styles from your main.css are included */
/* For example: */
/*
header { ... }
footer { ... }
.container { ... }
*/