/* ===========================
   MASONRY GALLERY
=========================== */
.jao-gallery {
  column-count: 5;
  column-gap: 1em;
  width: 100%;
}

.jao-gallery img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1em;
  cursor: pointer;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease, opacity 0.6s ease;
}

/* Fade-in animation when images load */
.jao-gallery img.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Hover zoom effect */
.jao-gallery img:hover {
  transform: scale(1.03);
}

/* Responsive columns */
@media (max-width: 1024px) {
  .jao-gallery {
    column-count: 4;
  }
}

@media (max-width: 768px) {
  .jao-gallery {
    column-count: 3;
  }
}

@media (max-width: 480px) {
  .jao-gallery {
    column-count: 2;
  }
}

/* ===========================
   LIGHTBOX
=========================== */
.jao-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  z-index: 99999;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.jao-lightbox.active {
  display: flex;
}

.jao-lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  margin-bottom: 1em;
  transition: transform 0.3s ease;
}

/* Navigation arrows */
.jao-lightbox .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  user-select: none;
  background: rgba(0,0,0,0);
  padding: 10px;
  border-radius: 50%;
  transition: opacity 0.3s;
  opacity: 1;
}

.jao-lightbox .arrow:hover {
  opacity: 0.7;
}

.jao-lightbox .arrow.left { left: 30px; }
.jao-lightbox .arrow.right { right: 30px; }

.jao-lightbox .close {
  position: absolute;
  top: 20px;
  right: auto;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  background: rgba(0,0,0,0);
  padding: 5px 10px;
  border-radius: 50%;
  opacity:1;
  transition: opacity 0.3s;
  font-weight:100;

}

.jao-lightbox .close:hover {
  opacity:0.7;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===========================
   UPLOAD SECTION
=========================== */
.jao-upload-container {
  border: 2px dashed #aaa;
  padding: 2em;
  text-align: center;
  border-radius: 12px;
  transition: background 0.3s, transform 0.2s;
}

.jao-upload-container.dragover {
  background: #f5f5f5;
  transform: scale(1.02);
}

.jao-upload-message {
  margin-top: 10px;
    color: #000;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.07);
    border-radius: 100px;
    padding: 3px;
}

.jao-upload-message.show {
  opacity: 1;
}

/* Optional: toast-style notification */
.jao-upload-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(0,128,0,0.85);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
}

.jao-upload-toast.show {
  opacity: 1;
  transform: translateY(0);
}
