/* ===== GALLERY PAGE HERO ===== */
.gallery-page-hero {
  position: relative;
  min-height: 72vh;
  padding: 120px 20px 80px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  overflow: hidden;
  background: #02040a;
}

.gallery-page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.png') center/cover no-repeat;
  filter: brightness(0.42);
  transform: scale(1.04);
  z-index: 1;
}

.gallery-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    radial-gradient(circle at center, rgba(212,175,55,0.10), transparent 32%),
    linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.82)),
    linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.38), rgba(0,0,0,0.82));
}

.gallery-page-hero-card {
  position: relative;
  z-index: 3;

  width: 90%;
  max-width: 850px;
  min-height: 235px;

  padding: 42px 48px;
  border-radius: 26px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.045)
  );

  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  box-shadow:
    0 28px 80px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,255,255,0.10);

  animation: galleryHeroFade 0.9s ease forwards;
}

.gallery-page-hero-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.10);
  pointer-events: none;
}

.gallery-page-tag {
  display: inline-flex;
  padding: 7px 14px;
  margin-bottom: 15px;

  border-radius: 30px;
  background: rgba(212,175,55,0.10);
  border: 1px solid rgba(212,175,55,0.22);

  color: #d4af37;
  font-size: 13px;
  font-weight: 600;
}

.gallery-page-hero-card h1 {
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 16px;
}

.gallery-page-hero-card h1 span {
  color: #d4af37;
}

.gallery-page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  font-size: 14px;
  margin-bottom: 16px;
}

.gallery-page-breadcrumb a {
  color: #b8b8b8;
  text-decoration: none;
  transition: 0.25s ease;
}

.gallery-page-breadcrumb a:hover {
  color: #d4af37;
}

.gallery-page-breadcrumb span {
  color: #777;
}

.gallery-page-breadcrumb .active {
  color: #d4af37;
}

.gallery-page-subtitle {
  max-width: 650px;
  color: #d8d8d8;
  font-size: 15px;
  line-height: 1.8;
}

@keyframes galleryHeroFade {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .gallery-page-hero {
    min-height: 58vh;
    padding: 105px 18px 55px;
  }

  .gallery-page-hero-bg {
    background-position: center top;
  }

  .gallery-page-hero-card {
    width: 100%;
    min-height: auto;
    padding: 30px 22px;
    border-radius: 22px;
  }

  .gallery-page-hero-card::before {
    inset: 10px;
    border-radius: 17px;
  }

  .gallery-page-tag {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .gallery-page-hero-card h1 {
    font-size: 32px;
  }

  .gallery-page-breadcrumb {
    font-size: 12.5px;
    margin-bottom: 12px;
  }

  .gallery-page-subtitle {
    font-size: 13.5px;
    line-height: 1.65;
  }
}

/* PREMIUM GALLERY SECTION */
.gallery-section {
  padding: 95px 20px;
  background: transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gallery-header {
  max-width: 760px;
  margin: 0 auto 34px;
}

.gallery-tag {
  display: inline-flex;
  padding: 8px 15px;
  margin-bottom: 16px;
  border-radius: 30px;
  background: rgba(212,175,55,0.10);
  border: 1px solid rgba(212,175,55,0.22);
  color: #d4af37;
  font-size: 13px;
  font-weight: 600;
}

.gallery-header h2 {
  font-size: clamp(30px, 3vw, 42px);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.gallery-header h2 span {
  color: #d4af37;
}

.gallery-header p {
  color: #bfc0c4;
  font-size: 15px;
}

/* FILTERS */
.gallery-filters {
  margin: 0 auto 42px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 30px;
  border: 1px solid rgba(212,175,55,0.55);
  background: rgba(255,255,255,0.035);
  color: #d4af37;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #050505;
  transform: translateY(-2px);
}

/* MASONRY GRID */
.gallery-grid {
  max-width: 1280px;
  margin: auto;
  column-count: 3;
  column-gap: 22px;
}

.gallery-item {
  position: relative;
  margin-bottom: 22px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 45px rgba(0,0,0,0.32);
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 22px;
  transition: 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.72);
}

/* OVERLAY */
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,0.70)),
    radial-gradient(circle at center, rgba(212,175,55,0.12), transparent 55%);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: 0.35s ease;
  pointer-events: none;
}

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

.gallery-item .overlay span {
  padding: 10px 24px;
  border-radius: 30px;

  background: rgba(212,175,55,0.14);
  border: 1px solid rgba(212,175,55,0.65);
  color: #d4af37;

  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

/* HIDE FILTERED ITEMS */
.gallery-item.hide {
  display: none;
}

/* MOBILE */
@media (max-width: 992px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-section {
    padding: 70px 18px;
  }

  .gallery-grid {
    column-count: 1;
  }

  .gallery-filters {
    gap: 9px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 12.5px;
  }

  .gallery-item {
    margin-bottom: 18px;
    border-radius: 18px;
  }

  .gallery-item img {
    border-radius: 18px;
  }
}



/* GALLERY MODAL */
.gallery-modal {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 28px;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  z-index: 99999;
}

.gallery-modal.show {
  display: flex;
}

.gallery-modal-img {
  max-width: min(92vw, 1050px);
  max-height: 86vh;
  object-fit: contain;

  border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.25);

  box-shadow:
    0 28px 90px rgba(0,0,0,0.75),
    0 0 35px rgba(212,175,55,0.12);

  animation: galleryZoom 0.35s ease;
}

/* CLOSE */
.gallery-modal-close {
  position: absolute;
  top: 26px;
  right: 32px;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(255,255,255,0.06);
  color: #fff;

  font-size: 32px;
  line-height: 1;
  cursor: pointer;

  transition: 0.3s ease;
}

.gallery-modal-close:hover {
  background: #d4af37;
  color: #050505;
  transform: rotate(90deg);
}

@keyframes galleryZoom {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .gallery-modal {
    padding: 18px;
  }

  .gallery-modal-img {
    max-width: 94vw;
    max-height: 78vh;
    border-radius: 16px;
  }

  .gallery-modal-close {
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}
 
 

/* FEATURED MOMENTS */
.featured-gallery {
  padding: 90px 0;
  background: transparent;
  text-align: center;
  overflow: hidden;
}

.featured-header {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.featured-tag {
  display: inline-flex;
  padding: 7px 14px;
  margin-bottom: 14px;
  border-radius: 30px;
  background: rgba(212,175,55,0.10);
  border: 1px solid rgba(212,175,55,0.22);
  color: #d4af37;
  font-size: 13px;
  font-weight: 700;
}

.featured-header h2 {
  font-size: clamp(30px, 3vw, 42px);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.featured-header h2 span {
  color: #d4af37;
}

.featured-header p {
  color: #bfc0c4;
  font-size: 15px;
}

.featured-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.featured-wrapper::before,
.featured-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.featured-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #020617, transparent);
}

.featured-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, #020617, transparent);
}

.featured-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: featuredScroll 26s linear infinite;
}

.featured-wrapper:hover .featured-track {
  animation-play-state: paused;
}

.featured-item {
  width: 360px;
  height: 230px;
  flex: 0 0 auto;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(212,175,55,0.14);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

.featured-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.75);
}

.featured-item:hover {
  box-shadow: 0 22px 55px rgba(212,175,55,0.18);
}

@keyframes featuredScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* MODAL */
.featured-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(14px);
  z-index: 99999;
}

.featured-modal.show {
  display: flex;
}

.featured-modal-img {
  max-width: min(92vw, 1050px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(212,175,55,0.25);
  box-shadow: 0 28px 90px rgba(0,0,0,0.75);
}

.featured-modal-close {
  position: absolute;
  top: 24px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.featured-modal-close:hover {
  background: #d4af37;
  color: #050505;
}

/* MOBILE */
@media (max-width: 768px) {
  .featured-gallery {
    padding: 70px 0;
  }

  .featured-item {
    width: 270px;
    height: 180px;
  }

  .featured-wrapper::before,
  .featured-wrapper::after {
    width: 55px;
  }

  .featured-track {
    gap: 16px;
    animation-duration: 22s;
  }
}