/* WEDDING THE MOVIE — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --muted: #8a8a8a;
  --hairline: #e6e6e6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Top nav shared by inner pages ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 32px 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.wordmark-logo img {
  display: block;
  height: 44px;
  width: auto;
}

.wordmark-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wordmark .brand {
  color: var(--muted);
  font-weight: 500;
}

.wordmark .crumb {
  color: var(--ink);
  font-weight: 500;
}

.crumb-sep {
  color: var(--hairline);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.icon-btn:hover { opacity: 0.6; }

.icon-btn svg { width: 44px; height: 44px; }

.pill-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  border: 3px solid currentColor;
  padding: 6.5px 16px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.pill-btn:focus { outline: none; }

.pill-btn.dark:hover { background: var(--ink); color: var(--paper); }
.pill-btn.light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Homepage hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.15) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 40px 48px 0;
}

.hero-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 0 24px;
  transform: translateY(-9vh);
  pointer-events: none;
}

.hero-title .play-btn { pointer-events: auto; }

.hero-title h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1;
}

.hero-title .sub {
  font-size: clamp(13px, 1.7vw, 20px);
  letter-spacing: 0.55em;
  font-weight: 600;
  margin-left: 0.55em; /* offsets the extra tracking so it optically centers */
  margin-top: -6px;
}

.play-btn {
  margin-top: 56px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  background: rgba(0,0,0,0.05);
}

.play-btn:hover {
  transform: scale(1.06);
  background: rgba(255,255,255,0.15);
}

.play-btn svg { width: 34px; height: 34px; margin-left: 5px; }

/* ---------- Video modal ---------- */
.modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16/9;
}

.modal-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.16em;
  border: 1px solid #fff;
  border-radius: 3px;
  padding: 8px 16px;
  cursor: pointer;
  background: transparent;
}

.modal-close:hover { background: #fff; color: #000; }

/* ---------- Photos page ---------- */
.photos-caption {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 64px 32px 4px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-style: italic;
}

.photo-grid {
  width: 100%;
  margin: 0;
  padding: 28px 32px 100px;
  box-sizing: border-box;
  display: flex;
  flex-flow: row wrap;
}

.photo-grid figure {
  flex: auto;
  height: 300px;
  margin: 5px;
  overflow: hidden;
  background: #f2f2f2;
  cursor: pointer;
}

.photo-grid img {
  max-height: 100%;
  min-width: 100%;
  object-fit: cover;
  display: block;
  vertical-align: bottom;
}

.photo-grid figure img { transition: transform 0.4s ease; }
.photo-grid figure:hover img { transform: scale(1.03); }

@media (max-width: 860px) {
  .photo-grid figure { height: 220px; margin: 4px; }
}

@media (max-width: 560px) {
  .photo-grid figure { height: 160px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  background: var(--paper);
  display: none;
  overflow-y: auto;
}

.lightbox.open { display: block; }

.lightbox-image-wrap {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 48px;
  text-align: center;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 74vh;
  display: inline-block;
}

.lightbox-nav {
  text-align: center;
  margin: 28px 0 80px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.lightbox-nav button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 4px 6px;
}

.lightbox-nav button:hover { color: var(--ink); }

@media (max-width: 860px) {
  .lightbox-image-wrap { padding: 0 24px; }
}

@media (max-width: 860px) {
  .site-header, .hero-nav { padding-left: 24px; padding-right: 24px; }
  .photos-caption, .photo-grid { padding-left: 24px; padding-right: 24px; }
  .pill-btn { padding: 9px 16px; font-size: 11px; }
}
