.modal-img-backdrop {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: var(--gradient-color);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  animation: fadeInn 0.2s ease forwards;
  overflow: hidden;
}

.modal-img-container {
  position: relative;
  width: 90vw;
  height: 90vh;
  overflow: visible;
  animation: fadeIn 0.2s ease forwards;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-img-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: blur(40px) brightness(0.6);
  z-index: 1;
  pointer-events: none;
  border-radius: 16px;
  transform-origin: center;
}

.modal-img-main {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  transition: transform 0.2s ease;
  cursor: zoom-in;
}

.modal-close-btn {
  background-color: var(--overlay-dark);
  border-radius: 50%;
  position: absolute;
  top: 20px;
  right: 0;
  font-size: 32px;
  color: var(--white);
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--ddark);
}

.fade-in {
  animation: fadeInn 0.25s ease-in-out forwards;
}

@keyframes fadeInn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

