/* Base page layout and centering */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

/* Main page container constraints */
.page-container {
    width: 800px;
    border: 24px solid teal;
    background-color: #00FFee;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Gallery content area */
.gallery-content {
    padding: 20px;
    flex-grow: 1;
}

/* Grid layout for 3 columns per row */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Individual column/card styling */
.gallery-item {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Ensures image fills the column width */
.gallery-item a {
    display: block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s;
}

/* Subtle hover effect for the image links */
.gallery-item img:hover {
    transform: scale(1.02);
}

/* Caption styling below the image */
.caption {
    padding: 12px;
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: #333;
    background-color: #ffffff;
    font-weight: bold;
}

/* Footer styling */
footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 15px 20px;
    margin-top: auto;
    font-size: 14px;
}
