.dm-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 36px);
}
.dm-project-grid--medical { grid-template-columns: minmax(0, 1fr); }
.dm-project-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    background: #1b201a;
    color: #f5f7ee;
    border: 1px solid #434c3a;
    border-radius: 24px;
}
.dm-project-display {
    display: grid;
    place-items: center;
    padding: clamp(14px, 2vw, 28px);
    border-radius: 23px 23px 0 0;
    border-bottom: 1px solid #414a37;
    background: radial-gradient(ellipse at 90% 0%, #394532, transparent 66%), #252b23;
}
.dm-project-display:empty { display: none; }
.dm-project-display img.dm-project-art {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
    clip-path: none;
}
.dm-project-info {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    padding: clamp(20px, 2.4vw, 36px);
}
.dm-project-type {
    color: #cafa56;
    font-size: .83rem;
    line-height: 1.4;
    font-weight: 650;
}
.dm-project-card .dm-project-info h3 {
    font-size: clamp(24px, 2.3vw, 36px);
    line-height: 1.12;
    margin: 8px 0 12px;
    letter-spacing: -.04em;
}
.dm-project-card .dm-project-info h3 a {
    color: #f7f9f2;
    text-decoration: underline;
    text-decoration-color: #626e58;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}
.dm-project-card .dm-project-info h3 a:hover { text-decoration-color: #cafa56; }
.dm-project-card .dm-project-info p {
    color: #cbd1c5;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 20px;
    max-width: 60ch;
}
.dm-project-info .dm-action { margin-top: auto; }
.dm-project-card a:focus-visible { outline: 3px solid #cafa56; outline-offset: 4px; }
html.pwd-a11y-contrast .dm-project-card, html.pwd-a11y-contrast .dm-project-display { background: #000; border-color: #fff; }
@media (max-width: 700px) { .dm-project-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 767px) {
    .dm-home .dm-project-card :is(.dm-project-display, .dm-project-info) { padding: 15px; }
    .dm-home .dm-project-card .dm-project-info h3 { margin-block: 5px 8px; }
    .dm-home .dm-project-card .dm-project-info p { margin-block-end: 12px; }
}

@media (max-width: 480px) {
    body:has(.pwdmn-open) .ekit-template-content-header .ata-site-logo-img {
        max-width: min(100%, calc(100vw - 140px)) !important;
        height: auto !important;
    }
}
