/* ============================================================
   GALLERY PAGE
   ============================================================ */

/* Social callout — reuses .hero-social-row / .btn-line.hero-line-btn from home.css */
.gallery-social-callout {
  background: var(--dark);
  padding: 72px 0;
}

.gallery-social-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.gallery-social-inner .sec-title {
  color: var(--white);
}

.gallery-social-inner .sec-title em {
  color: var(--gold-lt);
}

.gallery-social-inner .sec-body {
  color: rgba(240, 228, 192, 0.75);
  max-width: 100%;
  margin: 0 auto;
}

.gallery-social-inner .hero-social-row {
  justify-content: center;
  margin-top: 34px;
}

@media (max-width: 600px) {
  .gallery-social-callout {
    padding: 56px 0;
  }

  .gallery-social-inner .hero-social-row {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-social-inner .hero-social-row .btn-line {
    justify-content: center;
  }
}

.gallery-tabs-container {
  margin-bottom: 40px;
}

.gallery-tabs {
  display: flex;
  gap: 40px;
  border-bottom: 1px solid var(--cream-dark);
  padding-bottom: 0;
}

.gallery-tab {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark-soft);
  cursor: pointer;
  padding: 14px 0;
  position: relative;
  transition: color 0.3s;
  opacity: 0.6;
}

.gallery-tab:hover {
  opacity: 1;
}

.gallery-tab.active {
  color: var(--gold);
  opacity: 1;
  font-weight: 500;
}

.gallery-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.gallery-tab.active::after {
  width: 100%;
}

.gallery-content-section {
  display: none;
  animation: fadeUp 0.6s var(--ease) both;
}

.gallery-content-section.active {
  display: block;
}

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

#videos-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  #videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #videos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
  border-radius: 2px;
}

.gallery-item.is-image {
  aspect-ratio: 1 / 1;
}

.gallery-item.is-video {
  aspect-ratio: 16 / 9;
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.95);
}

.gallery-item.is-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}

.gallery-item:hover img, .gallery-item:hover video {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.gallery-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(10, 8, 5, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.3s, transform 0.3s;
}

.gallery-play-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  margin-left: 4px;
}

.gallery-item:hover .gallery-play-icon {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Pagination */
.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  margin-bottom: 60px;
}

.gallery-page-btn {
  background: transparent;
  border: 1px solid var(--cream-dark);
  color: var(--dark-soft);
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  border-radius: 2px;
}

.gallery-page-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.gallery-page-btn.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.gallery-page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--cream-dark);
  color: var(--dark-soft);
  background: transparent;
}

.gallery-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  font-size: 0.9rem;
  color: var(--dark-soft);
  opacity: 0.5;
}

/* Gallery item hover overlay */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(184, 146, 58, 0);
  transition: background 0.4s;
  pointer-events: none;
}

.gallery-item.is-image:hover .gallery-item-overlay {
  background: rgba(184, 146, 58, 0.08);
}

/* Zoom icon on hover */
.gallery-item.is-image::after {
  content: '⊕';
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.gallery-item.is-image:hover::after {
  opacity: 1;
}

