/* Applies only to newly opted-in native galleries. */
.jo-page .jo-justified-gallery.jo-justified-gallery--complete .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jo-page .jo-justified-gallery--complete .gallery:not(.jo-justified-ready) .gallery-item {
  flex: 1 1 240px;
  width: auto;
  max-width: none;
  margin: 0 !important;
}
.jo-page .jo-justified-gallery--complete .gallery:not(.jo-justified-ready) img {
  height: 210px;
  aspect-ratio: auto;
  object-fit: cover;
}
.jo-justified-gallery--complete .gallery.jo-justified-ready {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
}
.jo-justified-gallery--complete .gallery.jo-justified-ready .gallery-item {
  flex: 0 0 auto;
  max-width: none;
  margin: 0 !important;
  padding: 0;
}
.jo-justified-gallery--complete .gallery.jo-justified-ready .gallery-icon,
.jo-justified-gallery--complete .gallery.jo-justified-ready .gallery-icon a {
  display: block;
  width: 100%;
  height: 100%;
}
.jo-justified-gallery--complete .gallery.jo-justified-ready img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.jo-justified-gallery--complete .gallery-caption {
  display: none;
}
body.jo-gallery-lightbox--no-captions .elementor-lightbox .elementor-slideshow__title,
body.jo-gallery-lightbox--no-captions .elementor-lightbox .elementor-slideshow__description {
  display: none;
}

/* Approved borderless photographs; override the native shortcode ID rule. */
.jo-page .jo-justified-gallery--complete .gallery img { border: 0 !important; }
