/* ==================================================
   GALLERY LAYOUT — OPTION 1 (4 ACROSS)
   This file ONLY affects the gallery grid.
   It does NOT modify your header, hero, or footer.
   ================================================== */

/* Grid wrapper */
.mf-gallery{
  margin-top: 18px;
  display: grid;
  gap: 14px;

  /* Desktop default: 4 across */
  grid-template-columns: repeat(4, 1fr);
}

/* Individual gallery cards */
.mf-card{
  overflow: hidden;
  border-radius: var(--radius);

  border: 1px solid rgba(185,194,211,.2);
  background: rgba(15,23,42,.35);
  box-shadow: var(--shadow);

  display: grid;
  grid-template-rows: 150px auto;
  height: 100%;
}

/* Media area (image or placeholder) */
.mf-media{
  background: rgba(15,23,42,.45);
  border-bottom: 1px solid rgba(185,194,211,.15);
}

/* Actual images */
.mf-media img{
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
}

/* Placeholder when no image exists */
.mf-empty{
  height: 150px;
  display: grid;
  place-items: center;
  text-align: center;

  padding: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;

  color: rgba(243,245,248,.85);
  background: rgba(15,23,42,.25);
}

/* Text/meta area */
.mf-meta{
  padding: 14px;
}

.mf-title{
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 6px;
}

.mf-note{
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Subtle hover (matches your existing vibe) */
.mf-card:hover{
  border-color: rgba(93,162,255,.45);
}

/* ==================================================
   RESPONSIVE BREAKPOINTS
   ================================================== */

/* Large tablets / small laptops */
@media (max-width: 1200px){
  .mf-gallery{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets */
@media (max-width: 768px){
  .mf-gallery{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones */
@media (max-width: 480px){
  .mf-gallery{
    grid-template-columns: 1fr;
  }
}
/* =========================
   CLICK TO ENLARGE (CSS LIGHTBOX)
   ========================= */

.mf-media a{
  display:block;
}

.mf-media img{
  cursor: zoom-in;
}

/* Fullscreen overlay */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(7,11,18,.92);
  display: none;
  place-items: center;
  z-index: 9999;
}

/* Show when targeted (when URL hash matches the id) */
.lightbox:target{
  display: grid;
}

.lightbox img{
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

/* Click anywhere to close */
.lightbox-close{
  position: absolute;
  inset: 0;
  display: block;
}
