.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  line-height: 20px;
}

/* ── Gallery Card ─────────────────────────────────────────────────────────── */
.gallery-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gallery-card:hover {
  box-shadow: none;
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: #f1f5f9;
}

.gallery-img,
.gallery-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-img {
  object-fit: cover;
  border-radius: 14px;
}

.gallery-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: 14px;
}

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 80, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  border-radius: 14px;
  transition: opacity 0.25s ease;
  color: #fff;
}

.gallery-hover-overlay i {
  font-size: 1.8rem;
}

.gallery-hover-overlay span {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 0 8px;
}

.gallery-card:hover .gallery-hover-overlay {
  opacity: 1;
}

.gallery-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-top: 6px;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Lightbox Overlay ────────────────────────────────────────────────────── */
.lb-no-scroll {
  overflow: hidden;
}

#galleryLightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#galleryLightbox.lb-open {
  opacity: 1;
  pointer-events: all;
}

#lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 30, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lb-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90vw;
  max-width: 880px;
  animation: lb-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes lb-pop {
  from {
    transform: scale(0.88);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* close */
#lb-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

#lb-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* image area */
#lb-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #11182700;
  min-height: 280px;
  max-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

#lb-img-wrap.lb-fade {
  opacity: 1;
}

#lb-img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

#lb-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border-radius: 16px;
}

/* nav arrows */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.lb-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.1);
}

#lb-prev {
  left: -56px;
}

#lb-next {
  right: -56px;
}

.fade-up {
  opacity: 1;
}

#gallery-grid .gallery-item {
  padding: 0.3rem;
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}


@media (max-width: 700px) {
  #lb-prev {
    left: 6px;
  }

  #lb-next {
    right: 6px;
  }

  .lb-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* info bar */
.lb-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 4px 6px;
  color: #e2e8f0;
}

#lb-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

#lb-counter {
  font-size: 0.82rem;
  color: #94a3b8;
  white-space: nowrap;
}

.lb-auto-wrap {
  position: absolute;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  right: 0%;
  bottom: 26%;
}

.lb-progress-ring {
  position: absolute;
  inset: 0;
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 2;
}

.lb-ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.15);
  stroke-width: 2.5;
}

.lb-ring-fill {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 2.5;
  stroke-dasharray: 94.25;
  stroke-dashoffset: 94.25;
  stroke-linecap: round;
}

.lb-auto-wrap.running .lb-ring-fill {
  animation: lb-ring-anim var(--lb-ring-dur, 5s) linear forwards;
}

@keyframes lb-ring-anim {
  from { stroke-dashoffset: 94.25; }
  to   { stroke-dashoffset: 0; }
}

#lb-auto-toggle {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
}

#lb-auto-toggle:hover {
  background: rgba(255,255,255,0.22);
}

/* thumbnails */
#lb-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  width: 100%;
  padding: 6px 2px 4px;
  scrollbar-width: none;
}

#lb-thumbs::-webkit-scrollbar {
  display: none;
}

.lb-thumb {
  flex: 0 0 68px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
  background: #1e293b;
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-thumb-fall {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lb-thumb.active {
  border-color: #3b82f6;
  transform: scale(1.08);
}

.lb-thumb:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: none;
}

.gallery-item {
  margin-bottom: 1px;
  margin-top: 10px;
}



.gallery-filters {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 5px;
}

#gallery-grid {
  margin: 0px !important;
  padding: 0px !important;
  gap: 0 !important;
}


@media (max-width: 767px) {
  .filter-btn {
    padding: 4px 7px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    font-weight: 600;
    font-size: 0.7rem;
  }
}