/* Trip gallery pages — extends styles.css tokens */

.trip-breadcrumb{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px var(--gutter) 0;
  font-size: 0.88rem;
}
.trip-breadcrumb a{
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}
.trip-breadcrumb a:hover{ color: var(--navy-deep); text-decoration: underline; }

.trip-hero{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
}
.trip-hero h1{
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.trip-hero-sub{
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0;
}

.trip-gallery{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.trip-photo{
  display: block;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-md);
  background: var(--fill);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}
.trip-photo:hover{ box-shadow: var(--shadow-hover); }
.trip-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.trip-photo:hover img{ transform: scale(1.03); }

.trip-footer-nav{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--gutter) 16px;
}
.trip-footer-nav a{
  display: inline-block;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 12px 22px;
  border-radius: 999px;
}
.trip-footer-nav a:hover{ background: var(--navy); color: #fff; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 32, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 5vh 5vw;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position: fixed;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 201;
  transition: background 0.15s ease;
}
.lightbox-close{ top: 18px; right: 18px; font-size: 1.7rem; }
.lightbox-prev,
.lightbox-next{
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev{ left: 16px; }
.lightbox-next{ right: 16px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{ background: rgba(255,255,255,0.28); }
.lightbox-count{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255,255,255,0.14);
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 201;
}
