/* =========================================================
   Scott & Tammy — "Lone Star Warmth"
   Palette pulled from a classic Texan "Howdy" feel.
   Once Howdy.jpeg is added, these accents can be tuned to it.
   ========================================================= */

:root {
  /* Palette pulled from Howdy.jpeg — sunset gold sky, navy script,
     brick-red "TEXAS", bluebonnet blue, cactus green, leather brown. */
  --cream:        #FBF1DC;
  --cream-deep:   #F4E6C9;
  --sand:         #E7D6B4;
  --orange:       #D06A2E;
  --orange-deep:  #B0481C;
  --gold:         #E2A63E;
  --brick:        #B23A2E;
  --denim:        #2E4F71;
  --denim-deep:   #213B57;
  --bluebonnet:   #5A6FA0;
  --sage:         #6E8B5A;
  --charcoal:     #2E2A26;
  --muted:        #6B6258;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-hand:    "Caveat", cursive;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(46, 42, 38, 0.12);

  /* Braided-rope band used to separate sections.
     Layer 1 = cylindrical light/shadow so it bulges round.
     Layer 2 = twisted strands with a bright core and dark grooves. */
  --rope:
    linear-gradient(to bottom,
      rgba(44,28,10,0.70) 0%, rgba(44,28,10,0.06) 15%,
      rgba(255,249,232,0.60) 43%, rgba(120,84,44,0.04) 61%,
      rgba(44,28,10,0.55) 85%, rgba(44,28,10,0.78) 100%),
    repeating-linear-gradient(56deg,
      #5c3f1d 0, #5c3f1d 1.5px,
      #6f4f27 3px, #9a7038 6px, #c79c58 8px,
      #ecd49a 10px, #c79c58 12px, #9a7038 14px,
      #6f4f27 17px, #5c3f1d 19.5px, #5c3f1d 21px);
  --rope-edge: 1px solid rgba(44,28,10,0.5);
  --rope-round: inset 0 2px 3px rgba(255,249,232,0.35),
                inset 0 -3px 5px rgba(44,28,10,0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 0.4em;
}

a { color: var(--orange-deep); }

img { max-width: 100%; display: block; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(251, 243, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__star { color: var(--orange); }
.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav__links a {
  color: var(--denim-deep);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav__links a:hover { color: var(--orange-deep); border-color: var(--orange); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--denim);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44,68,89,0.35), rgba(46,42,38,0.65)),
    radial-gradient(circle at 50% 120%, rgba(194,90,43,0.35), transparent 60%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  color: var(--cream);
  padding: 2rem 1.25rem;
  max-width: 720px;
}
.hero__howdy {
  font-family: var(--font-hand);
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  color: #F6C66B;
  margin: 0 0 0.1em;
  transform: rotate(-3deg);
}
.hero__title {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  color: var(--cream);
  margin: 0 0 0.3em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.3);
}
.hero__sub {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: #F4E9D6;
  margin: 0 auto 1.8rem;
  max-width: 36ch;
}
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--orange-deep); transform: translateY(-2px); }
.hero__scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cream);
  font-size: 1.6rem;
  text-decoration: none;
  opacity: 0.85;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== Divider ===== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 460px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}
.divider__line { flex: 1; height: 1px; background: var(--sand); }
.divider__star { color: var(--orange); font-size: 1.2rem; }

/* ===== Sections ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2.5rem);
}
.section--alt {
  max-width: none;
  background: var(--cream-deep);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--orange);
  margin: 0 0 0.1em;
}
.section h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.section__lead { color: var(--muted); font-size: 1.1rem; margin: 0.5rem 0 0; }

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.about__card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.about__photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--orange);
}
.about__card h3 { font-size: 1.6rem; color: var(--denim-deep); }
.about__note {
  font-size: 0.92rem;
  color: var(--sage);
  margin-top: 1rem;
  font-style: italic;
}

/* ===== Friends ===== */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.friend-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.friend-card__photo { aspect-ratio: 4 / 3; width: 100%; }
.friend-card figcaption {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.friend-card figcaption strong { color: var(--denim-deep); font-size: 1.1rem; }
.friend-card figcaption span { color: var(--muted); font-size: 0.95rem; }

/* ===== Where we live ===== */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.home-card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.home-card__photo { aspect-ratio: 16 / 10; width: 100%; }
.home-card h3 { margin: 1.1rem 1.3rem 0.3rem; color: var(--denim-deep); font-size: 1.5rem; }
.home-card p { margin: 0 1.3rem 1.4rem; color: var(--muted); }

/* ===== Congregation ===== */
.congregation {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.congregation__photo { width: 100%; height: 100%; min-height: 280px; }
.congregation__text { padding: 1.75rem 2rem; }
.congregation__text h3 { font-size: 1.7rem; color: var(--denim-deep); }
.congregation__loc {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--orange);
  margin: 0 0 0.8rem;
}

/* ===== Poland ===== */
.poland { text-align: center; }
.poland__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
  background: var(--denim);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}
.poland__logo {
  width: 210px; height: 210px;
  border-radius: var(--radius);
  background: #fff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 12px;
  box-shadow: var(--shadow);
}
.poland__text p { color: #F4E9D6; }
.poland__text strong { color: #F6C66B; }
.poland__meta {
  font-size: 0.95rem;
  color: #C9D4DE;
  margin-top: 0.8rem;
}

/* ===== Placeholder visuals ===== */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, var(--sand), var(--sand) 12px, #efe3c8 12px, #efe3c8 24px);
  color: var(--denim-deep);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem;
  border: 1px dashed var(--denim);
}
.img-placeholder span { background: rgba(251,243,228,0.85); padding: 0.35rem 0.6rem; border-radius: 6px; }
.placeholder-note {
  text-align: center;
  color: var(--sage);
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  background: var(--charcoal);
  color: var(--cream);
  padding: 3rem 1.5rem 3.5rem;
}
.footer__star { color: var(--orange); font-size: 1.6rem; margin-bottom: 0.5rem; }
.footer__line { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.3rem; }
.footer__sub { color: #C9C2B6; margin: 0; }
.footer__howdy { font-family: var(--font-hand); color: #F6C66B; font-size: 1.3rem; }
.footer__howdy-img {
  width: 260px; max-width: 80%; height: auto; margin: 1.75rem auto 0;
  border-radius: 8px; border: 6px solid #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transform: rotate(-2.5deg);
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--sand);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links.open { max-height: 320px; }
  .nav__links a { padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--sand); }
  .nav__toggle { display: flex; }

  .congregation { grid-template-columns: 1fr; }
  .congregation__photo { min-height: 220px; }
  .poland__inner { grid-template-columns: 1fr; text-align: center; }
  .poland__logo { margin: 0 auto; }
  .poland__text { text-align: center; }
}

/* =========================================================
   High-end Texan layer — motifs pulled from Howdy.jpeg
   ========================================================= */

/* Motif icons inherit their color via currentColor */
.hero__flourish .star, .divider__star, .ribbon__star, .ribbon__horn {
  fill: currentColor; display: inline-block; flex: none;
}

/* Braided-rope band (page top edge & section separators).
   A seamless twisted-rope tile repeats across, with a knot at each end. */
.serape, .section--alt::before, .footer::before {
  height: 26px;
  background:
    url("../images/rope-knot.svg") left center / auto 100% no-repeat,
    url("../images/rope-knot.svg") right center / auto 100% no-repeat,
    url("../images/rope-tile.svg") center / auto 100% repeat-x;
  border: none;
  box-shadow: 0 3px 6px rgba(46,42,38,0.22);
}
.serape { display: block; }

/* ---- Nav polish ---- */
.nav { box-shadow: 0 2px 12px rgba(46,42,38,0.06); }
.nav__star { color: var(--gold); filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15)); }

/* ---- Hero ---- */
.hero { min-height: 92vh; }
.hero__scrim {
  background:
    linear-gradient(180deg, rgba(33,59,87,0.55) 0%, rgba(33,59,87,0.15) 38%, rgba(46,42,38,0.45) 100%);
}
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% 104%, rgba(226,166,62,0.65), rgba(208,106,46,0.30) 45%, transparent 72%),
    radial-gradient(40% 30% at 50% 0%, rgba(46,79,113,0.55), transparent 70%);
}
.hero__inner { z-index: 3; }
.hero__scroll { z-index: 3; }
.hero__flourish {
  display: flex; align-items: center; justify-content: center;
  gap: 0.9rem; margin: 0 auto 0.6rem; max-width: 320px;
}
.hero__flourish .rule {
  height: 2px; width: 90px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__flourish .rule:last-child { transform: scaleX(-1); }
.hero__flourish .star { width: 26px; height: 26px; color: var(--gold);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.hero__title { letter-spacing: -0.5px; }
.hero__bonnet {
  position: absolute; bottom: 4px; z-index: 2;
  width: 78px; height: 130px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
  opacity: 0.96;
}
.hero__bonnet--l { left: 4%; transform: rotate(-9deg); }
.hero__bonnet--r { right: 4%; transform: rotate(9deg) scaleX(-1); }

/* ---- Welcome ribbon ---- */
.ribbon {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.7rem, 2.2vw, 1.6rem);
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #E7AE47 0%, #D06A2E 100%);
  border-top: 3px solid rgba(255,255,255,0.55);
  border-bottom: 3px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.ribbon__text {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  color: #4A2410; letter-spacing: 0.2px;
}
.ribbon__horn { width: 52px; height: 26px; color: var(--brick);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.35)); }
.ribbon__star { width: 19px; height: 19px; color: var(--denim-deep); }

/* ---- Divider ---- */
.divider { gap: 0.8rem; max-width: 520px; }
.divider__line { background: linear-gradient(90deg, transparent, var(--sand)); }
.divider__line:last-child { transform: scaleX(-1); }
.divider__star { width: 22px; height: 22px; color: var(--orange); }
.divider__bonnet { width: 26px; height: 46px; opacity: 0.9; }

/* ---- Eyebrow with star bookends ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.eyebrow::before, .eyebrow::after {
  content: ""; width: 15px; height: 15px; flex: none;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.4l2.95 6.46 7.05.82-5.2 4.78 1.4 6.94L12 17.7l-6.2 3.5 1.4-6.94-5.2-4.78 7.05-.82z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.4l2.95 6.46 7.05.82-5.2 4.78 1.4 6.94L12 17.7l-6.2 3.5 1.4-6.94-5.2-4.78 7.05-.82z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- Section heads & alt bands ---- */
.section h2 { letter-spacing: -0.4px; }
.section__head h2::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 0.7rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}
.section--alt {
  background: linear-gradient(180deg, #F4E6C9 0%, #F8EDD4 100%);
  position: relative;
}
.section--alt::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
}

/* ---- Cards: lift, gold accent, depth ---- */
.about__card, .home-card, .friend-card, .congregation {
  position: relative;
  box-shadow: 0 2px 4px rgba(46,42,38,0.05), 0 22px 44px -22px rgba(46,42,38,0.5);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.about__card:hover, .home-card:hover, .friend-card:hover, .congregation:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(46,42,38,0.06), 0 32px 56px -24px rgba(46,42,38,0.55);
}
.about__card { border-top: 4px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, var(--gold), var(--orange)) border-box;
  border: 1px solid transparent; border-top-width: 4px;
}
.home-card__photo, .friend-card__photo { position: relative; }
.about__photo { box-shadow: 0 6px 14px rgba(176,72,28,0.3); border-color: var(--gold); }
.about__card h3, .home-card h3, .friend-card figcaption strong,
.congregation__text h3 { letter-spacing: -0.2px; }

/* Faint Lone Star watermark on about cards */
.about__card::after {
  content: ""; position: absolute; top: 14px; right: 16px;
  width: 26px; height: 26px; opacity: 0.12;
  background: var(--denim);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.4l2.95 6.46 7.05.82-5.2 4.78 1.4 6.94L12 17.7l-6.2 3.5 1.4-6.94-5.2-4.78 7.05-.82z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.4l2.95 6.46 7.05.82-5.2 4.78 1.4 6.94L12 17.7l-6.2 3.5 1.4-6.94-5.2-4.78 7.05-.82z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- Buttons ---- */
.btn {
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
  box-shadow: 0 10px 22px -8px rgba(176,72,28,0.75), inset 0 1px 0 rgba(255,255,255,0.28);
  letter-spacing: 0.2px;
}
.btn:hover { background: linear-gradient(180deg, #DA7536, var(--orange-deep)); }

/* ---- Poland ---- */
.poland__inner {
  background: linear-gradient(155deg, var(--denim) 0%, var(--denim-deep) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 26px 50px -26px rgba(33,59,87,0.8);
}

/* ---- Footer ---- */
.footer {
  position: relative;
  background:
    radial-gradient(70% 60% at 50% -10%, rgba(46,79,113,0.55), transparent 70%),
    var(--charcoal);
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
}
.footer__star { color: var(--gold); }

@media (max-width: 620px) {
  .ribbon__horn { display: none; }
  .hero__bonnet { width: 58px; height: 96px; opacity: 0.85; }
}

/* =========================================================
   Interactive layer — background motifs, gallery, lightbox
   ========================================================= */

/* ---- Fixed Texas-icon watermark behind the page ---- */
.tx-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; opacity: 0.06; pointer-events: none;
}

/* ---- Scroll reveal ---- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---- Friends gallery ---- */
.gallery { display: flex; align-items: center; gap: 0.5rem; }
.gallery__track {
  list-style: none; margin: 0; flex: 1;
  padding: 10px 4px 18px;
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--orange) rgba(0,0,0,0.08);
}
.gallery__track::-webkit-scrollbar { height: 10px; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 6px; }
.gallery__track::-webkit-scrollbar-track { background: rgba(0,0,0,0.08); border-radius: 6px; }

.friend-card {
  flex: 0 0 clamp(220px, 72vw, 280px);
  scroll-snap-align: center;
  margin: 0;
}
.friend-card__btn {
  display: block; width: 100%; padding: 0; border: none; cursor: pointer;
  background: none; position: relative; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.friend-card__photo {
  display: block; aspect-ratio: 4 / 3; width: 100%;
  transition: transform 0.45s ease;
}
.friend-card__btn:hover .friend-card__photo,
.friend-card__btn:focus-visible .friend-card__photo { transform: scale(1.07); }
.friend-card__btn:focus-visible { outline: 3px solid var(--denim); outline-offset: 2px; }
.friend-card__zoom {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(33,59,87,0.32); opacity: 0; transition: opacity 0.3s ease;
}
.friend-card__btn:hover .friend-card__zoom,
.friend-card__btn:focus-visible .friend-card__zoom { opacity: 1; }
.friend-card__zoom .i { width: 34px; height: 34px; fill: #fff;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }

.gallery__arrow {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--sand); background: #fff; color: var(--denim-deep);
  font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.15s ease;
}
.gallery__arrow:hover { background: var(--cream-deep); transform: scale(1.08); }
.gallery__arrow span { margin-top: -3px; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 5vh 5vw;
  background: rgba(26,22,18,0.92);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__stage {
  display: flex; align-items: center; justify-content: center;
  max-width: min(1000px, 92vw); max-height: 80vh;
  transform: scale(0.94); transition: transform 0.3s ease;
}
.lightbox.open .lightbox__stage { transform: scale(1); }
.lightbox__stage img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  border-radius: 10px; border: 5px solid #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
}
.lightbox__stage .img-placeholder {
  width: min(680px, 90vw); height: min(440px, 64vh);
  border-radius: 10px; font-size: 1.05rem;
}
.lightbox__close {
  position: absolute; top: 16px; right: 22px;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.16); color: #fff; font-size: 2rem; line-height: 1;
  cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.32); transform: rotate(90deg); }
.lightbox__caption {
  margin: 0; text-align: center; color: #F4E9D6;
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
}

/* ---- Poland convention gallery ---- */
.poland__gallery { margin-top: 2.75rem; }
.poland__gallery-title {
  font-size: 1.7rem; color: var(--denim-deep); margin: 0 0 0.2rem;
}
.poland__gallery-sub { color: var(--muted); margin: 0 0 1.4rem; }

@media (max-width: 620px) {
  .gallery__arrow { display: none; }
}
