.container {
    min-height: 80vh;
}

.grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.card {
    position: relative;
    /* Needed for absolute positioning of overlay */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    background: #000;
    aspect-ratio: 16/9;
}

.cardAviator:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    z-index: 1;
    /* Bring to front on hover */
}

.image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .overlay {
    opacity: 1;
}

.playIcon {
    width: 48px;
    height: 48px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.infoIcon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .container {
        padding: 5px;
    }
}