.ui-dialog.fullImageModal {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  touch-action: pan-x pan-y;
}

.ui-dialog.fullImageModal .ui-dialog-content {
  padding: 0 !important;
  overflow: hidden !important;
  touch-action: pan-x pan-y;
}

.ui-dialog.fullImageModal .ui-dialog-titlebar {
  display: none !important;
}

.fullImageDiv {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.fullImageImg {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

.fullImageImg img {
  object-fit: contain;
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  cursor: inherit;
  touch-action: pan-x pan-y;
}

.fullImageDiv.is-dragging,
.fullImageDiv.is-dragging .fullImageImg img {
  cursor: grabbing;
}

.fullImageNav {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 64px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transform: translateY(-50%);
}

.fullImagePrev {
  left: 12px;
}

.fullImageNext {
  right: 12px;
}

.fullImageControls {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.fullImageControls button {
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  cursor: pointer;
}

.fullImageNav {
  transition: opacity 0.2s ease;
}

.fullImageDiv.fullImageControlsHidden .fullImageNav,
.fullImageDiv.fullImageControlsHidden .fullImageControls {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .fullImageNav {
    width: 56px;
    height: 76px;
    font-size: 36px;
  }

  .fullImageControls button {
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .fullImageNav {
    width: 60px;
    height: 84px;
    font-size: 38px;
  }
}

@media (max-width: 600px) {
  .fullImageNav {
    width: 64px;
    height: 88px;
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .fullImageNav {
    width: 68px;
    height: 92px;
    font-size: 42px;
  }
}

@media (max-width: 359px) {
  .fullImageNav {
    width: 72px;
    height: 96px;
    font-size: 44px;
  }

  .fullImageControls button {
    padding: 12px 14px;
  }
}