/* =========================================================
   Lazeeza Gallery page
   Page-only CSS. Shared navigation/footer/buttons come from styles.css.
   Desktop first; one width breakpoint at max-width: 767px.
   ========================================================= */

.gallery-page {
  background: var(--paper);
}

.gallery-page .site-header {
  background: rgba(17, 12, 10, .35);
  border-bottom-color: rgba(255, 255, 255, .1);
}

.gallery-page .site-header.scrolled {
  background: rgba(21, 17, 15, .95);
}

/* Hero */
.gallery-hero {
  position: relative;
  min-height: 620px;
  height: 76vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 150px 0 90px;
  background: #15100d;
}

.gallery-hero-media,
.gallery-hero-shade {
  position: absolute;
  inset: 0;
}

.gallery-hero-media {
  background: url("../assets/banquet1.jpg") center 48% / cover no-repeat;
  transform: scale(1.02);
}

.gallery-hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 7, 5, .90) 0%, rgba(12, 7, 5, .58) 48%, rgba(12, 7, 5, .14) 100%),
    linear-gradient(0deg, rgba(12, 7, 5, .74) 0%, rgba(12, 7, 5, .08) 62%);
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.gallery-hero h1 {
  max-width: 900px;
  margin: 8px 0 20px;
  font-family: var(--display);
  font-size: clamp(76px, 8vw, 120px);
  font-weight: 600;
  line-height: .82;
  letter-spacing: -3px;
}

.gallery-hero h1 em {
  color: #f1aa36;
  font-weight: 500;
}

.gallery-hero-content > p:last-child {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.8;
}

/* Gallery grid */
.gallery-section {
  padding: 100px 0 116px;
  background:
    radial-gradient(circle at 8% 8%, rgba(233, 162, 34, .08), transparent 25%),
    var(--cream);
}

.gallery-intro {
  max-width: 740px;
  margin-bottom: 44px;
}

.gallery-intro h2 {
  margin: 2px 0 14px;
  font-family: var(--display);
  font-size: clamp(54px, 6vw, 78px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -2px;
}

.gallery-intro > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/*
  Important: every card has its own aspect-ratio.
  There are no fixed grid rows, so later images can never collapse to 0px.
*/
.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #201815;
  cursor: zoom-in;
  isolation: isolate;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform .45s ease, filter .35s ease;
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(0deg, rgba(10, 7, 5, .72) 0%, rgba(10, 7, 5, .02) 64%);
  transition: background .3s ease;
}

.gallery-card-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gallery-card-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .75);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1.04) contrast(1.02);
}

.gallery-card:hover .gallery-card-overlay,
.gallery-card:focus-visible .gallery-card-overlay {
  background: linear-gradient(0deg, rgba(10, 7, 5, .82) 0%, rgba(10, 7, 5, .08) 70%);
}

.gallery-card:hover .gallery-card-icon,
.gallery-card:focus-visible .gallery-card-icon {
  opacity: 1;
  transform: none;
  background: rgba(216, 65, 33, .9);
}

.gallery-card:focus-visible {
  outline: 3px solid #f1aa36;
  outline-offset: 3px;
}

/* Event CTA */
.gallery-events {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 90px 0;
  background: #15110f;
}

.gallery-events-media,
.gallery-events-shade {
  position: absolute;
  inset: 0;
}

.gallery-events-media {
  background: url("../assets/hero/dining-spread.jpg") center 52% / cover no-repeat;
}

.gallery-events-shade {
  background:
    linear-gradient(90deg, rgba(16, 10, 7, .95) 0%, rgba(16, 10, 7, .75) 50%, rgba(16, 10, 7, .30) 100%),
    linear-gradient(0deg, rgba(16, 10, 7, .50), transparent 64%);
}

.gallery-events-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.gallery-events h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 6.4vw, 88px);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -2.5px;
}

.gallery-events-content > p:not(.eyebrow) {
  max-width: 590px;
  margin: 23px 0 30px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.8;
}

.gallery-events-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.gallery-call-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.gallery-call-link span {
  color: #f1aa36;
  font-size: 18px;
  transition: transform .2s ease;
}

.gallery-call-link:hover span {
  transform: translateX(4px);
}

/* Full-screen slider */
body.gallery-viewer-open {
  overflow: hidden;
}

.gallery-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 6, 5, .98);
  color: #fff;
  overflow: hidden;
}

.gallery-viewer::backdrop {
  background: rgba(8, 6, 5, .98);
}

.viewer-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 122px;
}

.viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  z-index: 5;
}

.viewer-counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.viewer-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.viewer-close:hover,
.viewer-close:focus-visible {
  background: rgba(216, 65, 33, .9);
  border-color: transparent;
}

.viewer-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.viewer-viewport.is-dragging {
  cursor: grabbing;
}

.viewer-track {
  height: 100%;
  display: flex;
  will-change: transform;
  transition: transform .38s cubic-bezier(.22, .61, .36, 1);
}

.viewer-track.no-transition {
  transition: none;
}

.viewer-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 18px 88px;
  display: grid;
  place-items: center;
}

.viewer-slide img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(12, 9, 8, .58);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.viewer-prev {
  left: 24px;
}

.viewer-next {
  right: 24px;
}

.viewer-nav:hover,
.viewer-nav:focus-visible {
  background: rgba(216, 65, 33, .9);
  border-color: transparent;
}

.viewer-bottom {
  min-width: 0;
  padding: 9px 20px 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.viewer-hint {
  margin: 0 0 7px;
  text-align: center;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.viewer-thumbs {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0 5px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.viewer-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #211815;
  opacity: .58;
  cursor: pointer;
}

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

.viewer-thumb.is-active {
  border-color: #f1aa36;
  opacity: 1;
}

.viewer-thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .gallery-hero {
    min-height: 620px;
    height: 100svh;
    padding: 126px 0 70px;
  }

  .gallery-hero-media {
    background-position: 56% center;
  }

  .gallery-hero-shade {
    background: linear-gradient(0deg, rgba(13, 8, 6, .96) 0%, rgba(13, 8, 6, .66) 58%, rgba(13, 8, 6, .30) 100%);
  }

  .gallery-hero h1 {
    font-size: clamp(62px, 18vw, 88px);
    letter-spacing: -2px;
  }

  .gallery-section {
    padding: 76px 0 82px;
  }

  .gallery-intro {
    margin-bottom: 32px;
  }

  .gallery-intro h2 {
    font-size: 50px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .gallery-card {
    aspect-ratio: 1 / 1;
  }

  .gallery-card-overlay {
    padding: 12px;
  }

  .gallery-card-label {
    max-width: calc(100% - 36px);
    font-size: 8px;
    letter-spacing: 1.3px;
  }

  .gallery-card-icon {
    width: 30px;
    height: 30px;
    font-size: 19px;
    opacity: 1;
    transform: none;
  }

  .gallery-events {
    min-height: 620px;
    padding: 78px 0;
  }

  .gallery-events-shade {
    background: rgba(16, 10, 7, .80);
  }

  .gallery-events h2 {
    font-size: clamp(48px, 14vw, 70px);
    letter-spacing: -2px;
  }

  .gallery-events-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .viewer-shell {
    grid-template-rows: 58px minmax(0, 1fr) 102px;
  }

  .viewer-topbar {
    padding: 0 14px;
  }

  .viewer-close {
    width: 40px;
    height: 40px;
    font-size: 27px;
  }

  .viewer-slide {
    padding: 10px 8px;
  }

  .viewer-nav {
    width: 42px;
    height: 42px;
    top: calc(50% - 15px);
    font-size: 31px;
    background: rgba(12, 9, 8, .52);
  }

  .viewer-prev {
    left: 8px;
  }

  .viewer-next {
    right: 8px;
  }

  .viewer-bottom {
    padding: 6px 8px 10px;
  }

  .viewer-hint {
    margin-bottom: 5px;
    font-size: 8px;
  }

  .viewer-thumbs {
    gap: 5px;
  }

  .viewer-thumb {
    flex-basis: 60px;
    width: 60px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card img,
  .gallery-card-overlay,
  .gallery-card-icon,
  .viewer-track,
  .gallery-call-link span {
    transition: none !important;
  }
}
