.projects-grid {
    display: grid;
    grid-template-columns: 3fr 1.5fr 1.8fr;
    grid-auto-rows: minmax(200px, 1fr);
    gap: 2px;
}

.projects-grid__item {
    min-height: 180px;
}

.projects-grid__item--featured {
    grid-row: span 2;
}

.project-card {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    color: white;
    text-decoration: none;
}

.project-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.project-card__image img.no-image {
    object-fit: cover;
}

.project-card__body {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.project-card--featured .project-card__body {
    padding: 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.project-card__title {
    margin-bottom: 14px;
    font-family: robotobold, sans-serif;
    font-size: 22px;
    line-height: 1.27em;
}

.project-card--regular .project-card__title {
    font-size: 18px;
}

.project-card__row {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.46em;
}

.project-card__row-title {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.project-card__row-value b {
    font-size: 1.1em;
}

.project-card__row--muted {
    opacity: 0.9;
}

.project-card__more {
    position: absolute;
    right: 20px;
    bottom: 80px;
    display: inline-flex;
    align-items: center;
    color: white;
    font-family: robotomedium, sans-serif;
}

.project-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.5em;
    color: white;
    transition: all 250ms ease;
}

.project-card__more .project-link__icon {
    border-color: rgba(255, 255, 255, 0.5);
    margin-left: 12px;
}

.project-card__more .project-link__icon svg {
    fill: white;
}

.project-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    width: 38px;
    height: 38px;
    border: 1px solid #E1E9F0;
    border-radius: 2px;
    transition: all 250ms ease;
}

.project-link__icon svg {
    width: 20px;
    height: 15px;
    fill: #0064B8;
    transition: fill 250ms ease;
}

@media (hover: hover) {
    .project-card:hover .project-card__image img {
        transform: scale(1.02);
    }

    .project-card:hover .project-link__icon {
        background-color: #0064B8;
        border-color: #0064B8;
    }

    .project-card:hover .project-link__icon svg {
        fill: white;
    }
}

@media (max-width: 1299px) {
    .projects-grid {
        grid-auto-rows: minmax(190px, 1fr);
    }
}
@media (max-width: 1199px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid__item--featured {
        grid-row: span 1;
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .projects-grid__item--featured {
        grid-column: auto;
    }

    .project-card__body {
        padding: 20px;
    }

    .project-card--featured .project-card__body {
        padding: 22px;
    }
}

@media (min-width: 768px) {
    .project-card__title {
        font-size: 24px;
    }

    .project-card--regular .project-card__title {
        font-size: 20px;
    }

    .project-card__row {
        font-size: 15px;
    }

    .project-link__icon {
        width: 44px;
        height: 44px;
    }

    .project-link__icon svg {
        width: 24px;
        height: 18px;
    }
}
