/* gallery.css */

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #34495e; /* Use the background color from the original styles */
    margin: 0;
    padding: 0;
    text-transform: none; /* Ensure no text-transform is applied to the body */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto; /* Add top margin to the container */
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Logo Styles */
.logo {
    padding: 10px;
    text-align: left; /* Align logo to the left */
    margin-bottom: 20px; /* Add space between logo and header */
}

.logo img {
    width: 100px;
    height: auto;
}

/* Header Styles */
header {
    width: 100%;
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
}

.search-bar input {
    padding: 5px;
    border-radius: 3px;
    border: none;
}

/* Main Content Area */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the main content */
}

/* Gallery Styles */
.gallery {
    padding: 20px;
    background-color: #f4f4f4;
    margin-bottom: 40px;
}

.gallery h2 {
    margin-bottom: 20px;
    text-align: center;
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.gallery-link {
    width: 150px; /* Set a fixed width for thumbnails */
    height: 150px; /* Set a fixed height for thumbnails */
    overflow: hidden; /* Hide overflow if image aspect ratio doesn't match */
    border-radius: 8px; /* Optional: rounded corners for thumbnails */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: add a subtle shadow */
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This will crop the image to fill the container */
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.1);
}

/* Footer Styles */
footer {
    width: 100%;
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-media, .footer-nav {
    display: flex;
    flex-direction: column;
}

.social-media h3, .footer-nav h3 {
    margin-bottom: 10px;
}

.social-media a, .footer-nav a {
    color: white;
    text-decoration: none;
    margin-bottom: 5px;
}

.social-media a:hover, .footer-nav a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-link {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .gallery-link {
        width: 100px;
        height: 100px;
    }
}