﻿:root {
  --brand-blue: #0c2340;
  --brand-gold: #ae9142;
  --gray-dark: #333;
  --gray-light: #f0f0f0;
  --sky-blue-light: #edf2f9;
  --sky-blue-dark: #c1cddd;
  --font-body: "Libre Franklin", Helvetica, Arial, sans-serif;
  --font-heading: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: #fff;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===============================
   HEADER CLEAN FIX
================================ */

.site-header {
  position: relative;
  background: var(--brand-blue);
  border-top: 4px solid var(--brand-gold);
  border-bottom: 5px solid #081629;

  padding: 1.5rem 1rem 2.5rem;  /* IMPORTANT: adds height */
  min-height: 100px;            /* prevents collapse */
}

/* Logo */

.site-logo {
  position: absolute;
  top: 8px;
  left: 20px;
  z-index: 20;
}

.site-logo img {
  height: 75px;
  background: #fff;
  padding: 4px 6px;
  border-radius: 8px;
}

/* Lab Title */

.lab-title {
  position: absolute;
  top: 8px;
  left: 150px;   /* pushes it right of logo */
  z-index: 30;   /* ABOVE logo */

  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
}

.cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s infinite;
  color: #ffffff;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Ensure title styling stays intact */

.site-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.04em;
}

/* Underline */

.lab-title::after {
  content: "";
  display: block;
  width: 65%;
  height: 2px;
  background: var(--brand-gold);
  margin-top: 5px;
}

/* Nav container */

.nav-header {
  position: absolute;
  right: 20px;
  bottom: -30px;   /* creates overlap onto banner */
  z-index: 50;
}

/* ===============================
   MOBILE FIX
================================ */

@media (max-width: 768px) {

  .site-header {
    padding: 1rem;
    min-height: auto;
    text-align: center;
  }

  .site-logo,
  .lab-title,
  .nav-header {
    position: static;
  }

  .site-logo {
    margin-bottom: 0.5rem;
  }

  .lab-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  .nav-header {
    margin-top: 0.5rem;
  }

  .research-banner {
    margin-top: 0;
  }
}

/* === Navigation === */
.nav-primary {
  font-size: 1rem;
  background-color: #fff;
}
.nav-primary ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-primary li {
  position: relative;
}
.nav-primary li a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 0.75rem;
  color: #555;
  background: #fff;
  border-bottom: 0.25rem solid transparent;
  transition: all 325ms ease-in-out;
  text-decoration: none;
}
.nav-primary li a:hover {
  background: var(--sky-blue-light);
  border-bottom-color: var(--sky-blue-dark);
  text-decoration: none;
}
.nav-primary li a[aria-current=page] {
  border-bottom: 0.25rem solid var(--brand-gold);
  font-weight: bold;
}

/* === Hamburger Menu Button === */
.hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animate into X */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === Mobile Navigation === */
@media (max-width: 768px) {

  .hamburger {
    display: flex; /* show hamburger */
  }

  /* hide menu by default on mobile */
  .nav-primary {
    display: none;
    width: 100%;
    background: white;
    margin-top: 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
  }

  /* show when active */
  .nav-primary.open {
    display: block;
  }

  .nav-primary ul {
    flex-direction: column;
    width: 100%;
  }

  .nav-primary li a,
  .submenu-toggle {
    width: 100%;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  .site-logo {
    position: static;
    display: block;
    margin: 0 auto 1rem;
  }

  .nav-header {
    float: none;
    margin: 0;
    text-align: center;
  }
}


/* === Submenu === */
.has-submenu {
  position: relative;
}
.submenu-toggle {
  all: unset; /* reset browser defaults */
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;

  /* Match nav link appearance */
  padding: 0.9rem 0.75rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: #555;
  background: #fff;
  border-bottom: 0.25rem solid transparent;
  transition: all 325ms ease-in-out;
  line-height: 1.2;
  padding-bottom: 0.95rem; /* slightly more than others to push underline down */
}

.chevron {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}
.has-submenu.open .chevron {
  transform: rotate(180deg);
}
.has-submenu .submenu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0.5rem 0;
  min-width: 160px;
  width: auto;
  background: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 100;
}
.has-submenu.open .submenu {
  opacity: 1;
  max-height: 500px;
}

.has-submenu.current-submenu > .submenu-toggle {
  border-bottom-color: var(--brand-gold);
  font-weight: bold;
}

.submenu li {
  width: 100%;
}
.submenu li a {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left !important;
  justify-content: flex-start;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}
.submenu li a:hover {
  background: var(--sky-blue-light); /* BLUE hover */
  color: var(--brand-blue);          /* BLUE text */
  text-decoration: none;
}

/* === Main Content === */
main.site-main {
  padding: 2rem;
}
.page-title-group .category {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #666;
}
.page-title-group .title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0.5rem 0;
}
.lede {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.page-content section {
  margin-bottom: 2rem;
}
.page-content h2 {
  font-size: 1.5rem;
  color: var(--brand-blue);
}
.page-content ul {
  padding-left: 1.5rem;
}


/* ===============================
   Research Banner
================================ */

.research-banner {
  border-bottom: 4px solid var(--brand-gold);
  position: relative;
  width: 100%;
  height: 60vh;
  max-height: 400px;
  min-height: 250px;
  overflow: hidden;
}

/* Slides */
.banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
  opacity:0;
  transform:scale(1);
  transition:opacity 1.2s ease-in-out;
}

.banner-slide.active {
  opacity:1;
  z-index:1;
}


/* Overlay */
.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
}

/* Text */
/* Banner text animation */

.banner-text {
  position: absolute;
  bottom: 20px;
  left: 50px;
  color: white;
  max-width: 700px;
  text-shadow: 0 3px 10px rgba(0,0,0,0.5);

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When slide becomes active */

.banner-slide.active .banner-text {
  opacity: 1;
  transform: translateY(0);
}

.banner-text h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.banner-text p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.4;
}

/* Controls */
/* === Modern Banner Controls === */

.banner-controls {
  position: absolute;
  right: 30px;
  bottom: 20px;

  display: flex;
  gap: 10px;
  z-index: 5;
}

/* Base button */

.banner-controls button {
  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);

  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: white;
  font-size: 1.4rem;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition:
    background 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover */

.banner-controls button:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);

  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Active (click feel) */

.banner-controls button:active {
  transform: scale(0.92);
}

/* Focus (accessibility) */

.banner-controls button:focus {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* Mobile */
@media (max-width: 768px) {
  .banner-controls {
    right: 15px;
    bottom: 15px;
  }

  .banner-controls button {
    width: 40px;
    height: 40px;
  }
}


/* === Apple-style Banner Dots === */

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 8px;              /* more space for pill expansion */
  align-items: center;
  z-index: 5;
}

/* Base dots */

.banner-dots button {
  width: 8px;
  height: 8px;

  border-radius: 999px;
  border: none;
  cursor: pointer;

  background: rgba(255, 255, 255, 0.35);
  opacity: 0.6;

  transition: 
    width 0.4s ease,
    background 0.3s ease,
    opacity 0.3s ease,
    box-shadow 0.3s ease;
}

/* Active pill */

.banner-dots button.active {
  width: 26px;                      /* horizontal stretch */
  background: #f5f5f5;              /* softer than pure white */
  opacity: 1;

  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}

/* Hover (optional subtle feedback) */

.banner-dots button:hover {
  opacity: 0.9;
}

/* Focus (accessibility) */

.banner-dots button:focus {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* === Footer === */
.site-footer {
  background: var(--gray-light);
  font-size: 1rem; /* was 0.85rem */
  color: #444;
  border-top: 4px solid var(--brand-gold);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem; /* increased slightly */
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 1.1rem; /* larger text */
}

.footer-info a {
  color: var(--brand-blue);
  text-decoration: none;
}
.footer-info a:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 1.25rem;
}

.social-icons img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.social-icons img:hover {
  opacity: 1;
}

.footer-strip {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.5rem; /* was 0.5rem */
  font-size: 0.9rem; /* was 0.75rem */
  color: #666;
  background: #eaeaea;
}
.footer-strip p {
  margin: 0;
}

@media (max-width: 600px) {
  .footer-main,
  .footer-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}



/* === Responsive Navigation === */
@media (max-width: 768px) {
  .nav-primary ul {
    flex-direction: column;
    align-items: center;
  }
}


/* === Publications Section === */

.pub-year {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  font-size: 1.25rem;
  color: var(--brand-blue);
  border-left: 4px solid var(--brand-gold);
  padding-left: 0.75rem;
  margin: 2rem 0 1rem;
  transition: color 0.2s ease;
}
.pub-year:hover {
  color: var(--brand-gold);
}
.toggle-icon {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  font-size: 0.85rem;
}
.pub-year.open .toggle-icon {
  transform: rotate(90deg);
}
.pub-list {
  list-style: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0;
  margin: 0 0 1.5rem 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
}
.pub-list.expanded {
  max-height: 1000px;
  opacity: 1;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}
.pub-list li {
  background: var(--gray-light);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--sky-blue-dark);
  margin-bottom: 1rem;
}
.pub-authors {
  font-weight: 500;
  color: var(--gray-dark);
}
.pub-title {
  font-weight: 600;
  color: var(--brand-blue);
}
.pub-venue {
  font-size: 0.9rem;
  color: #555;
}
.pub-venue a {
  color: var(--brand-gold);
  text-decoration: none;
}
.pub-venue a:hover {
  text-decoration: underline;
}


/* === Funding Logos === */

.funding-logos {
  display: flex;               /* place funders side-by-side */
  gap: 2rem;                   /* space between them */
  align-items: flex-start;     /* align all boxes at their top edge */
}

.funding-logos .funder {
  display: flex;
  flex-direction: column;      /* stack logo and text vertically */
  align-items: center;         /* center both horizontally */
  min-height: 180px;           /* set a common total height so logos line up */
  text-align: center;
}

.funding-logos .funder img {
  height: 100px;               /* fixed logo height */
  width: auto;
  object-fit: contain;
  margin-bottom: 0.5rem;       /* space between logo and name */
}

/* === Funding Logos Mobile === */
@media (max-width: 768px) {

  .funding-logos {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .funding-logos .funder {
    width: 100%;
    min-height: auto;
  }

  .funding-logos .funder img {
    max-width: 180px;
    height: auto;
  }
}


/* === Team Leader Page === */

.leader-profile-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
/* === Team Leader Photo === */

.leader-profile-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;

  overflow: visible; /* ensures zoom doesn't get clipped */
}

/* === Leader Profile Card === */

.leader-profile-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;

  padding: 1.5rem;
  border-radius: 16px;

  background: #ffffff;

  box-shadow: 
    0 6px 18px rgba(0,0,0,0.06),
    0 2px 6px rgba(0,0,0,0.04);

  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* === Card hover (lift effect) === */

.leader-profile-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 18px 36px rgba(0,0,0,0.12),
    0 6px 12px rgba(0,0,0,0.08);
}

/* === Leader Photo === */

.leader-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;

  border: none;

  box-shadow: 0 6px 16px rgba(0,0,0,0.08);

  transition: 
    transform 0.4s ease,
    box-shadow 0.4s ease;

  will-change: transform;
}

/* Image zoom + glow */

.leader-profile-card:hover .leader-photo {
  transform: scale(1.05);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.18),
    0 0 0 4px rgba(174,145,66,0.15); /* soft gold glow */
}

/* === Text block animation === */

.leader-info {
  max-width: 600px;

  opacity: 0.9;
  transform: translateY(6px);

  transition: 
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Text becomes sharper on hover */

.leader-profile-card:hover .leader-info {
  opacity: 1;
  transform: translateY(0);
}

/* === Name emphasis === */

.leader-info h2 {
  margin-top: 0;
  font-size: 1.8rem;

  transition: color 0.3s ease;
}

.leader-profile-card:hover .leader-info h2 {
  color: var(--brand-blue);
}

/* === Links subtle interaction === */

.leader-links a {
  color: var(--brand-blue);
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 600;

  transition: opacity 0.2s ease;
}

.leader-links a:hover {
  opacity: 0.7;
}

/* === Mobile refinement === */

@media (max-width: 600px) {

  .leader-profile-card {
    padding: 1rem;
  }

  .leader-photo {
    width: 200px;
    height: 200px;
  }

  .leader-profile-card:hover {
    transform: translateY(-8px);
  }

  .leader-profile-card:hover .leader-photo {
    transform: scale(1.05);
  }

  .leader-info {
    transform: none;
    opacity: 1;
  }
}

.leader-info {
  max-width: 600px;
}
.leader-info h2 {
  margin-top: 0;
  font-size: 1.8rem;
}
.role-title {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.leader-links a {
  color: var(--brand-blue);
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 600;
}
.leader-links a:hover {
  text-decoration: underline;
}
.bio-block,
.research-focus {
  margin-top: 2.5rem;
}
.research-focus ul {
  list-style: disc;
  padding-left: 1.5rem;
}


/* =================================
   Team Grid / Cards
================================= */

.team-grid.fancy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}

/* Card */

.team-card {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  padding: 1.2rem 1rem;
  text-align: center;

  border: 1px solid rgba(0,0,0,0.04);

  box-shadow:
    0 6px 16px rgba(0,0,0,0.06),
    0 2px 4px rgba(0,0,0,0.04);

  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;

  overflow: hidden;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */

.team-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.12),
    0 4px 10px rgba(0,0,0,0.08);
}

/* Photo */

.team-photo {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;

  display: block;
  margin: 0 auto 0.6rem;

  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);

  transition: transform 0.35s ease;
}

/* Photo zoom */

.team-card:hover .team-photo {
  transform: scale(1.05);
}

/* Name */

.team-card h3 {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.2rem;
}

/* Role */

.team-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Social links */

.team-links {
  margin-top: auto;
  padding-top: 0.8rem;

  display: flex;
  justify-content: center;
  gap: 0.9rem;
}

.team-links img {
  height: 22px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.team-links img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Alternating backgrounds */

.team-grid.fancy .team-card:nth-child(odd) {
  background-color: #f9fbff;
}

.team-grid.fancy .team-card:nth-child(even) {
  background-color: #fffaf0;
}


/* =================================
   Fellowship Badges
================================= */

.fellowship-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: #fff;

  margin: 0.4rem 0.25rem 0;

  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  animation: badgeFade 0.45s ease-in;
}

.fellowship-badge.csir  { background: #1b4f72; }
.fellowship-badge.dbt   { background: #196f3d; }
.fellowship-badge.gate  { background: #7d3c98; }
.fellowship-badge.pmrf  { background: #b7950b; }

@keyframes badgeFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =================================
   Mobile Improvements
================================= */

@media (max-width: 600px) {

  .team-photo {
    width: 170px;
    height: 170px;
  }

  .team-card h3 {
    font-size: 1.1rem;
  }

}

/* === Filter Buttons === */

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.filter-buttons button {
  background: var(--brand-gold);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.filter-buttons button.active {
  background: var(--brand-blue);
  color: #fff;
}


/* === Alumni Grid === */

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.alumni-card {
  background: #fdfdfd;
  border-left: 4px solid var(--brand-blue);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.alumni-card:hover {
  transform: translateY(-2px);
}
.alumni-card strong {
  color: #333;
  font-weight: 600;
}
.alumni-role-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background-color: #ececec;
  color: #333;
}
.alumni-role-badge.phd        { background-color: #ffeeba; }
.alumni-role-badge.postdoc    { background-color: #d4eaf7; }
.alumni-role-badge.undergrad  { background-color: #e3f6db; }
.alumni-role-badge.staff      { background-color: #f9e0e0; }


/* ===============================
   PREMIUM GALLERY
================================ */

.gallery-wrapper {
  max-width: 1400px;
  margin: auto;
}

/* Filters */

.gallery-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.gallery-filters button {
  border: none;
  background: #eee;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.gallery-filters button.active {
  background: var(--brand-blue);
  color: #fff;
}

.gallery-filters button:hover {
  background: var(--brand-gold);
  color: #fff;
}

/* Grid */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* Item */

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(0,0,0,0.08);

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;

  transition: transform 0.5s ease;
}

/* Overlay */

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.1)
  );

  display: flex;
  align-items: flex-end;
  padding: 1rem;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay p {
  color: white;
  font-size: 0.95rem;
}

/* Hover */

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 32px rgba(0,0,0,0.18);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0,0,0,0.9);

  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
