body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #334155;
    padding: 2rem;
}

.container {
    max-width: 1200px;
}

h1 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

#grid-container {
    display: grid;
    gap: 2px;
    background-color: #cbd5e1;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
}

.grid-cell {
    background-color: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    word-wrap: break-word;
    padding: 0;
    height: 250px; /* Fixed height for image cells */
}

.grid-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #e2e8f0;
}

.header-cell {
    /*height: 300px; !* Fixed height for header cells *!*/
    background-color: #94a3b8;
    /*color: #f8fafc;*/
}

.header-cell .cell-content {
    padding: 1rem;
}

.corner-cell {
    background-color: #475569;
    color: #f8fafc;
    visibility: hidden; /* Hide the top-left corner cell */
}

.dog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.image-caption {
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Custom styles for responsiveness */
@media (max-width: 768px) {
    .grid-cell {
        font-size: 0.8rem;
        height: 120px;
    }
    .header-cell {
        height: 120px;
    }
}
