/* Gallery for the recovered Novosibirsk portfolio. */
.works-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 576px) {
    .works-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .works-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

.works-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.works-card__cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #085580;
}

.works-card__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.works-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
}

.works-card .works-card__body h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.works-card a.works-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    margin-top: auto;
    padding: 8px 14px;
    border-radius: 5px;
    background: #085580;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.works-card a.works-card__action:hover {
    background: #063f60;
    color: #fff;
}

.works-card a.works-card__action:focus-visible {
    outline: 2px solid #085580;
    outline-offset: 3px;
}

.works-article {
    max-width: 74ch;
    margin: 24px 0 0;
}

.works-article summary {
    color: #085580;
    cursor: pointer;
    font-weight: 700;
    padding-block: 12px;
}
