html {
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  background-color: var(--black);
  color: var(--white);
}

body {
  position: relative;
  min-height: 100vh;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url(imgs/pexels-kartik-bhatare-2913616-4504471.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  z-index: -2;

  filter: blur(10px) brightness(0.75);
  will-change: filter;
  transform: scale(1.05);

  filter: brightness(1.50);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.329);
  z-index: -1;
}

:root {
  --black: #363636;
  --soft-black: #151515;
  --gold: #2e885d;
  --gold-soft: #bfa24a;
  --white: #ffffff;
  --gray: #999;
}

.navbar {
  position: sticky;
  top: 0;
  background: var(--soft-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  z-index: 10;
  background: rgba(99, 99, 99, 0.277);
  backdrop-filter: blur(6px);
}

.logo {
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: var(--gold);
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;

  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .logo img {
    height: 30px;
  }
}

.navbar nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.navbar nav a:hover {
  color: var(--gold);
}

.gallery-page {
  padding: 5rem 3rem;
}

.gallery-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;

  background: rgba(99, 99, 99, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.gallery-header {
  margin-bottom: 2rem;
}

.gallery-kicker {
  margin: 0 0 0.7rem 0;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.gallery-title {
  margin: 0 0 0.8rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.gallery-subtitle {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;

  aspect-ratio: 16 / 9;

  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(0, 0, 0, 0.18);

  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 136, 93, 0.35);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72),
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0)
  );
}

.gallery-card__overlay h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1.1rem;
  color: var(--white);
}

.gallery-card__overlay p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.gallery-card__button {
  all: unset;
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-card__button:focus-visible {
  outline: 2px solid rgba(46, 136, 93, 0.9);
  outline-offset: 4px;
  border-radius: 20px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.lightbox.is-open {
  display: block;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
  max-height: 90vh;
  margin: 4vh auto;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(99, 99, 99, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
}

.lightbox__caption {
  margin: 0.9rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lightbox__close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(46, 136, 93, 0.9);
}

.lightbox__close:active {
  transform: scale(0.96);
}

@media (max-width: 950px) {
  .gallery-page {
    padding: 4rem 1.25rem;
  }

  .gallery-wrap {
    padding: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    grid-column: span 1;
  }

  .gallery-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .lightbox__dialog {
    width: 94vw;
    max-height: 88vh;
    margin: 3vh auto;
    padding: 0.75rem;
  }

  .lightbox__image {
    max-height: 72vh;
  }

  .lightbox__caption {
    font-size: 0.92rem;
    margin-top: 0.7rem;
  }

  .lightbox__close {
    top: 0.45rem;
    right: 0.45rem;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}
