/* Client supplies finished team photos (not cutouts); strip the themed
   background pattern from team cards and let the photo fill the card. */
.team .hover-card__image,
.team .hover-card__image.themed-bg {
    background: none;
    padding-top: 0;
}

.team .hover-card__image.themed-bg::after {
    display: none;
}

.team .hover-card__image img {
    position: absolute;
    inset: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: none;
}

.team .hover-card__image img.reveal-bottom {
    transform: translateY(140px);
}

.team .hover-card__image img.reveal-bottom.visible {
    transform: translateY(0);
}

.team .hover-card:hover .hover-card__image img,
.team .hover-card:focus-within .hover-card__image img {
    transform: translateY(-4%);
}

.team .hover-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
}
