/* Divi Gallery Zoom Enhancer - v1.2.4 */

.mfp-img.dgze-zoomable,
.mfp-img.dgze-zoomed {
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
}

.mfp-img.dgze-zoomable {
  cursor: grab;
}

.mfp-img.dgze-zoomed {
  cursor: grab;
}

.mfp-img.dgze-dragging {
  cursor: grabbing;
  transition: none !important;
}

.mfp-wrap.dgze-active,
.mfp-wrap.dgze-active .mfp-content,
.mfp-wrap.dgze-active .mfp-figure,
.mfp-wrap.dgze-active .mfp-img {
  touch-action: none;
}

.mfp-wrap.dgze-active,
.mfp-bg {
  overscroll-behavior: contain;
}

.dgze-controls {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 34px);
  z-index: 1047;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.dgze-btn {
  appearance: none;
  -webkit-appearance: none;
  min-width: 38px;
  height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
}

.dgze-btn-reset {
  min-width: 66px;
  font-size: 13px;
}

.dgze-btn:hover,
.dgze-btn:focus {
  background: #f1f1f1;
  outline: none;
}

.dgze-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .dgze-controls {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    gap: 6px;
    padding: 7px;
  }

  .dgze-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    line-height: 36px;
  }

  .dgze-btn-reset {
    min-width: 60px;
  }
}
