/* Tile-only crop effect. No image sizing, no masonry geometry changes. */
.chakras-managed-gallery > .chakras-gallery-tile.c7gzi-zoomed,
.media-highlight-media > .chakras-gallery-tile.c7gzi-zoomed {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
}
.chakras-managed-gallery > .chakras-gallery-tile.c7gzi-zoomed::after,
.media-highlight-media > .chakras-gallery-tile.c7gzi-zoomed::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background-image: var(--c7gzi-photo) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  transform-origin: var(--c7gzi-focus-x, 50%) var(--c7gzi-focus-y, 50%) !important;
  transform: scale(var(--c7gzi-scale, 1)) !important;
}
.chakras-gallery-tile.c7gzi-zoomed > .chakras-gallery-title,
.chakras-gallery-tile.c7gzi-zoomed > .chakras-gallery-play,
.chakras-gallery-tile.c7gzi-zoomed > .gallery-play {
  position: absolute;
  z-index: 2 !important;
}
/* Preserve the existing Gallery Studio thumbnail shape when overlay zoom is used. */
.chakras-managed-gallery > .tile-shape-circle.c7gzi-zoomed::after { clip-path: circle(48% at 50% 50%) !important; }
.chakras-managed-gallery > .tile-shape-arch.c7gzi-zoomed::after { clip-path: ellipse(50% 76% at 50% 75%) !important; }
.chakras-managed-gallery > .tile-shape-hex.c7gzi-zoomed::after { clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%) !important; }
.chakras-managed-gallery > .tile-shape-angled.c7gzi-zoomed::after { clip-path: polygon(12% 0,100% 0,88% 100%,0 100%) !important; }
.chakras-managed-gallery > .tile-shape-wave.c7gzi-zoomed::after { clip-path: polygon(0 0,100% 0,100% 92%,87% 85%,75% 93%,62% 84%,50% 95%,37% 84%,25% 93%,12% 85%,0 92%) !important; }
