body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

section,
nav,
article,
header,
footer {
    margin-bottom: 2rem;
}

/* Add nice spacing between sections */
h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 0 1rem;
    }
}

:root {
    --primary-color: #3a7ca5;
    --secondary-color: #16425b;
    --accent-color: #81c3d7;
    --background-color: #f5f5f0; /* Off-white background */
    --title-color: #b22222; /* Boy scout red */
    --border-color: #5E452A; /* Dark brown */
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 2rem 0;
}

h1 {
    color: var(--title-color);
    margin-top: 1.5rem;
    font-size: 2.8rem;
    font-family: 'ITC Avant Garde Gothic', 'Avantgarde', 'Century Gothic', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    color: var(--primary-color);
    margin-top: 1.2rem;
    font-size: 1.8rem;
}

video {
    display: block;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.project-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid var(--border-color);
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project a {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-left: 28px;
}

.project a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233a7ca5'%3E%3Cpath d='M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.project a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.date {
    color: #777;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 1rem;
    color: #777;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .project-box {
        width: 90%;
    }
    
    video {
        width: 100%;
        max-width: 300px;
    }
}

/* Base styles for the body and content centering */
body {
    max-width: 800px; /* Control the maximum width of content */
    margin: 0 auto; /* Center the content horizontally */
    padding: 0 2rem; /* Add padding on the sides */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Image gallery styles for single column layout */
.image-gallery {
    display: flex;
    flex-direction: column; /* Stack images vertically */
    gap: 2rem; /* Space between images */
    margin: 2rem 0; /* Margin above and below the gallery */
}

/* Figure styles (image container) */
figure {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Image styles */
img {
    width: 100%; /* Make images take full width of their container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove any inline spacing */
    max-height: 600px; /* Optional: limit maximum height */
    object-fit: contain; /* Ensures the image fits within its box */
    border-radius: 12px; /* Add rounded corners */
    overflow: hidden; /* This ensures the rounded corners are visible */

}

/* Caption styling */
figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    text-align: center;
}