/* babyteeth-static.css
 * Layout the Squarespace runtime used to apply with JavaScript, written as plain CSS.
 * Loaded after the site's own stylesheets. Built by sites/babyteeth-ionos-tools/build.py.
 */

/* Grid gallery blocks: square cells, image fitted inside (ImageLoader used to size these) */
.sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor { position: relative; overflow: hidden; }
.sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.sqs-gallery-block-grid .slide .margin-wrapper a.image-slide-anchor.content-fill img { object-fit: cover; }
.sqs-gallery-block-grid .sqs-gallery::after { content: ""; display: table; clear: both; }

/* Slideshow gallery block: one slide at a time, height from the image */
.sqs-gallery-block-slideshow .sqs-gallery { position: relative; }
.sqs-gallery-block-slideshow .sqs-gallery > .slide { display: none; position: relative; height: auto; }
.sqs-gallery-block-slideshow .sqs-gallery > .slide:first-child,
.sqs-gallery-block-slideshow .sqs-gallery > .slide.sqs-active-slide { display: block; }
.sqs-gallery-block-slideshow .sqs-gallery > .slide.sqs-gallery-design-stacked-slide:not(.sqs-active-slide) { display: none; }
.sqs-gallery-block-slideshow .sqs-gallery > .slide img { width: 100%; height: auto; display: block; }

/* System gallery pages: images cover the 3:2 frame (gallery-auto-crop) */
.sqs-system-gallery .slides .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sqs-system-gallery .thumbnail-wrapper .sqs-wrapper { white-space: nowrap; overflow-x: auto; overflow-y: hidden; height: 100%; }
.sqs-system-gallery .thumbnail-wrapper .thumbnail { display: inline-block; float: none !important; height: 100%; overflow: hidden; margin-right: 0; vertical-align: top; }
.sqs-system-gallery .thumbnail-wrapper .thumbnail img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
/* before the script runs, show the first slide rather than nothing */
.sqs-system-gallery.sqs-system-gallery-init { opacity: 1 !important; }

/* Image blocks: images are already sized by the component stylesheet; make sure they show */
.sqs-block-image-figure img, .image-block-wrapper img { opacity: 1 !important; }
.sqs-block-image-button.js-lightbox-trigger { cursor: zoom-in; }

/* Video blocks: the iframe now sits directly in the wrapper */
.embed-block-wrapper { position: relative; }
.sqs-video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.sqs-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Map blocks: keyless Google Maps embed */
.sqs-block-map .sqs-block-content { height: 100%; }
.bt-map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

/* Lightbox */
.bt-lightbox { position: fixed; inset: 0; z-index: 10000000; background: rgba(0, 0, 0, .95);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.bt-lightbox img { max-width: 92vw; max-height: 92vh; width: auto; height: auto; object-fit: contain; }
.bt-lightbox-close { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; font-size: 32px;
  line-height: 40px; color: #fff; background: transparent; border: 0; cursor: pointer; }
