/* Tart gallery: soft, no-layout-shift crossfade between the two real photos.
   Loaded after catalogue styles to prevent legacy hover zoom and transitions. */
.cakes-page.catalog-theme-small .tart-card .tart-card-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.cakes-page.catalog-theme-small .tart-card .tart-card-media img {
  transform: none !important;
}
.cakes-page.catalog-theme-small .tart-card .tart-card-media img.tart-cut-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 580ms ease-in-out;
}
.cakes-page.catalog-theme-small .tart-card .tart-card-media.is-cut img.tart-cut-image {
  opacity: 1;
}
.cakes-page.catalog-theme-small .tart-card .tart-card-media:focus-visible {
  outline: 3px solid #998176;
  outline-offset: -3px;
}

/* A tiny touch affordance replaces the large text label on narrow cards. */
@media (hover: none), (pointer: coarse) {
  .cakes-page.catalog-theme-small .tart-card .tart-card-media::after {
    content: "↔";
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(132,109,98,.20);
    border-radius: 50%;
    background: rgba(255,253,251,.92);
    color: #53433d;
    font: 650 13px/1 "Segoe UI",Inter,Arial,sans-serif;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cakes-page.catalog-theme-small .tart-card .tart-card-media img.tart-cut-image {
    transition: none;
  }
}
