/* task6.css - Standalone CSS Grid Styles */

body { font-family: sans-serif; background: #fff; padding: 20px; }

.grid-gallery {
    display: grid;
    /* This creates a grid where columns are at least 150px but fill the space */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 150px; /* Each row is 150px tall */
    gap: 15px;
}

.item {
    background-color: #52b788;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 5px;
}

/* Demonstrating Grid Span */
.wide {
    grid-column: span 2; /* Takes up 2 columns */
    background-color: #1b4d3e;
}

.tall {
    grid-row: span 2; /* Takes up 2 rows */
    background-color: #2d6a4f;
}