/* Stil za pop-up */
#galerija img {
  transition: all ease-in-out 0.3s;
  cursor: pointer;
  opacity: 0.75;
}

#galerija img:hover {
  transform: scale(1.05);
  opacity: 1;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

.popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.popup-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  transition: transform 0.3s ease-in-out;
}

/* Animacije */
.slide-left {
  animation: slideLeft 0.3s ease-in-out;
}

.slide-right {
  animation: slideRight 0.3s ease-in-out;
}

@keyframes slideLeft {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Stil za zatvaranje */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* Stil za strelice */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: black;
  cursor: pointer;
  user-select: none;
}

.arrow-left {
  left: 10px;
}

.arrow-right {
  right: 10px;
}
