/* General Setup */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    color: #1c1e21;
}

header {
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #d32f2f; /* A "warning" red color */
}

/* The Grid Layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* The Post Containers */
.post {
    background: #000; /* Black background for the screenshot frame */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease-in-out;
}

.post:hover {
    transform: scale(1.02);
}

/* Image Handling (Optimized for Tall Screenshots) */
.post img {
    width: 100%;
    height: 500px; /* Uniform height for the grid */
    object-fit: contain; /* Ensures the whole screenshot is visible */
    display: block;
}

/* Footer & Legal */
footer {
    text-align: center;
    padding: 60px 20px;
    font-size: 0.85rem;
    color: #65676b;
    line-height: 1.5;
}

footer strong {
    color: #333;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    header h1 { font-size: 1.8rem; }
    .post img { height: 400px; }
}