/* --- Global Styles and Reset --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    
    /* 1. Make the background of the page to be #0E0F0C */
    background-color: #0E0F0C; 
    
    /* 4. All text color should be white */
    color: white; 
    
    /* 2. Center align on text on this page */
    text-align: center;
}

/* Header styling */
header {
    /* Removed background color for a flat look */
    padding: 20px;
    
    /* Halved the margin from 20px to 10px to reduce space above the gallery */
    margin-bottom: 10px;
}

/* 1. Match header font size to the caption font size (1.1em) */
header h1 {
    margin-bottom: 5px;
    color: white; 
    font-size: 1.1em; /* New size matching the caption */
    font-weight: bold; /* Keep it bold for visual hierarchy */
}

/* --- Gallery Container --- */
.gallery-container {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 5%; 
}

/* --- Image and Caption Styling --- */
.gallery-item {
    background-color: transparent; 
    border: none;
    
    margin-bottom: 40px; 
    padding: 0; 
    box-shadow: none;
}

/* --- The Magic for Responsive Image Fitting --- */
.gallery-item img {
    max-width: 100%; 
    max-height: 90vh; 
    height: auto;
    width: auto;
    display: block; 
    margin: 0 auto; 
}

.caption {
    /* Font size remains 1.1em (matching the new header size) */
    font-size: 1.1em; 
    
    padding: 0px 0 10px; 
    
    line-height: 1.4;
    font-style: normal;
    text-align: center;
    color: white; 
}


/* --- Footer Styling --- */
footer {
    background-color: transparent;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: white; 
    font-size: 0.9em;
}