@import "css/global.css";

#races .content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#races .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#races .section-description {
    color: var(--description-color);
    font-size: 17px;
    line-height: 1.6;
}

.race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.race-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    image-rendering: pixelated;
    transition: 0.2s ease-in-out;
}

.race-grid img:hover {
    transform: scale(1.03);
}
.race-grid img:active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: min(900px, 90vw);
    max-height: 90vh;
    z-index: 1000;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.85);
}