/*item.php*/

.item-img { width:100%; max-height:420px; object-fit:cover; border-radius:12px; }
.thumb { width:80px; height:80px; object-fit:cover; border-radius:8px; margin-right:8px; cursor:pointer; border:2px solid transparent; }
.thumb.selected { border-color:#ffc107; }
.tag { display:inline-block; padding:6px 10px; background:#f1f1f1; border-radius:20px; margin:4px; font-size:0.9rem; }
textarea{
    resize: none;
    height: 100px;
}
#mainImage {
  cursor: zoom-in;
  transition: transform 0.3s ease;
  border-radius: 10px;
  max-width: 100%;
}
/* За плавна смяна на снимките */
#mainImage {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mainImage.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

#mainImage.fade-in {
  opacity: 1;
  transform: scale(1);
}


/* overlay (фонът при уголемяване) */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

/* вътрешната снимка в overlay-а */
.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  cursor: zoom-out;
}
.image-overlay.show {
  opacity: 1;
}
.image-overlay.show img {
  transform: scale(1);
}

/*Report Form */
#reportForm {
  display: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#reportForm.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

