.navcards-grid {
display: grid;
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
grid-auto-rows: minmax( 3rem, auto );
grid-gap: var( --space-xs );
}
.navcards-grid a.external {
background-image: none;
}
.nav-card {
position: relative;
padding: 3em;
border-radius: 8px;
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.04 ), 0 3px 6px rgba( 0, 0, 0, 0.0575 );
font-size: 0.875rem;
overflow: hidden;
background: #242a31;
border: 0;
}
.nav-card__label {
color: var( --color-subtle );
font-size: 0.8125rem;
letter-spacing: 0.75px;
}
.nav-card__background {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #242a31;
border-radius: 8px;
}
.nav-card__background:after {
position: absolute;
pointer-events: none;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: block;
background: #000;
content: "";
opacity: 0.4;
}
.nav-card__active:after {
background: var(--color-progressive--active);
}
.nav-card__background picture,
.nav-card__background img {
width: 100%;
height: 100%;
}
.nav-card__background img {
object-fit: cover;
object-position: center;
}
.nav-card__foreground {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
padding: var( --space-md );
display: flex;
flex-direction: column;
justify-content: center;
gap: var( --space-xxs );
color: #fff;
line-height: var( --line-height-xxx-small );
pointer-events: none;
font-weight: var( --font-weight-medium );
}
.nav-card a {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
padding: 0 var( --space-md );
background: transparent;
color: #fff;
font-weight: 500;
}
.nav-card .nav-card__background a {
padding: 0;
}
.nav-card img {
transition: transform 0.2s ease;
}
.nav-card:hover img {
transform: scale(1.1);
}