body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

h1 {
    line-height: 1; /* Adjust this value to reduce space */
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    background: #444;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    transition: color 0.2s ease;
    text-decoration: none;
    font-size: 1.5rem; /* Make links bigger */
    font-weight: bold;
}

nav ul li a:hover {
    color: #e8a269; /* Change color on hover */
}

section {
    padding-top: 5.5rem;   /* 100px */
    padding-left: 10rem;  /* 200px */
    padding-right: 10rem; /* 200px */
    text-align: left;
}

/* Adjust padding for smaller screens */
@media (max-width: 768px) { /* Tablets and smaller screens */
    section {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 4rem;
    }
}

@media (max-width: 480px) { /* Mobile devices */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 3rem;
    }
}

figure {
    /* text-align: left; Align the figure (image + caption) to the left */
    margin: 0rem 0 0.5rem 0; /* Add some spacing */
}

/* figure img { */
    /* max-width: 500px; /* Set a max width */
    /* width: 100%; Ensure responsiveness */
    /* height: auto; Keep aspect ratio */
    /* max-height: 480px; Set a max width */
    /* width: auto; */
    /* display: block; Remove extra spacing issues */
/* } */

figure img {
    max-width: 800px; /* Constrain width */
    max-height: 480px; /* Constrain height */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra spacing issues */
}

figcaption {
    margin-top: 0.5rem; /* Adds space between image and caption */
    margin-bottom: 4rem;
    font-size: 1.1rem; /* Slightly smaller text for captions */
    color: #181818; /* Optional: makes caption text slightly muted */
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    figure img {
        max-width: 90%; /* Reduce size for smaller screens */
    }
}

@media (max-width: 480px) {
    figure img {
        max-width: 100%; /* Allow full width on very small screens */
    }
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: absolute;
    width: 100%;
    bottom: 0;
}