/* Fixes on top of Webflow's stylesheet (linked by scripts/build.py on every page). */

/* Dog card flip: Safari draws a face's own children through a hidden backface, so a flipped
   card showed the front (photo, name, breed) mirrored instead of the back. Hide the backface
   on both faces and everything inside them, prefixed for WebKit, and give the front face an
   explicit 3D transform so WebKit treats it as a plane in the flip. */
.pet-card-side,
.pet-card-side *,
.pet-card-side-2,
.pet-card-side-2 * {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.pet-card-side.is-front,
.pet-card-side-2.is-front {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
}

/* Dogs menu: every dog as a small photo tile instead of three breed cards. */
.car-nav-dogs .w-dyn-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}
.car-nav-dogs .w-dyn-item { width: auto; margin: 0; }
.car-nav-dogs .nav-pet-grid { max-width: none; text-align: center; }
.car-nav-dogs .navbar-featured-image { display: flex; justify-content: center; }
.car-nav-dogs .nav-link-box,
.car-nav-dogs .nav-link-style { width: auto; max-width: 100%; text-align: center; }
.car-nav-dogs .nav-image-style {
  width: 96px;
  height: 96px;
  object-fit: cover;
}
@media (max-width: 991px) {
  .car-nav-dogs .w-dyn-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .car-nav-dogs .nav-image-style { width: 72px; height: 72px; }
  .car-nav-dogs .nav-link-style { font-size: 1rem; }
}

/* The dog page's "Breed:" value links to that breed's page. */
.car-breed-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
