.ncssr-routine {
  position: relative;
  aspect-ratio: 2500 / 1042;
  min-height: 420px;
  max-height: 620px;
  overflow: hidden;
  background: #111111;
  color: #ffffff;
}

.ncssr-routine__media {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  color: transparent;
  text-decoration: none;
}

.ncssr-routine__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}

.ncssr-routine:hover .ncssr-routine__media img {
  transform: scale(1.015);
}

.ncssr-routine__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  text-align: center;
  pointer-events: none;
}

.ncssr-routine__copy a {
  pointer-events: auto;
}

.ncssr-routine__title {
  margin: 0 !important;
  color: #ffffff !important;
  font-family: var(--ncssr-font) !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .ncssr-routine {
    aspect-ratio: 1 / 1;
    min-height: 390px;
    max-height: none;
  }

  .ncssr-routine__copy {
    gap: 13px;
  }

  .ncssr-routine__title {
    font-size: 20px !important;
  }
}
