/* ===================================
   HOMEPAGE - Project Grid
   Geometric grid layout for project thumbnails
   =================================== */

.content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Increased from 2px for better spacing */
    justify-content: center;
    margin-top: 80px; /* More space from header */
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.content figure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
}

.content img {
    width: 100%;
    height: 100%; /* Force specific height */
    aspect-ratio: 16 / 9;
    object-fit: cover; /* Scale to fill */
    object-position: center;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

/* Ensure figure container maintains aspect ratio */
.content figure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
}

/* Force all image containers to same aspect ratio */
.content figure a {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.content img:hover {
    transform: scale(1.01);
    border-color: rgba(0, 0, 0, 0.3);
}

.content figcaption {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 11px;
    color: #666;
    font-family: "DotMatri", sans-serif;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-title {
    text-align: left;
    color: #000;
}

.company-name {
    text-align: right;
    color: #999;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
    .content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .content {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
}