/* Base Styling */
body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #e0e0e0; /* Light gray background for contrast */
    color: #333;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

/* Header Styling */
header {
    background: #003366; /* Dark Blue Marine for the header */
    color: #fff;
    padding: 20px 10%;
    text-align: center;
    font-family: 'Roboto Slab', serif; /* Fancy font for header */
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    background-color: #004080; /* Slightly lighter blue for buttons */
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a:focus {
    background-color: #00509e; /* Hover color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Section Styling */
section {
    padding: 30px 10%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #003366; /* Dark Blue Marine for section headings */
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif; /* Fancy font for section headings */
}

/* Gallery Styling */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.gallery figure {
    text-align: center;
    width: calc(33.333% - 20px); /* Adjust width for responsive layout */
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery figcaption a {
    color: #003366; /* Dark Blue Marine for image titles */
    text-decoration: none;
    font-weight: bold;
    font-family: 'Roboto Slab', serif; /* Fancy font for image titles */
}

.gallery figcaption a:hover {
    text-decoration: underline;
}

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
    overflow: auto; /* Enable scroll if needed */
    text-align: center; /* Center content */
}

.lightbox-content {
    display: block;
    width: 80%; /* Adjusted for better visibility */
    max-width: 90%; /* Set max width */
    max-height: 90vh; /* Set max height */
    margin: auto; /* Center horizontally */
    border-radius: 8px;
    background-color: #fff; /* White background */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#caption {
    margin: 20px auto;
    display: block;
    width: 80%; /* Center text */
    max-width: 80%; /* Set max width */
    text-align: center;
    color: #333; /* Adjusted for readability */
    padding: 10px 0;
}

.lightbox-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.back-to-home {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-to-home:hover {
    background-color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
/* Corner Logo Styles */
.corner-logo {
    position: fixed; /* Use fixed positioning to ensure it stays in the corner even when scrolling */
    top: 10px;
    right: 10px;
    max-width: 70px; /* Adjust the size of the corner logo */
    height: auto; /* Maintain aspect ratio */
    z-index: 1000; /* Ensure it stays on top of other elements */
}
