/* ==========================================================================
   GRAD 2 GLOBAL — Gallery & Student Moments Stylesheet
   Modern Bento Grid, Interactive Category Filters & Lightbox Modal
   ========================================================================== */

/* --- Hero Banner Section --- */
.gallery-hero {
  position: relative;
  min-height: 440px;
  padding: 8.5rem 0 4.5rem;
  background-color: #03081a;
  background-image: 
    linear-gradient(180deg, 
      rgba(4, 12, 34, 0.50) 0%, 
      rgba(4, 13, 38, 0.72) 55%, 
      rgba(3, 9, 30, 0.95) 100%),
    url('../images/hero-airport.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 181, 46, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.gallery-header {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(70, 240, 193, 0.12);
  border: 1px solid rgba(70, 240, 193, 0.28);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.gallery-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.gallery-hero-h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.gallery-hero-h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sun);
  background: linear-gradient(135deg, #FFB52E 0%, #FFE29A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: #d1dcf5;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* --- Gallery Body & Filters --- */
.gallery-body-section {
  padding: 4.5rem 0 7rem;
  background: var(--ink);
  color: #ffffff;
  position: relative;
}

.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.gal-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.05);
  color: #c2d0f2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.gal-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.gal-btn.active {
  background: var(--sun);
  color: #081a3f;
  border-color: var(--sun);
  box-shadow: 0 4px 18px rgba(255, 181, 46, 0.35);
  transform: translateY(-2px);
}

/* --- Photo Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.gallery-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(8, 26, 63, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 181, 46, 0.5);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.65);
}

.gallery-card.hidden {
  display: none !important;
}

.gallery-img-wrap {
  aspect-ratio: 16/11;
  overflow: hidden;
  position: relative;
  background: #020716;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  display: block;
}

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

/* Category Badge Overlay on Image */
.gallery-tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(8, 26, 63, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--sun);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  z-index: 2;
}

.gallery-zoom-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(8, 26, 63, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease);
  z-index: 2;
}

.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.gallery-card-content {
  padding: 1.3rem 1.5rem;
  background: rgba(8, 26, 63, 0.95);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-card-content h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.gallery-card-content span {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: #9cb3de;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Lightbox Modal --- */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.gallery-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-wrap {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: #081a3f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease);
}

.gallery-modal.active .modal-content-wrap {
  transform: scale(1);
}

.modal-img-box {
  width: 100%;
  max-height: 70vh;
  background: #020716;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img-box img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.modal-footer {
  padding: 1.4rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #050d22;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer h4 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.modal-footer p {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--sun);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 26, 63, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s var(--ease);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--sun);
  color: #081a3f;
  transform: rotate(90deg);
}

/* --- Responsive Queries --- */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gallery-hero { min-height: auto; padding: 7rem 0 3.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-filter-bar { gap: 0.5rem; }
  .gal-btn { padding: 0.5rem 1rem; font-size: 0.75rem; }
  .gallery-modal { padding: 1rem; }
}
