/* ─────────────────────────────────────────────
   HEYAT.CA — Custom styles (dark-only, Gokarna)
   ───────────────────────────────────────────── */

/* ── Photo Gallery Grid ── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
  margin: 2rem 0;
}

.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #111;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
  opacity: 0.88;
}

.gallery-item:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.gallery-caption {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 0.5rem;
}

/* ── Lightbox ── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lb-overlay.active {
  display: flex;
}

.lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7);
  cursor: default;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
  z-index: 10000;
  line-height: 1;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  color: #fff;
}

.lb-close { top: 1rem;  right: 1.25rem; font-size: 2.5rem; }
.lb-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── Post list refinements ── */
/* Subtle separator between post entries */
.post-list-item + .post-list-item {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.5rem;
}

/* ── Typography tweaks ── */
article p {
  line-height: 1.85;
}

article hr {
  border-color: rgba(255,255,255,0.08);
  margin: 2rem 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .lb-prev { left: 0.25rem; }
  .lb-next { right: 0.25rem; }
}
