/* ==========================================================================
   Bodas by Luisa Rivera — styles
   Palette from the brand identity: olive green, champagne gold, ivory, ink.
   ========================================================================== */

:root {
  --olive: #6b7558;
  --olive-deep: #4f5841;
  --olive-soft: #e4e6dc;
  --gold: #b08a5a;
  --gold-light: #d4b07e;
  --ivory: #f8f3eb;
  --cream: #efe6d8;
  --blush: #faeeea;
  --ink: #1f2a36;
  --text: #3b3f3a;
  --muted: #6f6f66;
  --line: rgba(176, 138, 90, .35);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --shadow: 0 18px 40px -22px rgba(31, 42, 54, .35);
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 2em;
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--olive); color: var(--ivory); }
.btn-primary:hover { background: var(--olive-deep); color: var(--ivory); }
.btn-outline { border-color: var(--gold); color: var(--ink); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-light { border-color: var(--gold-light); color: var(--ivory); }
.btn-light:hover { background: var(--gold-light); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .35s, box-shadow .35s;
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(248, 243, 235, .96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 54px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; letter-spacing: .28em; }
.brand-sub { font-size: .6rem; letter-spacing: .3em; color: var(--gold); margin-top: .3rem; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-size: .8rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); position: relative; padding: .3rem 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .3s;
}
.nav-list a:hover::after, .nav-list a.is-active::after { right: 0; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: .72rem; letter-spacing: .15em;
}
.lang-switch a, .lang-switch span { padding: .35rem .75rem; text-decoration: none; }
.lang-switch span[aria-current] { background: var(--olive); color: var(--ivory); }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 1.5rem;
    background: var(--ivory); padding: 1.5rem var(--gutter) 2rem;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
    transform: translateY(-120%); visibility: hidden; transition: transform .35s, visibility .35s;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .lang-switch { align-self: flex-start; }
}
@media (max-width: 420px) {
  .brand img { width: 44px; }
  .brand-name { font-size: 1.3rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 920px); min-height: min(100svh, 920px);
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(180deg, var(--ivory), var(--cream));
  overflow: hidden;
}
.hero-waves { position: absolute; inset: var(--header-h) 0 0; pointer-events: none; opacity: .55; overflow: hidden; }
.hero-waves svg { position: absolute; width: min(42vw, 520px); height: auto; }
.hero-waves .w-left { left: -4%; top: 6%; }
.hero-waves .w-right { right: -4%; bottom: 2%; transform: rotate(180deg); }

.hero-content { position: relative; max-width: 52rem; }
.hero-mark { width: min(340px, 70vw); margin: 0 auto 1.5rem; animation: breathe 7s ease-in-out infinite; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--olive); }
.hero .lead { margin: 0 auto 2.2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-tags {
  margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem;
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
  list-style: none; padding: 0;
}
.hero-tags li + li::before { content: "·"; color: var(--gold); margin-right: 1.4rem; }

.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; width: 1px; height: 48px;
  background: linear-gradient(var(--gold), transparent); transform: translateX(-50%);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes breathe { 50% { transform: scale(1.03); opacity: .92; } }
@keyframes cue { 0% { transform: translateX(-50%) scaleY(0); transform-origin: top; } 50% { transform: translateX(-50%) scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin-inline: auto; }
.divider { width: 120px; margin: 1.2rem auto 0; opacity: .9; }

.section-alt { background: #fff; }
.section-olive { background: var(--olive); color: var(--ivory); }
.section-olive h2, .section-olive h3 { color: var(--ivory); }
.section-olive .eyebrow { color: var(--gold-light); }
.section-olive .lead { color: rgba(248, 243, 235, .8); }

/* ---------- Services ---------- */
.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem 2rem 2rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s, box-shadow .4s, border-color .4s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
  transform: scaleX(0); transform-origin: left; transition: transform .5s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; color: var(--gold); margin-bottom: 1.3rem; }
.service-card h3 { margin-bottom: .2em; }
.service-card .tagline { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin-bottom: 1rem; }
.service-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .97rem; }
.service-card li { padding-left: 1.4rem; position: relative; margin-bottom: .45rem; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: var(--gold); }
.service-card .card-link {
  margin-top: auto; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--olive); font-weight: 500;
}
.service-card .card-link:hover { color: var(--gold); }
.service-card.featured { background: var(--olive); color: var(--ivory); border-color: var(--olive); }
.service-card.featured h3 { color: var(--ivory); }
.service-card.featured .tagline, .service-card.featured .card-link { color: var(--gold-light); }
.service-card.featured .service-icon { color: var(--gold-light); }

.legal-note {
  margin: 2.5rem auto 0; max-width: 52rem; font-size: .85rem; color: var(--muted);
  text-align: center; border-top: 1px solid var(--line); padding-top: 1.5rem;
}

/* ---------- Split (about / packages) ---------- */
.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; grid-template-columns: 1fr 1fr; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.split-media { position: relative; isolation: isolate; }
.split-media picture img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; z-index: -1;
  border: 1px solid var(--gold); border-radius: var(--radius);
}
.signature { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--gold); margin: 1.5rem 0 0; line-height: 1; }
.signature-role { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

.stats { display: flex; gap: 2.5rem; margin: 2rem 0; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--olive); line-height: 1; }
.stat span { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Packages ---------- */
.package-includes { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.package-includes li { display: flex; gap: .7rem; align-items: flex-start; }
.package-includes svg { flex: none; width: 20px; height: 20px; margin-top: .3rem; color: var(--gold-light); }

.tiers { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: clamp(3rem, 6vw, 4.5rem); }
.tier {
  border: 1px solid rgba(212, 176, 126, .5); border-radius: var(--radius); padding: 2rem 1.6rem;
  text-align: center; transition: background .3s;
}
.tier:hover { background: rgba(255, 255, 255, .06); }
.tier h3 { font-size: 1.9rem; margin-bottom: .2rem; }
.tier .tier-for { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.tier p { font-size: .95rem; color: rgba(248, 243, 235, .85); margin: 0; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { text-align: center; padding: 0 .5rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 3.2rem; color: var(--gold); line-height: 1; margin-bottom: .8rem;
}
.step h3 { font-size: 1.45rem; }
.step p { font-size: .97rem; color: var(--muted); }

/* ---------- Testimonial ---------- */
.quote { text-align: center; max-width: 46rem; margin: 0 auto; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); font-style: italic; line-height: 1.4; color: var(--ink); }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: translateY(-75%) rotate(45deg); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 0 1.4rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr 1.3fr; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 2rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3rem; }
.contact-list .ci {
  flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #fff;
  display: grid; place-items: center;
}
.contact-list .ci svg { width: 18px; height: 18px; }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; color: var(--ink); font-weight: 400; word-break: break-word; }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.field label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: .6rem .1rem; border-radius: 0; transition: border-color .3s;
  width: 100%;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b08a5a'/%3E%3C/svg%3E") no-repeat right .2rem center / 12px; padding-right: 1.5rem; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--olive); }
.field.invalid input, .field.invalid select { border-bottom-color: #b5533c; }
.form-note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }
.form-status { margin-top: 1rem; font-size: .95rem; color: var(--olive); min-height: 1.5em; }
.form-alt { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(248, 243, 235, .75); padding: 4rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--sans); font-weight: 500; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand img { width: 150px; margin-bottom: 1rem; }
.footer-brand .brand-name { color: var(--ivory); font-size: 1.8rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(212, 176, 126, .25);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8rem;
}

/* Floating WhatsApp */
.float-wa {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--olive); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4);
  transition: transform .3s, background .3s;
}
.float-wa:hover { transform: scale(1.08); background: var(--olive-deep); color: #fff; }
.float-wa svg { width: 26px; height: 26px; }

/* ---------- Reveal on scroll (enabled only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.notfound img { width: 240px; margin: 0 auto 1.5rem; }

/* ---------- Service pages ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--ivory), var(--cream));
  position: relative; overflow: hidden;
}
.page-hero .hero-waves { opacity: .4; inset: var(--header-h) 0 0; overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero .lead { margin-bottom: 2rem; }
.page-hero .hero-actions { justify-content: flex-start; }

.breadcrumb { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--gold); }
.breadcrumb a { text-decoration: none; }

.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.check-list li { padding-left: 1.8rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .9rem; height: .5rem; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }

.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.aside-card h2 { font-size: 1.7rem; }
.aside-card .btn { width: 100%; margin-top: .7rem; }
.content-grid { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: 1fr 340px; align-items: start; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } .aside-card { position: static; } }

.related { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.related a {
  display: block; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
  transition: border-color .3s, transform .3s;
}
.related a:hover { border-color: var(--gold); transform: translateY(-3px); }
.related small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: .4rem; }

.cta-band { text-align: center; }
.cta-band .hero-actions { margin-top: 2rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 230px);
  grid-auto-flow: dense;
}
.g-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--cream); }
.g-item picture, .g-item img { width: 100%; height: 100%; }
.g-item img { object-fit: cover; object-position: center 30%; transition: transform .8s ease; }
.g-item::after {
  content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.0);
  background: linear-gradient(180deg, transparent 60%, rgba(31,42,54,.35));
  opacity: 0; transition: opacity .4s;
}
.g-item:hover img { transform: scale(1.05); }
.g-item:hover::after { opacity: 1; }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
}
.gallery-foot { text-align: center; margin-top: 2.5rem; }
.photo-credit { display: block; margin-top: 1rem; font-size: .78rem; color: var(--muted); }

/* Lightbox (created by main.js) */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(20, 24, 20, .92); }
.lightbox-inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 3.5rem 4rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: none; border: 1px solid rgba(212,176,126,.6); color: var(--ivory);
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .3s;
}
.lightbox button:hover { background: rgba(212,176,126,.25); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-inner { padding: 4rem .75rem; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1rem; transform: none; }
}
