.foto-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  z-index: 2000;                 
  padding: 16px;
}
.foto-overlay.hapur { display: flex; }

.foto-dritare {
  position: relative;
  line-height: 0;
  animation: hapja .35s cubic-bezier(.2, .8, .2, 1);
}
.foto-dritare img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86vh;
  border-radius: 18px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, .25),
    0 24px 60px rgba(0, 0, 0, .45);
}

.foto-mbyll {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.foto-mbyll:hover { background: rgba(0, 0, 0, .85); }
.foto-mbyll:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }


.foto-hap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  z-index: 1900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.foto-hap:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.foto-hap:focus-visible { outline: 3px solid #3d7cc9; outline-offset: 3px; }
.foto-hap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

@keyframes hapja {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .foto-dritare img { border-radius: 14px; max-height: 82vh; }
  .foto-hap { width: 56px; height: 56px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .foto-dritare { animation: none; }
  .foto-hap { transition: none; }
}