/* ===================================
   PALM CITY — GALLERY PAGE STYLES
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --brand-dark: #0a2f1d;
  --brand-mid: #0f462a;
  --brand-light: #166534;
  --brand-neon: #10b981;
  --charcoal: #1a1a1a;
  --text-main: #212529;
  --text-mid: #495057;
  --text-light: #868e96;
  --cream: #ffffff;
  --cream-deep: #f8f9fa;
  --white: #ffffff;
  --shadow-sm: 0 4px 15px rgba(0,0,0,0.03);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  color: var(--text-main);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== BACK BUTTON ===== */
.gallery-back-btn {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
}

.gallery-back-btn:hover {
  background: var(--brand-dark);
  color: var(--white);
  transform: translateX(-3px);
}

/* ===== HERO ===== */
.gallery-hero {
  position: relative;
  height: 45vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--brand-dark);
}

.gallery-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.gallery-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,47,29,0.3) 0%, rgba(10,47,29,0.7) 100%);
}

.gallery-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.gallery-hero__content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.gallery-hero__content p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
}

/* ===== FULL GALLERY GRID ===== */
.full-gallery {
  padding: 6rem 0;
  background: var(--cream);
}

.full-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.full-gallery__item {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: var(--radius);
}

.full-gallery__item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.full-gallery__item img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.full-gallery__item:hover img {
  transform: scale(1.08);
}

.full-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,47,29,0.3) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.full-gallery__item:hover::after {
  opacity: 1;
}

/* Stagger delays */
.full-gallery__item:nth-child(1) { transition-delay: 0.05s; }
.full-gallery__item:nth-child(2) { transition-delay: 0.1s; }
.full-gallery__item:nth-child(3) { transition-delay: 0.15s; }
.full-gallery__item:nth-child(4) { transition-delay: 0.2s; }
.full-gallery__item:nth-child(5) { transition-delay: 0.25s; }
.full-gallery__item:nth-child(6) { transition-delay: 0.3s; }
.full-gallery__item:nth-child(7) { transition-delay: 0.35s; }
.full-gallery__item:nth-child(8) { transition-delay: 0.4s; }
.full-gallery__item:nth-child(9) { transition-delay: 0.45s; }
.full-gallery__item:nth-child(10) { transition-delay: 0.5s; }

/* ===== CTA ===== */
.gallery-cta {
  background: var(--brand-dark);
  padding: 5rem 0;
  text-align: center;
}

.gallery-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 400;
}

.gallery-cta p {
  color: rgba(255,255,255,0.7);
  margin: 0 auto 2rem;
  max-width: 500px;
}

.gallery-cta__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--brand-neon);
  color: var(--white);
  border: 2px solid var(--brand-neon);
}

.btn--primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}

.lightbox__close:hover {
  background: var(--brand-neon);
  border-color: var(--brand-neon);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .full-gallery__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .gallery-hero {
    height: 35vh;
    min-height: 250px;
  }

  .gallery-back-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .gallery-cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .full-gallery__grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0 0.8rem;
  }

  .gallery-cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .gallery-cta__buttons .btn {
    width: 100%;
    justify-content: center;
  }
}