/* ═══════════════════════════════════════════════════════════════════════════
   css/realisations.css — Card-Free Visual Photo Gallery for MR. DUVAL
   Imports base style.css and implements a clean, grid-based image portfolio.
   ═══════════════════════════════════════════════════════════════════════════ */

@import "style.css";

/* ── Portfolio Hero ─────────────────────────────────────────────────────── */
.realisations-hero {
  background:
    linear-gradient(rgba(20,20,20,0.4), rgba(20,20,20,0.4)),
    url("../assets/gallery_6.jpg") center/cover no-repeat;
  padding: calc(var(--space-3xl) + 60px) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 4px solid var(--color-red);
}

.realisations-hero-content {
  position: relative;
  z-index: 5;
  max-width: 800px;
  margin: 0 auto;
}

.realisations-hero h1 {
  color: var(--color-white);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
}

.realisations-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Pure Visual Grid Layout ────────────────────────────────────────────── */
.gallery-section {
  padding: var(--space-3xl) 0;
  background: var(--color-offwhite);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  cursor: pointer;
  background: var(--color-black);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ── Lightbox Modal styling ─────────────────────────────────────────────── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 3px solid var(--color-white);
  object-fit: contain;
  transform: scale(0.95);
  transition: transform var(--dur-med) var(--ease);
}

.lightbox-modal.active .lightbox-img {
  transform: scale(1);
}

/* Controls */
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 1002;
  color: var(--color-white);
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--dur-fast);
}

.lightbox-close:hover {
  color: var(--color-red);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast);
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-nav { width: 36px; height: 36px; }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
