
/* /assets/css/modal.css - image viewer styles */
.img-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(2px);
  z-index: 1000;
}
.modal-hidden { display: none !important; }

.img-modal {
  position: relative;
  width: min(96vw, 1100px);
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 12px 12px 18px;
  background: #0b0b0c;
  color: #f1f1f1;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.img-modal-body {
  margin: 0;
  display: grid;
  place-items: center;
}

#imgModalImage {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

#imgModalCaption {
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: .85;
  text-align: center;
}

.img-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.img-modal-close:hover { background: rgba(255,255,255,.14); }

.img-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 24px;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
}
.img-modal-nav:hover { background: rgba(255,255,255,.14); }
.img-modal-nav.prev { left: 10px; }
.img-modal-nav.next { right: 10px; }

/* Basic responsive gallery grid suggestion (if needed) */
.profile.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.profile.gallery .post-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}
