/* Hero slider, gallery, and lightbox for the royal cinematic design. */

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #030405;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.94) 0%, rgba(5, 6, 8, 0.56) 42%, rgba(5, 6, 8, 0.88) 100%),
    radial-gradient(circle at 50% 14%, rgba(216, 178, 90, 0.18), transparent 28rem),
    linear-gradient(180deg, transparent 70%, #050608 100%);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 112px 56px 56px;
  z-index: 6;
  pointer-events: none;
  border: 1px solid rgba(216, 178, 90, 0.2);
  border-radius: 8px 8px 190px 190px;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.42);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-video,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.1) brightness(0.72);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(115deg, rgba(42, 7, 16, 0.92), rgba(5, 6, 8, 0.44) 48%, rgba(5, 6, 8, 0.9)),
    repeating-linear-gradient(90deg, rgba(216, 178, 90, 0.07) 0 1px, transparent 1px 120px);
}

.hero-content {
  position: relative;
  z-index: 8;
  width: min(100% - 44px, 1180px);
  margin: 0 auto;
  padding-top: 92px;
}

.hero-monogram {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(216, 178, 90, 0.46);
  border-radius: 50%;
  background: rgba(5, 6, 8, 0.42);
  color: var(--pale-gold);
  font-family: "Cinzel", serif;
  font-size: 28px;
  font-weight: 900;
}

.hero-title {
  max-width: 820px;
  color: var(--ivory);
  font-family: "Cinzel", serif;
  font-size: 76px;
  font-weight: 900;
  line-height: 0.98;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
}

.hero-subtitle {
  max-width: 720px;
  margin-top: 22px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 33px;
  font-weight: 700;
  line-height: 1.18;
}

.hero-statement {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(244, 239, 228, 0.76);
  font-size: 17px;
  line-height: 1.82;
}

.hero-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  max-width: 760px;
  margin: 34px 0 28px;
}

.hero-signature span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(216, 178, 90, 0.22);
  background: rgba(5, 6, 8, 0.46);
  color: var(--pale-gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-slider-nav {
  position: absolute;
  right: 42px;
  bottom: 42px;
  z-index: 15;
  display: flex;
  gap: 10px;
}

.hero-prev,
.hero-next {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 178, 90, 0.42);
  border-radius: 50%;
  background: rgba(5, 6, 8, 0.58);
  color: var(--gold);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.hero-prev:hover,
.hero-next:hover {
  transform: translateY(-3px);
  background: var(--gold);
  color: var(--ink);
}

.hero-dots {
  position: absolute;
  left: 42px;
  bottom: 58px;
  z-index: 15;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 3px;
  border: 0;
  background: rgba(244, 239, 228, 0.26);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--gold);
}

.hero-scroll-mark {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 16;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: rgba(244, 239, 228, 0.74);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero-scroll-mark i {
  color: var(--gold);
  animation: royalFloat 1.8s ease-in-out infinite;
}

@keyframes royalFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.gallery-section {
  background: linear-gradient(180deg, rgba(216, 178, 90, 0.04), transparent 34%);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.gallery-filter {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(216, 178, 90, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--pale-gold);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-filter:hover,
.gallery-filter.active {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 118px;
  gap: 14px;
}

.gallery-card {
  position: relative;
  grid-column: span 3;
  grid-row: span 3;
  overflow: hidden;
  border: 1px solid rgba(216, 178, 90, 0.18);
  border-radius: 8px;
  background: var(--obsidian);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:nth-child(6n + 1),
.gallery-card:nth-child(6n + 4) {
  grid-column: span 6;
  grid-row: span 4;
}

.gallery-card:nth-child(6n + 3) {
  grid-column: span 3;
  grid-row: span 4;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 178, 90, 0.56);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.gallery-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.05);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-card:hover .gallery-media {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.08), rgba(42, 7, 16, 0.8));
  color: var(--pale-gold);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.gallery-overlay i {
  font-size: 34px;
}

.gallery-overlay span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-empty-state {
  grid-column: 1 / -1;
  min-height: 320px;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mist);
}

.gallery-empty-state i {
  color: var(--gold);
  font-size: 42px;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.92);
}

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

.modal-content {
  position: relative;
  width: min(100%, 1120px);
  max-height: 90vh;
}

.modal-media-wrap {
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(216, 178, 90, 0.28);
  border-radius: 8px;
  background: #050608;
}

#modalMediaContainer img,
#modalMediaContainer video {
  width: 100%;
  max-height: 86vh;
  display: block;
  object-fit: contain;
}

.modal-close,
.modal-prev,
.modal-next {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 178, 90, 0.42);
  border-radius: 50%;
  background: rgba(5, 6, 8, 0.82);
  color: var(--gold);
  cursor: pointer;
}

.modal-close {
  top: -18px;
  right: -18px;
}

.modal-prev,
.modal-next {
  top: 50%;
  transform: translateY(-50%);
}

.modal-prev {
  left: -22px;
}

.modal-next {
  right: -22px;
}

@media (max-width: 920px) {
  .hero-slider::after {
    inset: 96px 18px 42px;
    border-radius: 8px 8px 100px 100px;
  }

  .hero-title {
    font-size: 54px;
  }

  .hero-subtitle {
    font-size: 28px;
  }

  .hero-statement {
    font-size: 16px;
  }

  .hero-slider-nav {
    right: 22px;
    bottom: 28px;
  }

  .hero-dots {
    left: 22px;
    bottom: 44px;
  }

  .hero-scroll-mark {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery-card,
  .gallery-card:nth-child(6n + 1),
  .gallery-card:nth-child(6n + 3),
  .gallery-card:nth-child(6n + 4) {
    grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 640px) {
  .hero-content {
    width: min(100% - 28px, 1180px);
    padding-top: 74px;
  }

  .hero-monogram {
    width: 66px;
    height: 66px;
    font-size: 22px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 23px;
  }

  .hero-signature span {
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-slider-nav,
  .hero-dots {
    display: none;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-card,
  .gallery-card:nth-child(6n + 1),
  .gallery-card:nth-child(6n + 3),
  .gallery-card:nth-child(6n + 4) {
    grid-column: span 1;
    grid-row: auto;
    height: 320px;
  }

  .modal-prev {
    left: 4px;
  }

  .modal-next {
    right: 4px;
  }

  .modal-close {
    top: 8px;
    right: 8px;
  }
}
