.case-hero {
    padding: 100px 0 32px;
}

.case-hero__grid {
    display: grid;
    gap: 32px 48px;
    grid-template-columns: 1fr minmax(240px, 300px);
    align-items: start;
}

.case-hero h1 {
    margin: 12px 0 16px;
}

.case-hero__lead {
    max-width: 560px;
    color: var(--paper);
    font-size: 1.05rem;
    line-height: 1.45;
}

.case-hero__about {
    max-width: 560px;
    margin-top: 12px;
    color: var(--paper-soft);
    font-family: var(--sans);
    font-size: 0.98rem;
    line-height: 1.5;
}

.case-hero__actions {
    display: flex;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.case-hero__art {
    position: relative;
    width: 100%;
    max-width: 300px;
    border: 1px solid var(--line);
    background: #121514;
}

.case-hero__art img {
    width: 100%;
    height: auto;
    display: block;
}

.section--gallery {
    padding-top: 24px;
}

.gallery-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    background: #121514;
    aspect-ratio: 4 / 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms ease;
}

.gallery-item::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(ellipse 78% 78% at 50% 50%, transparent 38%, rgba(15, 16, 15, 0.75) 100%),
        linear-gradient(to bottom, rgba(15, 16, 15, 0.55) 0%, transparent 20%, transparent 80%, rgba(15, 16, 15, 0.6) 100%),
        linear-gradient(to right, rgba(15, 16, 15, 0.45) 0%, transparent 16%, transparent 84%, rgba(15, 16, 15, 0.45) 100%);
    transition: opacity 500ms ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

@media (max-width: 900px) {
    .case-hero__grid {
        grid-template-columns: 1fr;
    }

    .case-hero__art {
        width: min(300px, 72vw);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 3 / 4;
    }
}
