/* ===================================================
   GALLERY / MASONRY
   =================================================== */

/* Base masonry */
.masonry {
  column-width: 220px;
  column-gap: 1.5rem;
}

/* Fade-in once images loaded */
.masonry {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.masonry.is-loaded {
  opacity: 1;
}

/* Media items */
.masonry img,
.masonry video {
  width: 100%;
  display: block;
  margin-bottom: 1.5rem;
  break-inside: avoid;
}

/* Cursor intent */
.masonry img {
  cursor: zoom-in;
}

/* ===================================================
   MASONRY VARIANTS (DESKTOP)
   =================================================== */

.masonry--one-col {
  column-count: 1;
}

.masonry--two-col {
  column-count: 2;
  column-gap: 1.75rem;
}

.masonry--three-col {
  column-count: 3;
  column-gap: 1.75rem;
}

/* ===================================================
   MOBILE: FORCE 2 COLUMNS EVERYWHERE
   =================================================== */

@media (max-width: 768px) {
  .masonry,
  .masonry--one-col,
  .masonry--two-col,
  .masonry--three-col {
    column-count: 2 !important;
    column-width: auto;
    column-gap: 1rem;
  }

  .masonry img,
  .masonry video {
    margin-bottom: 1rem;
  }
}

/* ===================================================
   LIGHTBOX OVERLAY
   =================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  cursor: zoom-out;
}

/* ===================================================
   LIGHTBOX NAV ARROWS
   =================================================== */

.lightbox-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 15%;
  cursor: pointer;
}

.lightbox-nav.prev {
  left: 0;
}

.lightbox-nav.next {
  right: 0;
}

/* Arrow glyphs */
.lightbox-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  opacity: 0.7;
}

.lightbox-nav.prev::before {
  left: 2rem;
  transform: translateY(-50%) rotate(-135deg);
}

.lightbox-nav.next::before {
  right: 2rem;
  transform: translateY(-50%) rotate(45deg);
}

.lightbox-nav:hover::before {
  opacity: 1;
}

/* ===================================================
   ABOUT PAGE IMAGE FIX
   =================================================== */

/* Ensures About page hero image respects layout */
.about-image,
.about-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}
