/* Destination card treatment inspired by Ravi Katiyar's public 21st preview.
   https://21st.dev/@ravikatiyar162/components/card
   Independently implemented for the site's native destination links. */
.reco > h3 { margin-bottom: 18px; }
.reco-grid { display: grid; gap: 20px; }
.reco .reco-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius, 14px);
  background: #202623;
  color: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 10%);
  -webkit-tap-highlight-color: transparent;
}
.reco-card .reco-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.reco-card::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 82%), rgb(0 0 0 / 30%) 50%, rgb(0 0 0 / 4%));
  content: "";
  pointer-events: none;
}
.reco-card .reco-caption {
  position: absolute;
  z-index: 1;
  inset: auto 24px 24px;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.reco-card .reco-title {
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font: 400 1.875rem/1.15 "Fraunces", Georgia, serif;
  letter-spacing: -.015em;
  overflow-wrap: normal;
  transition: color .25s ease;
}
.reco-card:focus-visible { outline: 3px solid var(--red, #c7553d); outline-offset: 4px; }
.reco-card:focus-visible .reco-photo { transform: scale(1.1); }
.reco-card:focus-visible .reco-caption { transform: translateY(-8px); }
.reco-card:focus-visible .reco-title { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .reco-card:hover .reco-photo { transform: scale(1.1); }
  .reco-card:hover .reco-caption { transform: translateY(-8px); }
  .reco-card:hover .reco-title { color: #fff; }
}
@media (min-width: 541px) and (max-width: 900px) {
  .reco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .reco-card .reco-photo,
  .reco-card .reco-caption { transition: none; transform: none !important; }
  .reco-card .reco-title { transition: none; }
}
