.roweryhotthree {
  --roweryhotthree-radius: 1rem;
  --roweryhotthree-gap: clamp(1rem, 2vw, 1.5rem);
  margin-block: clamp(1.5rem, 3vw, 3rem);
}

.roweryhotthree__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--roweryhotthree-gap);
}

.roweryhotthree__card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  color: #fff;
  background: #17212b;
  border-radius: var(--roweryhotthree-radius);
  box-shadow: 0 0.4rem 1.4rem rgb(15 30 45 / 10%);
  isolation: isolate;
}

.roweryhotthree__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.roweryhotthree__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(8 20 32 / 4%) 20%, rgb(8 20 32 / 84%) 100%),
    linear-gradient(90deg, rgb(8 20 32 / 20%), transparent 65%);
  transition: background-color 240ms ease;
}

.roweryhotthree__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: clamp(1.1rem, 2.5vw, 2rem);
}

.roweryhotthree__title {
  margin: 0;
  color: inherit;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.roweryhotthree__subtitle {
  margin: 0.35rem 0 0;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 550;
  line-height: 1.25;
}

.roweryhotthree__main-link {
  color: inherit;
  text-decoration: none;
}

.roweryhotthree__main-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
}

.roweryhotthree__main-link:focus-visible::after {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.roweryhotthree__links {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.roweryhotthree__link {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  color: #122235;
  background: rgb(255 255 255 / 94%);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.roweryhotthree__link:hover,
.roweryhotthree__link:focus-visible {
  color: #fff;
  background: #1764ad;
  border-color: #1764ad;
  transform: translateY(-2px);
}

@media (hover: hover) {
  .roweryhotthree__card:hover .roweryhotthree__image {
    transform: scale(1.045);
  }
}

@media (max-width: 767.98px) {
  .roweryhotthree__grid {
    grid-template-columns: 1fr;
  }

  .roweryhotthree__card {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roweryhotthree__image,
  .roweryhotthree__link {
    transition: none;
  }
}
