.wp-block-gallery .wp-block-image,
.gallery .gallery-item,
.elementor-image-gallery .gallery-item,
.elementor-gallery__container .elementor-gallery-item,
.wp-block-jetpack-tiled-gallery .tiled-gallery__item {
  overflow: hidden;
  border-radius: 12px;
  background: #17171b;
}
.wp-block-gallery img,
.gallery .gallery-item img,
.elementor-image-gallery .gallery-item img,
.elementor-gallery__container .elementor-gallery-item img,
.wp-block-jetpack-tiled-gallery .tiled-gallery__item img {
  cursor: zoom-in;
  transition: transform .5s cubic-bezier(.2,.65,.3,1), filter .35s;
}
@media (hover:hover) and (pointer:fine) {
  .wp-block-gallery .wp-block-image:hover img,
  .gallery .gallery-item:hover img,
  .elementor-image-gallery .gallery-item:hover img,
  .elementor-gallery__container .elementor-gallery-item:hover img,
  .wp-block-jetpack-tiled-gallery .tiled-gallery__item:hover img {
    transform: scale(1.035);
    filter: brightness(1.06);
  }
}
.lft-gallery-viewer {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: #101014;
  color: #fff;
  z-index: 2147483647;
}
.lft-gallery-viewer::backdrop { background: #101014; }
.lft-gallery-viewer[open] { display: flex; flex-direction: column; gap: 12px; }
.lft-gallery-viewer__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lft-gallery-viewer button {
  background: #303038;
  color: #fff;
  border: 1px solid #666;
  border-radius: 8px;
  min-width: 46px;
  min-height: 46px;
  padding: 8px 14px;
  font: 600 16px/1.3 Arial,sans-serif;
  cursor: pointer;
}
.lft-gallery-viewer button:focus-visible { outline: 3px solid #ff4665; outline-offset: 3px; }
.lft-gallery-viewer__stage { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; touch-action: pan-y pinch-zoom; }
.lft-gallery-viewer__stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: 0; }
.lft-gallery-viewer__nav { display: flex; justify-content: center; align-items: center; gap: 18px; }
.lft-gallery-viewer__count { font: 16px Arial,sans-serif; min-width: 60px; text-align: center; }
@media (max-width:480px) { .lft-gallery-viewer { padding: 12px; padding-bottom: max(12px,env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion:reduce) {
  .wp-block-gallery img,.gallery .gallery-item img,.elementor-image-gallery img,.elementor-gallery__container img,.wp-block-jetpack-tiled-gallery img { transition: none!important; transform: none!important; }
}

