/* ── Gallery grid ── */

.gallery-page {
  min-height: 100vh;
  padding-top: 90px;
  padding-bottom: 80px;
}

.gallery-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}

.gallery-heading {
  font-family: "ITC Avant Garde Gothic", "Avant Garde", "Century Gothic", sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--owl-navy);
}

.gallery-sub {
  font-size: 16px;
  color: var(--owl-muted);
  margin: 0 0 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-item,
.gallery-video {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* The video plays inline; its native controls are the interaction, not a click */
.gallery-video {
  cursor: default;
}

.gallery-thumb {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px -8px rgba(51, 46, 68, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  line-height: 0;
}

.gallery-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 0;
}

.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 24px;
}

.gallery-item:hover .gallery-thumb,
.gallery-video:hover .gallery-thumb {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px -8px rgba(51, 46, 68, 0.28);
}

.gallery-caption {
  text-align: center;
}

.gallery-caption strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--owl-navy);
  margin-bottom: 3px;
}

.gallery-caption span {
  font-size: 12px;
  color: var(--owl-muted);
}

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 16, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 24px;
  max-height: 100vh;
}

.lightbox-img-wrap {
  position: relative;
  flex-shrink: 0;
}

.lightbox-img-wrap img {
  max-height: calc(100vh - 120px);
  max-width: min(340px, 80vw);
  width: auto;
  display: block;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 40px 80px -16px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  position: absolute;
  bottom: -36px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.lightbox-caption strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

/* Nav arrows */
.lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Close button */
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Counter */
.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .gallery-heading {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .lightbox-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-page {
    padding-top: 80px;
    padding-bottom: 48px;
  }

  .lightbox-inner {
    gap: 12px;
    padding: 40px 8px;
  }

  .lightbox-btn {
    width: 36px;
    height: 36px;
  }
}
