/* ─── Reset & Base ─────────────────────────────────────────────────────────── */

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

:root {
  --black:   #f0f0f0;
  --white:   #111111;
  --gray:    #666;
  --border:  #2a2a2a;
  --font:    'Georgia', 'Times New Roman', serif;
  --sans:    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--sans);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Header ────────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  background-color: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-style: normal;
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--black);
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
  padding-top: 7rem;
  padding-bottom: 3rem;
  text-align: center;
}

.hero-tagline {
  font-family: var(--font);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.15em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  font-style: italic;
}

/* ─── Slideshow Hero ────────────────────────────────────────────────────────── */

.slideshow-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding: 0;
}

.slideshow-track {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slideshow-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.slideshow-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slideshow-hero.dots-visible .slideshow-dots {
  opacity: 1;
}

.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.slide-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ─── Slideshow Arrows ───────────────────────────────────────────────────────── */

.ss-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
  width: 3rem;
  height: 5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  border-radius: 3px;
}

.ss-arrow-prev { left: 1rem; }
.ss-arrow-next { right: 1rem; }

.slideshow-hero:hover .ss-arrow { opacity: 1; }
.ss-arrow:hover { background: rgba(0, 0, 0, 0.6); }

/* ─── Home Nav Buttons ──────────────────────────────────────────────────────── */

.home-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.5rem 2rem;
}

.home-nav-btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  color: #c0c0c0;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.home-nav-btn:hover {
  border-color: #888;
  color: #f0f0f0;
  background: rgba(255,255,255,0.04);
}

/* ─── Gallery Grid ──────────────────────────────────────────────────────────── */

.gallery {
  padding: 2rem 2rem 2rem;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  background-color: #1e1e1e;
  cursor: pointer;
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(10, 10, 10, 0.45);
}

.gallery-overlay span {
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.gallery-item:hover .gallery-overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Page Main (About / Contact) ───────────────────────────────────────────── */

.page-main {
  flex: 1;
  padding-top: 6rem;
}

.work-main {
  padding-top: 5rem;
}

.work-main .gallery {
  padding-bottom: 0;
}

.work-main .gallery-item {
  aspect-ratio: unset;
  height: calc((100vh - 9rem) / 2);
}

/* ─── About ─────────────────────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
  align-items: start;
}

.about-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #e8e8e8;
}

.about-text h1 {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.about-text p {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-text p em {
  font-style: italic;
  color: var(--black);
}

.about-details {
  margin: 2.5rem 0;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.detail-label {
  color: var(--gray);
  min-width: 110px;
  letter-spacing: 0.05em;
}

/* ─── Contact ───────────────────────────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
  align-items: start;
}

.contact-intro h1 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.contact-intro p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 76px;
  height: 76px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.contact-btn:hover {
  background: #252525;
  border-color: #444;
  transform: translateY(-2px);
}

.contact-btn svg {
  width: 22px;
  height: 22px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: #aaa;
  letter-spacing: 0.03em;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf6e;
  box-shadow: 0 0 0 0 rgba(76, 175, 110, 0.5);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 110, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(76, 175, 110, 0); }
}

/* ─── Form ──────────────────────────────────────────────────────────────────── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #444;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--black);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ─── Button ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--black);
  border: none;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background-color var(--transition);
  align-self: flex-start;
}

.btn:hover {
  background-color: #ccc;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: auto;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--black);
}

/* ─── Hamburger Button ──────────────────────────────────────────────────────── */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Mobile Nav Drawer ─────────────────────────────────────────────────────── */

@media (max-width: 960px) and (min-width: 641px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1.25rem;
    align-items: center;
  }

  .logo {
    font-size: 0.72rem;
    max-width: calc(100% - 60px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0d0d0d;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1.3rem;
    letter-spacing: 0.25em;
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: #f0f0f0;
  }

  /* Gallery */
  .hero {
    padding-top: 5rem;
    padding-bottom: 1.5rem;
  }

  .gallery {
    padding: 0 3px 4rem;
  }

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

  /* About & Contact pages */
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem 5rem;
  }

  .about-image {
    aspect-ratio: 4 / 3;
  }

  /* Form touch targets */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem; /* prevents iOS zoom on focus */
    padding: 0.75rem 0;
    min-height: 44px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
    min-height: 44px;
  }

  /* Footer */
  .site-footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1.5rem;
  }

  .footer-links {
    gap: 1.5rem;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ─── Lightbox ───────────────────────────────────────────────────────────────── */

#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.96);
}

#lb-overlay.active {
  display: block;
}

#lb-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

#lb-img-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  padding: 3.5rem 3rem 1rem;
}

#lb-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#lb-info {
  width: 100%;
  flex-shrink: 0;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  justify-content: center;
}

#lb-info-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem 1.5rem;
  justify-content: center;
  align-items: flex-start;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  padding: 0 0.5rem;
}

.lb-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.lb-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.1rem;
}

.lb-val {
  font-size: 0.85rem;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

.lb-loading,
.lb-no-info {
  color: #555;
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
}

/* Close button */
#lb-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s;
  z-index: 9001;
}
#lb-close:hover { color: #fff; }

/* Prev / Next arrows */
#lb-prev,
#lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
  z-index: 9001;
  user-select: none;
}
#lb-prev { left: 0.25rem; }
#lb-next { right: 0.25rem; }
#lb-prev:hover,
#lb-next:hover { color: rgba(255,255,255,0.85); }

@media (max-width: 600px) {
  #lb-img-wrap {
    padding: 3rem 0.5rem 0;
  }
  #lb-prev,
  #lb-next {
    font-size: 2.2rem;
    padding: 0.5rem;
  }
  .lb-row {
    min-width: 58px;
  }
  .lb-val {
    font-size: 0.78rem;
  }
}

/* ─── Home map section ───────────────────────────────────────────────────────── */

.home-map-section {
  padding: 2.5rem 1.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.home-map-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.75rem;
}

/* ─── Photo Map ──────────────────────────────────────────────────────────────── */

#photo-map {
  width: 100%;
  height: 420px;
  margin-top: 2rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
}

/* Custom pin dot */
.map-pin {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
  cursor: pointer;
  transition: transform 0.15s;
}
.map-pin:hover {
  transform: scale(1.4);
}

/* Override Leaflet popup to match dark theme */
.map-leaflet-popup .leaflet-popup-content-wrapper {
  background: #1a1a1a;
  color: #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  padding: 0;
  overflow: hidden;
  border: 1px solid #2e2e2e;
}
.map-leaflet-popup .leaflet-popup-content {
  margin: 0;
  width: 280px !important;
}
.map-leaflet-popup .leaflet-popup-tip {
  background: #1a1a1a;
}
.map-leaflet-popup .leaflet-popup-close-button {
  color: #888;
  top: 6px;
  right: 8px;
  font-size: 1rem;
}
.map-leaflet-popup .leaflet-popup-close-button:hover {
  color: #fff;
}

/* Popup inner layout */
.map-popup {
  padding: 0;
}
.map-popup-title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  padding: 0.75rem 0.9rem 0.5rem;
  margin: 0;
}
.map-popup-strip {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 0 0.9rem 0.9rem;
  scrollbar-width: none;
}
.map-popup-strip::-webkit-scrollbar {
  display: none;
}
.map-popup-strip img {
  height: 120px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.15s;
  display: block;
}
.map-popup-strip img:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  #photo-map {
    height: 320px;
  }
  .map-leaflet-popup .leaflet-popup-content {
    width: 240px !important;
  }
  .map-popup-strip img {
    height: 90px;
  }
}

/* ─── Page Transitions ───────────────────────────────────────────────────────── */

@keyframes pg-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: pg-in 0.3s ease both;
}

body.page-leaving {
  animation: none !important;
  transition: opacity 0.22s ease;
  opacity: 0;
}

/* ─── Back to Top ────────────────────────────────────────────────────────────── */

#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 38px;
  height: 38px;
  background: rgba(22, 22, 22, 0.92);
  border: 1px solid #333;
  border-radius: 50%;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s, border-color 0.2s;
  z-index: 500;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  color: #fff;
  border-color: #666;
}

/* ─── Stats Strip ────────────────────────────────────────────────────────────── */

.stats-strip {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #1c1c1c;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-num {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.75rem;
  color: #e0e0e0;
  line-height: 1;
}

.stat-label {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a4a4a;
}

@media (max-width: 480px) {
  .stats-strip {
    gap: 1.75rem;
    padding: 1.5rem 1rem;
  }
  .stat-num { font-size: 1.4rem; }
}

/* ─── Featured Photo ─────────────────────────────────────────────────────────── */

.featured-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}

.featured-label {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4a4a4a;
  margin-bottom: 0.75rem;
}

.featured-img-wrap {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 3px;
  background: #111;
}

.featured-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  filter: blur(12px);
  transform: scale(1.02);
  transition: transform 0.7s ease, filter 0.5s ease;
}

.featured-img-wrap img.img-loaded {
  filter: none;
  transform: scale(1);
}

.featured-img-wrap:hover img.img-loaded {
  transform: scale(1.025);
}

.featured-caption {
  font-size: 0.72rem;
  color: #4a4a4a;
  margin-top: 0.6rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .featured-img-wrap img {
    height: 280px;
  }
}

/* ─── Search ─────────────────────────────────────────────────────────────────── */

.search-trigger {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
  /* When inside .nav, add a left divider */
  margin-left: 0.75rem;
  padding-left: 1.25rem;
  border-left: 1px solid #2a2a2a;
}

.search-trigger:hover {
  color: #f0f0f0;
}

/* On mobile fullscreen nav, search icon becomes a large tap target */
@media (max-width: 640px) {
  .search-trigger {
    border-left: none;
    margin-left: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0;        /* hide any text */
    min-height: 44px;
  }
  .search-trigger svg {
    width: 22px;
    height: 22px;
    color: #f0f0f0;
  }
}

#search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(8, 8, 8, 0.97);
  flex-direction: column;
  align-items: center;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}

#search-overlay.active {
  display: flex;
}

.search-bar {
  width: 100%;
  max-width: 560px;
  position: relative;
  margin-bottom: 2.5rem;
  flex-shrink: 0;
}

.search-bar input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #2e2e2e;
  color: #f0f0f0;
  font-size: 1.4rem;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  padding: 0.5rem 2.5rem 0.5rem 0;
  outline: none;
  letter-spacing: 0.03em;
}

.search-bar input::placeholder {
  color: #2e2e2e;
}

.search-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #444;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.search-close:hover { color: #fff; }

.search-results {
  width: 100%;
  max-width: 900px;
  columns: 3;
  column-gap: 6px;
}

.search-result-item {
  break-inside: avoid;
  margin-bottom: 6px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  background: #111;
}

.search-result-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s, transform 0.4s;
}

.search-result-item:hover img {
  opacity: 0.82;
  transform: scale(1.02);
}

.search-result-loc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #ccc;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 1.5rem 0.5rem 0.45rem;
}

.search-empty {
  color: #333;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  padding: 3rem 0;
}

@media (max-width: 600px) {
  .search-results { columns: 2; }
}

/* ─── Social Share in Lightbox ───────────────────────────────────────────────── */

#lb-inquire {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  background: none;
  border: 1px solid #444;
  border-radius: 4px;
  color: #aaa;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
  z-index: 9001;
}

#lb-inquire:hover { color: #fff; border-color: #888; }

#lb-share {
  position: absolute;
  top: 1rem;
  right: 4rem;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s;
  z-index: 9001;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#lb-share:hover { color: #fff; }

#lb-share-toast {
  position: absolute;
  top: 3.4rem;
  right: 1.25rem;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 4px;
  color: #bbb;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.8rem;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 9002;
  white-space: nowrap;
}

#lb-share-toast.show { opacity: 1; }

/* ─── Related Photos in Lightbox ─────────────────────────────────────────────── */

#lb-related {
  width: 100%;
  flex-shrink: 0;
  padding: 0 1.5rem 1rem;
  display: none;
}

#lb-related.has-items {
  display: block;
}

.lb-related-label {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a3a3a;
  margin-bottom: 0.5rem;
}

.lb-related-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.lb-related-strip::-webkit-scrollbar { display: none; }

.lb-related-strip img {
  height: 50px;
  width: auto;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.45;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.lb-related-strip img:hover { opacity: 0.85; }
.lb-related-strip img.active { opacity: 1; outline: 1.5px solid rgba(255,255,255,0.6); }
