/* Dania Bikes speed pass: rendering work for long sections below the first screen is skipped until they approach
   the viewport. contain-intrinsic-size reserves the measured height (390 px / 1440 px renders, 24 Oct 2026) and
   "auto" switches to the real height once a section has been rendered, so the scrollbar and anchors stay stable.
   No visual rule lives here. */
.db-footer,.db-home-section.db-banners,.db-home-section.db-departments,.db-home-section.db-brand-tiles,.db-store-band,
.db-mag-grid-section,.db-category-copy,section[aria-labelledby="db-shelf-newest"]{content-visibility:auto}
.db-footer{contain-intrinsic-size:auto 1340px}
.db-home-section.db-banners{contain-intrinsic-size:auto 260px}
.db-home-section.db-departments{contain-intrinsic-size:auto 435px}
.db-home-section.db-brand-tiles{contain-intrinsic-size:auto 384px}
.db-store-band{contain-intrinsic-size:auto 875px}
.db-mag-grid-section{contain-intrinsic-size:auto 4680px}
.db-category-copy{contain-intrinsic-size:auto 490px}
section[aria-labelledby="db-shelf-newest"]{contain-intrinsic-size:auto 455px}
@media (min-width:900px){
  .db-footer{contain-intrinsic-size:auto 532px}
  .db-home-section.db-banners{contain-intrinsic-size:auto 380px}
  .db-home-section.db-departments{contain-intrinsic-size:auto 476px}
  .db-home-section.db-brand-tiles{contain-intrinsic-size:auto 396px}
  .db-store-band{contain-intrinsic-size:auto 526px}
  .db-mag-grid-section{contain-intrinsic-size:auto 2035px}
  .db-category-copy{contain-intrinsic-size:auto 240px}
  section[aria-labelledby="db-shelf-newest"]{contain-intrinsic-size:auto 516px}
}

/* Product gallery: dania.js moves the extra photos into .db-thumbs after load. inc/performance.php prints the
   final `has-thumb-strip` class server-side, so the main photo starts at its final position; until the strip exists
   the not-yet-moved thumbnails are hidden. Removes the 0.12 desktop layout shift measured on the Madone page.
   The phone gallery is rebuilt by mobile.js (design in progress); its reservation belongs in mobile.css. */
/* mobile.js puts the photos back into the track as slides (.db-m-slider): never hide those. */
.has-thumb-strip:not(.db-m-slider) .woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image:not(:first-child){display:none}
/* inc/performance.php also prints .db-m-slider (phone-only rules), so on wider screens hide regardless. */
@media(min-width:900px){.has-thumb-strip .woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image:not(:first-child){display:none}}
/* commerce.js moves the wishlist pill and data labels from the summary onto the photo. Keep them out of the summary
   flow until then so the title, price and buy form do not jump up by ~36 px after the scripts run. */
.single-product div.product:has(.woocommerce-product-gallery)>.summary>.db-wish,
.single-product div.product:has(.woocommerce-product-gallery)>.summary>.db-badges{display:none}
