
:root {
  --gallery-blue: #243bc4;
  --gallery-ink: #101a39;
  --gallery-muted: #74809a;
  --gallery-line: #e5e9f2;
}

.gallery-page {
  color: var(--gallery-ink);
  background: #fff;
}

.gallery-hero {
  padding: 65px 20px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse at top left, #edf1ff, transparent 38%),
    linear-gradient(180deg, #fff, #fbfcff);
}

.gallery-eyebrow {
  color: #4c63d6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

.gallery-hero h1 {
  margin: 18px 0 12px;
  color: var(--gallery-blue);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
}

.gallery-hero p {
  color: var(--gallery-muted);
  font-size: 17px;
  line-height: 1.7;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.gallery-filter {
  padding: 13px 22px;
  border: 1px solid var(--gallery-line);
  border-radius: 30px;
  background: white;
  color: var(--gallery-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: .2s ease;
}

.gallery-filter:hover,
.gallery-filter.is-active {
  color: white;
  background: var(--gallery-blue);
  border-color: var(--gallery-blue);
}

.gallery-content {
  max-width: 1500px;
  margin: auto;
  padding: 25px 35px 70px;
}

.gallery-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.gallery-section-heading h2 {
  margin: 0;
  font-size: 30px;
}

.gallery-section-heading p {
  color: var(--gallery-muted);
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}

.gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8ebf3;
  border-radius: 13px;
  background: white;
  box-shadow: 0 5px 17px #1826530d;
  transition: transform .25s, box-shadow .25s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 28px #1826531c;
}

.gallery-card[hidden] {
  display: none !important;
}

.gallery-image-button {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #edf1fb;
  cursor: zoom-in;
}

.gallery-image-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s;
}

.gallery-card:hover img {
  transform: scale(1.045);
}

.gallery-card-body {
  padding: 15px;
}

.event-category {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  color: #2945c7;
  background: #edf1ff;
  font-size: 10px;
  font-weight: 700;
}

.gallery-card-body h3 {
  margin: 11px 0 8px;
  font-size: 16px;
  line-height: 1.4;
}

.event-date {
  margin: 0;
  color: #8390a9;
  font-size: 12px;
}

.view-photos {
  display: inline-block;
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: var(--gallery-blue);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.view-photos:hover {
  text-decoration: underline;
}

.gallery-lightbox {
  position: fixed;
  width: min(92vw, 1100px);
  max-width: none;
  max-height: 90vh;
  padding: 18px;
  border: 0;
  border-radius: 14px;
  background: #101522;
}

.gallery-lightbox::backdrop {
  background: #080d1de0;
  backdrop-filter: blur(5px);
}

.gallery-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  margin: auto;
  object-fit: contain;
}

.gallery-lightbox p {
  color: white;
  text-align: center;
}

.lightbox-close {
  display: block;
  margin: 0 0 10px auto;
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  cursor: pointer;
}

.main-header {
  position: relative;
  z-index: 20;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gallery-hero {
    padding: 42px 18px 25px;
  }

  .gallery-hero h1 {
    letter-spacing: -1px;
  }

  .gallery-content {
    padding: 22px 18px 50px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .gallery-card-body {
    padding: 12px;
  }

  .gallery-card-body h3 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .gallery-hero h1 {
    font-size: 34px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image-button {
    aspect-ratio: 1.7 / 1;
  }

  .gallery-card-body h3 {
    font-size: 16px;
  }
}
.gallery-album-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.gallery-photo-thumb {
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f1f3f5;
  border-radius: 8px;
}

.gallery-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.gallery-photo-thumb:hover img {
  transform: scale(1.05);
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(900px, 94vw);
  max-width: none;
  max-height: 90vh;
  border: none;
  border-radius: 14px;
  padding: 45px 55px 25px;
  background: #111;
  color: white;
  overflow: hidden;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, .88);
}

.gallery-lightbox img {
  display: block;
  width: 100%;
  height: 70vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  color: white;
  background: rgba(255,255,255,.15);
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-close {
  top: 10px;
  right: 14px;
  font-size: 28px;
  width: 38px;
  height: 38px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  font-size: 32px;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

#galleryLightbox p {
  text-align: center;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .gallery-lightbox {
    padding: 45px 35px 20px;
  }

  .gallery-lightbox img {
    height: 65vh;
  }
}
@media (max-width: 480px) {
  .gallery-album-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}