.nmw-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 768px) {
  .nmw-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .nmw-team-grid {
    gap: 2rem;
  }
  .nmw-team-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nmw-team-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .nmw-team-grid--cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.nmw-team-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}
.nmw-team-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.nmw-team-card__inner {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.nmw-team-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.nmw-team-card:hover .nmw-team-card__img {
  transform: scale(1.05);
}
.nmw-team-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 50%, transparent);
  pointer-events: none;
}
.nmw-team-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: 1rem;
}
@media (min-width: 768px) {
  .nmw-team-card__meta {
    padding: 1.25rem;
  }
}
.nmw-team-card__name {
  display: block;
  margin-bottom: 0.125rem;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .nmw-team-card__name {
    font-size: 1.25rem;
  }
}
.nmw-team-card__role {
  display: block;
  color: #e5e7eb;
  font-size: 0.875rem;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .nmw-team-card__role {
    font-size: 1rem;
  }
}
.nmw-team-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 51, 95, 0);
  transition: background-color 0.3s ease;
}
.nmw-team-card__hover svg {
  width: 2.5rem;
  height: 2.5rem;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nmw-team-card:hover .nmw-team-card__hover {
  background: rgba(0, 51, 95, 0.8);
}
.nmw-team-card:hover .nmw-team-card__hover svg {
  opacity: 1;
  transform: scale(1);
}
.nmw-team-card__cta {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  text-decoration: none;
}
.nmw-team-card__cta-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.nmw-team-card__cta-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nmw-team-card__cta-text {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding: 0 0.5rem;
  text-align: center;
}
.nmw-team-card__cta-name {
  display: block;
  font-family: var(--font-rock-salt, "Rock Salt", cursive);
  color: #0448e0;
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  font-weight: 700;
  line-height: 1.375;
}
.nmw-team-card__cta-role {
  display: block;
  font-family: var(--font-rock-salt, "Rock Salt", cursive);
  color: #0448e0;
  font-size: clamp(0.55rem, 1vw, 0.75rem);
  font-weight: 600;
  line-height: 1.375;
}

.nmw-team-card .nmw-team-card__img,
.nmw-team-card .nmw-team-card__cta-media img,
.nmw-pet-card .nmw-pet-card__img,
.nmw-pet-card .nmw-pet-card__cta-media img {
  width: 100%;
  height: 100%;
}

.nmw-pet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .nmw-pet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .nmw-pet-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nmw-pet-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .nmw-pet-grid--cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.nmw-pet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}
.nmw-pet-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.nmw-pet-card__inner {
  width: 100%;
  height: 100%;
}
.nmw-pet-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s ease;
}
.nmw-pet-card:hover .nmw-pet-card__img {
  transform: scale(1.1);
}
.nmw-pet-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 50%, transparent);
  opacity: 0.8;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.nmw-pet-card:hover .nmw-pet-card__gradient {
  opacity: 1;
}
.nmw-pet-card__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
}
.nmw-pet-card__name {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}
@media (min-width: 768px) {
  .nmw-pet-card__name {
    font-size: 1.125rem;
  }
}
.nmw-pet-card__cta {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  text-decoration: none;
  cursor: pointer;
}
.nmw-pet-card__cta-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.nmw-pet-card__cta-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nmw-pet-card__cta-text {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
  text-align: center;
}
.nmw-pet-card__cta--join-team .nmw-pet-card__cta-name {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-rock-salt, "Rock Salt", cursive);
  color: #0448e0;
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1.2;
}
.nmw-pet-card__cta--join-team .nmw-pet-card__cta-sub {
  display: block;
  margin-top: 0.2rem;
  padding: 0 0.25rem;
  color: #333333;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}
.nmw-pet-card__cta--default .nmw-pet-card__cta-name {
  display: block;
  font-family: var(--font-caveat, "Caveat", cursive);
  color: #004ae8;
  font-size: 1.1rem;
  font-weight: 600;
}
.nmw-pet-card__cta--default .nmw-pet-card__cta-sub {
  display: block;
  margin-top: 0.125rem;
  color: #374151;
  font-size: 10px;
  line-height: 1.25;
  white-space: pre-wrap;
}
@media (min-width: 768px) {
  .nmw-pet-card__cta--default .nmw-pet-card__cta-sub {
    font-size: 11px;
  }
}
