
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.modal-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 50vh;
}

.modal-image-wrapper img {
  max-height: 100%;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.7);
  border: none;
  color: black;
  font-size: 24px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
}

.modal-prev {
  left: -30px;
}

.modal-next {
  right: -30px;
}

.modal-description {
  margin-top: 10px;
  background-color: rgba(0,0,0,0.75);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  max-width: 90%;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1002;
}
