﻿:root {
  --brand-dark: #0a0514;
  --brand-purple: #5b21b6;
  --brand-magenta: #c026d3;
  --brand-cyan: #06b6d4;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-muted-dark: #707172;
  --bg-light: #f8fafc;
  --text-light-theme: #0f172a;
  --text-muted-light: #475569;
  --font-main: "Plus Jakarta Sans", sans-serif;
  --font-serif: "Cormorant Garamond", serif;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  overflow-x: clip;
  min-height: 100vh;
}

/* Custom Grid System */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}
.row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 -15px;
}
.align-items-center {
  align-items: center;
}
.position-relative {
  position: relative;
}
.mt-5 {
  margin-top: 3rem;
}
.col-md-9 {
  width: 75%;
  padding: 0 15px;
}
.col-lg-8 {
  width: 66.666667%;
  padding: 0 15px;
}
.text-center {
  text-align: center;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .col-md-9,
  .col-lg-8 {
    width: 100%;
  }
}

.color-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.15; /* Adjusted for dark theme visibility */
}

.blob {
  position: absolute;
  border-radius: 50%;
  animation: drift 15s infinite alternate ease-in-out;
}

.purple-blob {
  width: 50vw;
  height: 50vw;
  background: var(--brand-purple);
  top: -10%;
  left: -10%;
}

.cyan-blob {
  width: 40vw;
  height: 40vw;
  background: var(--brand-cyan);
  bottom: 0;
  right: -10%;
  animation-delay: -5s;
}

.magenta-blob {
  width: 45vw;
  height: 45vw;
  background: var(--brand-magenta);
  top: 30%;
  left: 30%;
  animation-delay: -10s;
}

.frost-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 10px rgba(212, 212, 212, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #000000;
  backdrop-filter: blur(10px);
}
.glowing-dot-cyan {
  width: 8px;
  height: 8px;
  background: var(--brand-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-cyan);
}

/* =========================================
   1. GALLERY HERO
   ========================================= */

/* =========================================
   2. ASYMMETRICAL PARALLAX WALL
   ========================================= */
.gallery-wall-section {
  background-color: transparent;
  padding: 100px 5%;
  position: relative;
  overflow: hidden; /* Crucial: Hides the columns that stretch beyond the screen */
  /* cursor: none;  */
  /* Hides default cursor so our custom one shows */
}

/* Custom Glass Cursor */
.custom-glass-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.custom-glass-cursor span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
/* When hovering over an image */
.gallery-wall-section.is-hovering .custom-glass-cursor {
  opacity: 1;
  transform: scale(1);
}
.gallery-wall-section.is-hovering .custom-glass-cursor span {
  opacity: 1;
}

.gallery-wall-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start; /* Columns size to their own content, no stretch-induced blank space */
  gap: 20px;
  /* Height follows content (natural image sizes) instead of a fixed value */
  margin-top: -2vh;
}

.gal-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  will-change: transform; /* GPU Optimization */
}

/* Masonry stagger: row 1 stays aligned (no offset before the first card), then a small
   extra gap accrues between every later card so the column drifts gradually instead of
   opening one large gap. */
.col-fast .gal-img-card:not(:first-child) {
  margin-top: 14px;
}
.col-medium .gal-img-card:not(:first-child) {
  margin-top: 7px;
}

/* The Image Cards */
.gal-img-card {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  line-height: 0; /* Prevents inline-image whitespace gap inside the card */
  /* Thick frosted border */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
  transform: translateZ(0); /* Anti-flicker */
}

.gal-img-card img {
  display: block;
  width: 100%;
  height: auto; /* Preserve each image's natural aspect ratio - no cropping */
  /* filter: grayscale(40%) brightness(0.8); */
  transition:
    filter 0.5s ease,
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.gal-img-card:hover img {
  transform: scale(1.05);
}

/* Show More Button */
.gallery-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}
.gallery-show-more-btn[hidden] {
  display: none;
}

/* =========================================
   3. CINEMATIC LIGHTBOX
   ========================================= */
.custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 5, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.custom-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2;
}
.lightbox-close:hover {
  color: var(--brand-cyan);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
  z-index: 2;
}
.lightbox-nav:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}
.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.gal-img-card:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 3px;
}

.lightbox-content {
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.custom-lightbox.active .lightbox-content img {
  transform: scale(1);
}

.g-gal-reveal {
  visibility: hidden;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .gallery-wall-section {
    cursor: auto;
    padding: 20px 5%;
  }
  .custom-glass-cursor {
    display: none;
  } /* No custom cursor on touch devices */

  .gallery-wall-wrapper {
    grid-template-columns: 1fr; /* Switch to single column masonry on mobile */
    height: auto;
    gap: 16px;
    margin-top: 0;
  }
  .gal-column {
    gap: 16px;
    margin-top: 0 !important;
  }
  .col-fast .gal-img-card:not(:first-child),
  .col-medium .gal-img-card:not(:first-child) {
    margin-top: 0;
  }
}

/* Lightbox controls on smaller screens */
@media (max-width: 768px) {
  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
  }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-content {
    width: 95%;
    height: 80vh;
  }
}
