/* A common display baseline without altering Tamara's photographed cakes. */
.bakery-home .cake-marquee {padding-top:12px;}
.bakery-home .cake-marquee-group {gap:30px;padding-right:30px;}
.bakery-home .cake-photo {width:clamp(285px,25vw,355px);}
.bakery-home .cake-photo-stage {height:320px;align-items:end;}
.bakery-home .cake-photo .cake-photo-stage .cake-photo-product {
  max-height:320px;object-position:center bottom;
  filter:drop-shadow(0 7px 6px #664a5817);
}
.bakery-home .cake-photo[data-presentation="portrait-cutout"] .cake-photo-stage .cake-photo-product {padding:0 22px;}
.bakery-home .cake-photo[data-presentation="detail-cutout"] .cake-photo-stage .cake-photo-product {padding:8px 12px 0;}
.bakery-home .cake-photo[data-presentation="wide-cutout"] {width:clamp(335px,31vw,440px);}
.bakery-home .cake-photo[data-presentation="cutout"] .cake-photo-stage .cake-photo-product {padding:12px 4px 0;}
.bakery-home .cake-photo>span {display:block;min-height:1.4em;margin-top:22px;font-size:20px;line-height:1.4;color:var(--boutique-rose);}
.bakery-home .cake-photo .cake-photo-stage::after {
  left:50%;bottom:1px;width:var(--product-contact-width,52%);height:8px;
  transform:translateX(-50%);background:radial-gradient(ellipse,#6a4a581c,transparent 72%);filter:blur(3px);
}
@media(max-width:700px) {
  .bakery-home .cake-marquee {scrollbar-width:none;}
  .bakery-home .cake-marquee::-webkit-scrollbar {display:none;}
  .bakery-home .cake-photo {width:255px;}
  .bakery-home .cake-photo[data-presentation="wide-cutout"] {width:300px;}
  .bakery-home .cake-photo-stage {height:260px;}
  .bakery-home .cake-photo .cake-photo-stage .cake-photo-product {max-height:260px;}
  .bakery-home .cake-marquee-group {gap:20px;padding-right:20px;}
  .bakery-home .cake-photo>span {font-size:19px;margin-top:18px;}
}

/* Give every source a deliberate stage; never distort or crop the cake. */
.bakery-home .cake-photo[data-presentation="photograph"] .cake-photo-stage,
.bakery-home .cake-photo[data-presentation="wide"] .cake-photo-stage {
  align-items:center;justify-content:center;padding:22px;
  background:radial-gradient(ellipse at center,#fffaf5ba,transparent 74%);
}
.bakery-home .cake-photo[data-presentation="photograph"] .cake-photo-stage .cake-photo-product,
.bakery-home .cake-photo[data-presentation="wide"] .cake-photo-stage .cake-photo-product {
  width:100%;height:100%;max-height:276px;object-fit:contain;object-position:center;
  filter:none;box-shadow:none;border-radius:0;
}
.bakery-home .gallery-footer {
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  margin:36px auto 0;padding-top:20px;border-top:1px solid #d9c7c870;
}
.gallery-footer p {font:12px/1.8 var(--sans,Arial,sans-serif);margin:0;}
.gallery-footer #gallery-saved-count {display:block;color:var(--boutique-ink);font:600 12px/1.6 var(--sans);}
.gallery-footer [hidden] {display:none!important;}
.gallery-request-summary {text-align:right;}
.gallery-guidance-mobile {display:none;}
.bakery-home .gallery-footer .text-button {flex-shrink:0;min-height:44px;}
.bakery-lightbox .cake-detail-browse {background:none;border:0;border-bottom:1px solid #cbb4be;border-radius:0;color:var(--boutique-muted);box-shadow:none;font:500 12px/1.6 var(--sans);min-height:44px;margin-top:4px;padding:8px 0;}
@media(max-width:700px) {
  .bakery-home .gallery-footer {align-items:flex-start;gap:12px;flex-direction:column;margin-top:24px;}
  .gallery-request-summary {text-align:left;}
  .gallery-guidance-mobile {display:block;}
  .gallery-guidance-desktop {display:none;}
  .bakery-home .cake-photo[data-presentation="photograph"] .cake-photo-stage .cake-photo-product,
  .bakery-home .cake-photo[data-presentation="wide"] .cake-photo-stage .cake-photo-product {max-height:216px;}
  .bakery-home .collection-intro {font-size:12px;max-width:38ch;}
}

/* Native phone scrolling and automatic travel share one position. A leading
   copy gives swipes room in either direction; only the original is tabbable. */
.bakery-home .cake-marquee-group.gallery-leading-copy {display:none;}
@media (max-width:700px) {
  body .bakery-home .cake-marquee[data-native-gallery] {
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:none;scroll-behavior:auto;
    touch-action:pan-x pan-y pinch-zoom;overscroll-behavior-x:contain;overflow-anchor:none;
  }
  body .bakery-home .cake-marquee[data-native-gallery] .cake-photo {scroll-snap-align:none;}
  body .bakery-home .cake-marquee[data-native-gallery] .cake-marquee-track {
    animation:none;transform:none;will-change:auto;
  }
}
@media (max-width:700px) and (prefers-reduced-motion:no-preference) {
  body .bakery-home .cake-marquee[data-native-gallery] .cake-marquee-group[aria-hidden="true"] {display:flex;}
}
.bakery-home .cake-marquee-track[data-motion-paused="true"],
.bakery-home .cake-marquee:has(.cake-photo:focus-visible) .cake-marquee-track {animation-play-state:paused;}
body:has(dialog[open]) .bakery-home .cake-marquee-track {animation-play-state:paused;}

/* Display the full cake area of the original portrait films without letterboxing. */
.bakery-home .cake-photo[data-presentation="film-still"] .cake-photo-stage {padding:0;}
.bakery-home .cake-photo[data-presentation="film-still"] .cake-photo-stage .cake-photo-product {
 width:225px;height:300px;max-height:none;object-fit:cover;object-position:center;
 filter:none;border-radius:3px;padding:0;
}
.bakery-home .cake-photo[data-presentation="film-still"] .cake-photo-stage::after {display:none;}
@media(max-width:700px) {
 .bakery-home .cake-photo[data-presentation="film-still"] .cake-photo-stage .cake-photo-product {width:180px;height:240px;}
}
