.container { width: min(100% - var(--gutter) * 2, var(--content)); margin-inline: auto; }
.section { padding-block: var(--section-space); scroll-margin-top: 20px; }
.eyebrow { font: 500 11px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .24em; color: var(--clay); margin: 0 0 18px; }
.section-title { font: 400 var(--title-size)/1.06 var(--serif); letter-spacing: -.035em; margin: 0 0 24px; text-wrap: balance; }
.section-title em { font-weight: 400; color: var(--olive); }
.section-rule { width: 56px; height: 1px; background: var(--clay); margin: 0 0 24px; }
.body-copy { font-size: var(--body-size); line-height: 1.85; color: var(--muted); margin: 0 0 18px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 15px 24px; border: 1px solid var(--olive); background: var(--olive); color: var(--white); font: 500 11px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; transition: background .2s; }
.button:hover { background: var(--olive-dark); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-160%); padding: 12px; background: var(--paper); color: var(--ink); }
.skip-link:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 20; margin-bottom: -81px; background: var(--glass); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); transition: background .2s, color .2s; }
.header.is-overlay { background: transparent; border-color: transparent; color: var(--cream); backdrop-filter: none; }
.header.is-overlay .header__amp { color: var(--cream); }
.header.is-overlay .navigation__link::after { background: var(--cream); }
.header__inner { min-height: 80px; display: flex; justify-content: center; align-items: center; gap: 20px; }
.header__wordmark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; min-height: 44px; text-decoration: none; }
.header__sprig { width: 44px; height: 32px; filter: brightness(.4) sepia(.4); }
.header.is-overlay .header__sprig { filter: none; }
.header__amp { font-family: var(--script); font-size: 1.25em; color: var(--clay); padding-inline: 3px; }
.navigation { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.navigation__link { display: inline-flex; min-height: 44px; align-items: center; position: relative; font: 500 11px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .16em; text-decoration: none; white-space: nowrap; }
.navigation__link::after { content: ""; position: absolute; inset: auto 0 5px; height: 1px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.navigation__link:hover::after, .navigation__link[aria-current]::after { transform: scaleX(1); }
.navigation__link--rsvp { padding: 0 20px; border: 1px solid var(--line); }
.hero { position: relative; isolation: isolate; min-height: clamp(570px, 76svh, 880px); display: flex; align-items: center; color: var(--cream); }
.hero__picture, .hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__picture { overflow: hidden; }
.hero__image { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.hero__shade { background: linear-gradient(90deg, var(--hero-shade), var(--hero-edge) 75%), linear-gradient(0deg, var(--hero-shade), var(--photo-clear) 40%), linear-gradient(180deg, var(--hero-shade), var(--photo-clear) 25%); }
.hero__content { padding-block: 140px 100px; }
.hero__eyebrow { color: var(--cream); font-size: 10px; opacity: .85; margin-bottom: clamp(24px, 4vw, 48px); }
.hero__invitation { font: 400 12px/1.5 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin: 0 0 18px; }
.hero__title { font: 400 clamp(54px, 7.7vw, 116px)/.98 var(--serif); letter-spacing: -.045em; margin: 0; max-width: 850px; text-wrap: balance; }
.hero__amp { font-family: var(--script); font-size: .94em; padding-inline: .04em; }
.hero__ornament { display: flex; align-items: center; width: 300px; max-width: 80%; gap: 10px; color: var(--cream); margin: 24px 0; }
.hero__ornament > span:not(.hero__heart) { flex: 1; height: 1px; background: currentColor; opacity: .6; }
.hero__sprig { width: 64px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1; }
.hero__sprig--mirror { transform: scaleX(-1); }
.hero__heart { font-size: 28px; line-height: 1; }
.hero__date { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; font: 400 clamp(14px, 1.2vw, 17px)/1.6 var(--sans); letter-spacing: .12em; }
.hero__script { font: 400 clamp(30px, 3.3vw, 46px)/1.2 var(--script); margin: 20px 0 26px; }
.hero__button { display: inline-flex; align-items: center; gap: 32px; min-height: 46px; margin-top: 28px; border-bottom: 1px solid var(--cream); color: var(--cream); text-decoration: none; font: 400 10px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.hero__button > span { font-size: 20px; }
.hero__scroll { position: absolute; bottom: 25px; left: var(--gutter); display: flex; align-items: center; gap: 14px; text-decoration: none; font: 10px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.hero__scroll > span:first-child { font: 30px/1 var(--serif); }
.hero-scene { position: relative; isolation: isolate; width: 100%; max-width: var(--hero-max-width); margin-inline: auto; }
.hero-scene .countdown { position: absolute; inset: auto 0 0; z-index: 2; padding-block: 22px 26px; background: var(--countdown-panel); text-shadow: 0 1px 2px var(--photo-shade), 0 2px 7px var(--photo-shade); }
.hero-scene .countdown__title { margin-bottom: 16px; }
.hero-scene .countdown__title, .hero-scene .countdown__number { text-shadow: 0 2px 3px var(--countdown-text-shadow), 0 3px 8px var(--photo-shade); }
.hero-scene .countdown { overflow: visible; }
.hero-scene .countdown__botanical { display: none; }
.hero-scene .hero__scroll { bottom: 180px; }
.countdown { position: relative; overflow: hidden; padding-block: clamp(38px, 5vw, 64px); background: var(--olive); color: var(--cream); text-align: center; }
.countdown__inner { position: relative; z-index: 1; }
.countdown__eyebrow { font-size: 9px; color: var(--cream); opacity: .75; margin-bottom: 8px; }
.countdown__title { font: 400 clamp(25px, 2.6vw, 36px)/1.2 var(--serif); margin: 0 0 28px; }
.countdown__numbers { max-width: 570px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: clamp(5px, 1.2vw, 20px); }
.countdown__unit { display: grid; gap: 5px; min-width: 0; }
.countdown__number { font: 400 clamp(36px, 5vw, 64px)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.countdown__label { font: 400 9px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.countdown__separator { font: 500 clamp(28px, 4vw, 48px)/1 var(--serif); opacity: 1; text-shadow: 0 2px 3px var(--countdown-text-shadow), 0 3px 8px var(--photo-shade); }
.countdown__botanical { position: absolute; width: clamp(125px, 20vw, 240px); height: 95%; top: 3%; fill: none; stroke: var(--cream); stroke-width: .8; opacity: .4; }
.countdown__botanical--left { left: 2%; transform: rotate(18deg); }
.countdown__botanical--right { right: 2%; transform: scaleX(-1) rotate(18deg); }
.about { overflow: hidden; }
.about__layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(36px, 8vw, 120px); }
.about__copy { max-width: 450px; }
.about__rule { width: 56px; height: 1px; background: var(--clay); margin: 0 0 24px; }
.about__signature { font: 400 clamp(35px, 3.7vw, 48px)/1.2 var(--script); color: var(--clay); margin: 28px 0 0; }
.about__sprig { width: 105px; height: 45px; fill: none; stroke: var(--olive); stroke-width: 1; }
.about__visual { position: relative; padding: 24px 14px 0; }
.about__photo { position: relative; z-index: 1; margin: 0; background: var(--paper-light); padding: 12px 12px 22px; box-shadow: var(--about-photo-shadow); transform: rotate(3deg); }
.about__image { width: 100%; height: auto; aspect-ratio: 5/4; object-fit: cover; object-position: 50% 43%; }
.about__zoom { display: block; cursor: zoom-in; }
.lightbox.photo-preview { background: transparent; overflow: hidden; }
.lightbox.photo-preview[open] { animation: none; }
.lightbox.photo-preview::backdrop { background: var(--photo-preview-overlay); animation: photo-backdrop-in .38s ease both; }
.lightbox.photo-preview.is-closing::backdrop { animation: photo-backdrop-out .26s ease both; }
.photo-preview .lightbox__layout { padding: 48px 24px; }
.photo-preview .lightbox__figure { width: 100%; }
.photo-preview .lightbox__stage { height: calc(100svh - 96px); overflow: visible; }
.photo-preview .lightbox__image { width: auto; height: auto; max-height: calc(100svh - 96px); max-width: 100%; transform-origin: 0 0; transition: none; box-shadow: var(--shadow); cursor: zoom-out; }
.photo-preview .lightbox__caption { display: none; }
.photo-preview .lightbox__close { position: fixed; z-index: 2; }
@keyframes photo-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.about__photo-note { text-align: center; font: 400 clamp(24px, 2.4vw, 32px)/1.2 var(--script); color: var(--clay); padding-top: 15px; text-wrap: balance; }
.about__botanical { position: absolute; width: 185px; height: 250px; right: -68px; bottom: 22px; fill: none; stroke: var(--olive); stroke-width: 1; transform: rotate(25deg); }
.about__quote { font: 400 clamp(28px, 3vw, 40px)/1.05 var(--script); color: var(--clay); margin: 38px 0 0; text-align: center; transform: rotate(-3deg); }
.about__quote > span { padding-left: 25px; }
.gallery { background: var(--paper-deep); }
.gallery__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.gallery__intro-wrap { max-width: 360px; padding-top: 0; text-align: center; }
.gallery__heart { width: clamp(70px, 7vw, 95px); height: auto; margin: 8px auto 18px; }
.gallery__heading .section-title { max-width: 650px; }
.gallery__intro { max-width: 360px; font-size: 14px; margin: 0 0 8px; }
.gallery__notice { color: var(--muted); font: 12px/1.7 var(--sans); margin: 0 0 28px; }
/* Masonry bez biblioteki: kolumny zachowują naturalne proporcje fotografii. */
.gallery__grid { display: block; columns: 3; column-gap: 20px; }
.gallery__item { display: block; position: relative; break-inside: avoid; margin: 0 0 20px; overflow: hidden; border-radius: 10px; text-decoration: none; box-shadow: var(--soft-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.gallery__image { display: block; width: 100%; height: auto; object-fit: contain; }
.gallery__item::after { content: ""; position: absolute; inset: 65% 0 0; background: linear-gradient(var(--photo-clear), var(--photo-shade)); pointer-events: none; }
.gallery__caption { display: flex; justify-content: space-between; gap: 8px; align-items: center; position: absolute; z-index: 1; inset: auto 16px 12px; color: var(--cream); font: 400 clamp(28px, 3vw, 40px)/1.15 var(--serif); }
.gallery__caption > span { font: 18px/1 var(--sans); }
@media (hover: hover) {
  .gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
@media (max-width: 1000px) { .gallery__grid { columns: 2; } }
@media (max-width: 540px) { .gallery__grid { columns: 1; } }
.gallery .lightbox__layout { padding: 48px 2.5vw 80px; }
.gallery .lightbox__figure { width: 95vw; max-width: 95vw; }
.gallery .lightbox__stage { height: min(90vh, calc(100svh - 160px)); min-width: 0; }
.gallery .lightbox__image { width: auto; height: auto; max-width: 95vw; max-height: 90vh; object-fit: contain; min-width: 0; min-height: 0; cursor: zoom-out; }
.gallery .lightbox__stage .lightbox__image { max-height: min(90vh, calc(100svh - 160px)); }
.gallery .lightbox__close, .gallery .lightbox__arrow { z-index: 2; background: var(--overlay); border-radius: 50%; }
.gallery .lightbox__arrow { top: auto; bottom: 12px; }
.gallery .lightbox__arrow--prev { left: 25%; }
.gallery .lightbox__arrow--next { right: 25%; }
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: var(--overlay); color: var(--cream); }
.lightbox::backdrop { background: var(--overlay); }
.lightbox[open] { animation: lightbox-open .25s ease both; }
.lightbox__layout { position: relative; display: grid; align-content: center; min-height: 100%; padding: 70px 90px; }
.lightbox__figure { width: min(100%, 1150px); margin: 0 auto; }
.lightbox__stage { display: grid; place-items: center; height: min(72svh, 850px); overflow: hidden; touch-action: pan-y; }
.lightbox__image { width: 100%; height: 100%; object-fit: contain; opacity: 1; transform: scale(1); transition: opacity .18s ease, transform .25s ease; }
.lightbox__image.is-changing { opacity: 0; transform: scale(.98); }
.lightbox__caption { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; font: 24px/1.3 var(--serif); }
.lightbox__count { font: 12px/1.5 var(--sans); align-self: center; letter-spacing: .14em; }
.lightbox__close, .lightbox__arrow { position: absolute; color: var(--cream); border: 0; background: transparent; display: grid; place-items: center; min-width: 48px; min-height: 48px; font: 44px/1 var(--serif); }
.lightbox__close { top: 16px; right: 20px; }
.lightbox__arrow { top: 45%; font-size: 64px; }
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }
.lightbox__hint { margin: 20px 0 0; font: 11px/1.5 var(--sans); text-align: center; opacity: .7; }
.faq { overflow: clip; }
.faq__layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 8vw, 110px); }
.faq__heading { position: relative; }
.faq__intro { font-size: 15px; max-width: 330px; }
.faq__botanical { width: 125px; height: 140px; fill: none; stroke: var(--olive); stroke-width: .9; margin: 28px 0 -20px; transform: rotate(-22deg); }
.faq__list { padding-top: 8px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__question { list-style: none; display: flex; gap: 20px; align-items: center; justify-content: space-between; min-height: 86px; padding-block: 20px; font: 500 clamp(20px, 1.8vw, 25px)/1.25 var(--serif); cursor: pointer; }
.faq__question::-webkit-details-marker { display: none; }
.faq__plus { position: relative; flex: 0 0 16px; height: 16px; color: var(--clay); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; width: 14px; height: 1px; top: 7px; left: 1px; background: currentColor; }
.faq__plus::after { transform: rotate(90deg); transition: transform .2s; }
.faq__item[open] .faq__plus::after { transform: rotate(0); }
.faq__answer { font: 15px/1.8 var(--sans); color: var(--muted); margin: 0 25px 24px 0; }
.rsvp { background: var(--paper-deep); }
.rsvp__layout { display: grid; grid-template-columns: .85fr 1.15fr; box-shadow: var(--soft-shadow); background: var(--paper-light); }
.rsvp__visual { min-width: 0; overflow: hidden; }
.rsvp__image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rsvp__panel { min-width: 0; padding: clamp(28px, 4vw, 64px); }
.rsvp__rule { width: 56px; height: 1px; background: var(--clay); margin: 0 0 24px; }
.rsvp__panel .section-title { font-size: clamp(36px, 3.7vw, 54px); }
.rsvp__intro { font-size: 15px; margin-top: -8px; }
.rsvp__deadline { font: 12px/1.6 var(--sans); color: var(--clay); border-bottom: 1px solid var(--line); padding-bottom: 20px; margin: 0 0 25px; }
.rsvp__form { display: grid; gap: 18px; }
.rsvp__field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.rsvp__label { font: 500 13px/1.5 var(--sans); }
.rsvp__label > span { color: var(--clay); }
.rsvp__input { display: block; width: 100%; min-width: 0; min-height: 49px; padding: 12px 13px; background: var(--paper-light); color: var(--ink); border: 1px solid var(--line); font: 16px/1.5 var(--sans); }
.rsvp__input::placeholder { color: var(--muted); opacity: 1; font-size: 14px; }
.rsvp__input:focus { border-color: var(--olive); }
.rsvp__input--textarea { resize: vertical; min-height: 100px; }
.rsvp__help { font: 11px/1.6 var(--sans); color: var(--muted); margin: 0; }
.rsvp__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rsvp__choices .rsvp__label { flex: 1; }
.rsvp__submit { width: 100%; justify-content: space-between; }
.footer { padding: 48px var(--gutter) 32px; text-align: center; background: var(--paper); }
.footer__sprig { width: 100px; height: 45px; fill: none; stroke: var(--olive); stroke-width: .9; margin-inline: auto; }
.footer__names { font: 400 40px/1.1 var(--serif); margin: 10px 0 12px; }
.footer__names > span { font-family: var(--script); color: var(--clay); }
.footer__date { font: 10px/1.5 var(--sans); letter-spacing: .25em; color: var(--clay); margin: 0 0 16px; }
.footer__thanks { font: 13px/1.7 var(--sans); color: var(--muted); margin: 0; }
.footer__top { display: inline-flex; min-height: 44px; align-items: center; font: 10px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-top: 15px; text-decoration: none; }
@keyframes lightbox-open { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 761px) {
  .header__inner { width: min(100% - var(--gutter) * 2, calc(var(--hero-max-width) - 48px)); }
  .hero { min-height: 900px; align-items: flex-start; }
  .hero__image { object-position: center 40%; }
  .hero__content { padding-block: 96px 220px; text-align: center; }
  .hero__invitation { font-size: 11px; margin-bottom: 12px; }
  .hero__title { margin-inline: auto; font-size: clamp(42px, 4vw, 58px); }
  .hero__ornament { width: 240px; margin: 10px auto; }
  .hero__date { justify-content: center; font-size: 14px; }
}
@media (min-width: 1600px) { .hero__content { width: min(100% - var(--gutter) * 2, 1400px); } }
@media (max-width: 1000px) {
  .header__wordmark { font-size: 23px; }
  .navigation { gap: 20px; }
  .about__layout { gap: 44px; }
  .rsvp__layout { grid-template-columns: .8fr 1.2fr; }
  .rsvp__choices { grid-template-columns: 1fr; }
  .gallery__grid { gap: 12px; }
  .gallery__caption { font-size: 20px; inset-inline: 12px; }
}
@media (max-width: 760px) {
  .header { margin-bottom: -57px; }
  .header:not(.is-overlay) { transition: none; }
  .header.is-overlay { color: var(--navigation-black); }
  .header .navigation__link { font-weight: 700; }
  .header.is-overlay .navigation__link { text-shadow: none; }
  .header.is-overlay .navigation__link::after { background: var(--navigation-black); }
  .header__inner { min-height: 56px; justify-content: center; gap: 8px; padding-block: 6px; }
  .header__wordmark { display: inline-flex; flex-basis: 32px; }
  .header__sprig { width: 32px; height: 26px; }
  .navigation { min-width: 0; justify-content: center; gap: clamp(10px, 2.8vw, 22px); }
  .navigation__link { font-size: 10px; letter-spacing: .09em; }
  .navigation__link--rsvp { padding: 0; border: 0; }
  .hero { min-height: clamp(820px, 105svh, 1050px); align-items: flex-start; }
  .hero-scene .countdown { padding-block: 18px 20px; }
  .hero-scene .countdown__title { font-size: clamp(21px, 5.5vw, 28px); margin-bottom: 12px; }
  /* Ten sam kadr u góry; kontener przycina wyłącznie nadmiar wody na dole. */
  .hero__image { height: clamp(820px, 105svh, 1050px); object-position: 53% center; }
  .hero__shade { background: linear-gradient(90deg, var(--hero-shade), var(--hero-edge)), linear-gradient(0deg, var(--hero-shade), var(--photo-clear) 75%), linear-gradient(180deg, var(--hero-shade), var(--photo-clear) 30%); }
  .hero__content { padding-block: 60px 250px; text-align: center; }
  .hero__title { max-width: 480px; margin-inline: auto; font-size: clamp(48px, 12vw, 70px); }
  .hero__ornament { margin: 12px auto; }
  .hero__eyebrow { margin-bottom: 30px; }
  .hero__date { justify-content: center; font-size: 12px; letter-spacing: .04em; gap: 8px; }
  .hero__scroll { left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .hero__script { font-size: 34px; }
  .countdown__botanical { opacity: .18; width: 145px; }
  .countdown__botanical--left { left: -40px; }
  .countdown__botanical--right { right: -40px; }
  .about__layout { grid-template-columns: 1fr; gap: 25px; }
  .about__copy { max-width: 550px; }
  .about__visual { width: min(100%, 460px); margin: auto; }
  .about__botanical { right: -35px; width: 140px; }
  .gallery__heading { display: block; }
  .gallery__intro { max-width: 480px; }


  .gallery__caption { font-size: 22px; }
  .faq__layout { grid-template-columns: 1fr; gap: 28px; }
  .faq__heading { padding-right: 60px; }
  .faq__botanical { position: absolute; right: -15px; bottom: 0; width: 90px; height: 130px; opacity: .6; }
  .faq__question { min-height: 76px; }
  .rsvp__layout { grid-template-columns: 1fr; }
  .rsvp__visual { max-height: 420px; }
  .rsvp__image { height: 420px; object-position: center 28%; }
  .rsvp__panel { padding: 32px 24px; }
  .lightbox__layout { padding: 70px 16px 90px; }
  .lightbox__stage { height: 65svh; }

  .lightbox__arrow { top: auto; bottom: 15px; font-size: 46px; }
  .lightbox__arrow--prev { left: 25%; }
  .lightbox__arrow--next { right: 25%; }
  .lightbox__hint { font-size: 10px; }
}
@media (max-width: 380px) {
  .navigation { gap: 10px; }
  .hero__invitation { font-size: 10px; letter-spacing: .24em; }
  .hero__title { font-size: 48px; }
  .hero__date { max-width: none; gap: 4px 8px; }
  .hero__date-dot { display: none; }
  .hero__script { font-size: 30px; }
  .countdown__label { font-size: 8px; letter-spacing: .1em; }
  .gallery__caption { font-size: 19px; inset: auto 10px 12px; }
  .rsvp__panel { padding: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__image,.lightbox__image,.navigation__link::after { transition: none; }
  .lightbox[open] { animation: none; }
}

/* Nasza historia — tekst i oś pozostają niezależne od ilustracji. */
.story { overflow: clip; background: var(--paper); color: var(--clay); }
.story__intro { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 20px; }
.story__copy { text-align: center; position: relative; z-index: 1; }
.story__eyebrow { margin: 0; font: 500 clamp(20px, 2vw, 27px)/1.4 var(--serif); letter-spacing: .18em; text-transform: uppercase; }
.story__divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 12px auto 18px; font: 30px/1 var(--serif); }
.story__divider > span { height: 1px; width: 80px; background: var(--clay); opacity: .6; }
.story__names { font: italic 500 clamp(40px, 4.3vw, 64px)/1.1 var(--serif); margin: 0 0 20px; }
.story__subtitle { font: 500 clamp(17px, 1.6vw, 21px)/1.5 var(--serif); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 24px; }
.story__lead { max-width: 450px; margin: auto; font: 400 clamp(19px, 1.6vw, 22px)/1.6 var(--serif); color: var(--ink); }
.story__sprig { width: 125px; height: 62px; fill: none; stroke: var(--olive); margin: 24px auto 0; }
.story__illustration { width: 100%; height: auto; object-fit: contain; }
.story__timeline { list-style: none; max-width: 930px; padding: 0; margin: 50px auto 0; position: relative; }
.story__timeline::before { content: ""; position: absolute; left: 32%; top: 0; bottom: 20px; width: 1px; background: var(--clay); opacity: .5; }
.story__event { display: grid; grid-template-columns: 23% 18% 1fr; gap: 0; align-items: center; position: relative; padding: 26px 0; }
.story__date { padding-right: 24px; text-align: right; font: 400 20px/1.5 var(--serif); letter-spacing: .08em; }
.story__date > p { margin: 8px 0; }
.story__label { text-transform: uppercase; color: var(--ink); font-size: 18px; }
.story__medallion { width: min(100%, 140px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(ellipse at 35% 25%, var(--paper-light), var(--paper-deep)); border: 1px solid var(--line); position: relative; margin: auto; display: grid; place-items: center; }
.story__medallion::after { content: "♡"; position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); background: var(--paper); font: 24px/1 var(--serif); }

.story__medallion > svg { width: 55%; height: 55%; fill: none; stroke: var(--clay); }
.story__event-copy { padding-left: 30px; }
.story__event-copy > h3 { margin: 0 0 10px; font: 400 clamp(32px, 3.2vw, 45px)/1.2 var(--script); }
.story__event-copy > p { font: 400 clamp(19px, 1.5vw, 22px)/1.5 var(--serif); color: var(--ink); margin: 0; }
.story__reveal { opacity: .08; transform: translateY(22px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.65,.3,1); }
.story__illustration.story__reveal { transform: translateY(18px) scale(.98); transition-duration: 1.1s; }
.story__reveal.is-visible, .story__reveal:focus-within { opacity: 1; transform: none; }
.story__illustration.story__reveal.is-visible { transform: none; }
@media (max-width: 760px) {
  .story__intro { grid-template-columns: 1fr; gap: 16px; }
  .story__illustration { max-width: 600px; margin: auto; }
  .story__timeline { margin-top: 24px; }
  .story__timeline::before { left: 33px; }
  .story__event { grid-template-columns: 66px minmax(0, 1fr); align-items: start; padding: 22px 0; column-gap: 20px; }
  .story__medallion { grid-column: 1; grid-row: 1 / span 2; width: 66px; }
  .story__date { grid-column: 2; padding: 0; text-align: left; font-size: 18px; }
  .story__date > p { margin: 0 0 6px; }
  .story__label { font-size: 16px; }
  .story__event-copy { grid-column: 2; padding: 6px 0 0; }
  .story__event-copy > h3 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .story__reveal, .story__illustration.story__reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 760px) {
  .navigation__link[href="#about"] { white-space: normal; max-width: 68px; text-align: center; justify-content: center; }
}
@media (max-width: 380px) {
  .navigation { gap: 8px; }
  .navigation__link { font-size: 9px; letter-spacing: .06em; }
}

.story__inline-heart { display: inline-block; color: var(--clay); font: 400 1.4em/1 var(--serif); vertical-align: -.08em; }

/* Trzy odbitki Instax schodzące od prawej do lewej. */
.gallery__album { position: relative; }
.gallery__album-heading { position: absolute; top: 20px; left: 0; width: 41%; }
.gallery__album-heading .section-title { font-size: clamp(36px, 4.2vw, 60px); }
.gallery__instax-stack { padding: 12px 2% 20px; }
.gallery__instax { position: relative; width: 47%; margin: 0; padding: clamp(9px, 1.4vw, 18px) clamp(9px, 1.4vw, 18px) 0; background: var(--paper-light); box-shadow: var(--about-photo-shadow); transition: transform .4s ease; }
.gallery__instax > img { display: block; width: 100%; height: auto; }
.gallery__instax > figcaption { font: 400 clamp(26px, 3vw, 38px)/1.2 var(--script); color: var(--clay); text-align: center; padding: 12px 0 18px; }
.gallery__instax--first { margin-left: 51%; transform: rotate(5deg); z-index: 1; }
.gallery__instax--second { margin-left: 26%; margin-top: -14%; transform: rotate(-5deg); z-index: 2; }
.gallery__instax--third { margin-left: 1%; margin-top: -14%; transform: rotate(3deg); z-index: 3; }
.gallery__album-note { position: absolute; right: 2%; bottom: 4%; width: 36%; text-align: center; }
.gallery__album-note .body-copy { font-size: 16px; }
.gallery__album-note .gallery__heart { width: clamp(85px, 10vw, 135px); margin: 20px auto 0; }
@media (hover: hover) {
  .gallery__instax:hover { transform: rotate(0); z-index: 4; }
}
@media (max-width: 760px) {
  .gallery__album-heading { position: static; width: 100%; margin-bottom: 28px; }
  .gallery__instax { width: 62%; }
  .gallery__instax--first { margin-left: 36%; }
  .gallery__instax--second { margin-left: 18%; margin-top: -12%; }
  .gallery__instax--third { margin-left: 0; margin-top: -12%; }
  .gallery__album-note { right: 0; bottom: 0; width: 30%; }
  .gallery__album-note .body-copy { display: none; }
  .gallery__album-note .gallery__heart { width: min(100%, 90px); }
}
@media (prefers-reduced-motion: reduce) { .gallery__instax { transition: none; } }

/* Album dziewięciu lat: kolejność wierszami, nieregularność tylko w pochyleniu. */
.gallery__album-heading { position: static; width: min(100%, 650px); margin-bottom: 40px; }
.gallery__instax-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(18px, 3vw, 40px); padding: 12px 2% 32px; }
.gallery__instax { width: 100%; margin: 0; transform: rotate(-4deg); }
.gallery__instax:nth-child(3n + 2) { transform: translateY(22px) rotate(5deg); }
.gallery__instax:nth-child(3n) { transform: translateY(6px) rotate(-2deg); }
.gallery__instax:nth-child(4n) { transform: rotate(3deg); }
.gallery__album-note { position: static; width: min(100%, 360px); margin: 30px 0 0 auto; }
@media (hover: hover) { .gallery__instax:hover { transform: translateY(-4px) rotate(0); } }
@media (max-width: 760px) {
  .gallery__instax-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .gallery__instax:nth-child(odd) { transform: rotate(-3deg); }
  .gallery__instax:nth-child(even) { transform: translateY(16px) rotate(4deg); }
  .gallery__instax:last-child { grid-column: 1 / -1; width: 58%; justify-self: center; transform: rotate(-3deg); }
  .gallery__album-note { width: 100%; margin-top: 30px; }
  .gallery__album-note .body-copy { display: block; }
  .gallery__instax > figcaption { font-size: 26px; padding: 8px 0 12px; }
}

.gallery__instax--landscape { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery__instax.gallery__instax--landscape { grid-column: 1 / -1; width: 100%; transform: rotate(-2deg); }
}

/* Zdjęcie 2024 w pełnych proporcjach dostarczonego kadru. */
.gallery__instax--2024 > img { aspect-ratio: auto; height: auto; }

.gallery__instax--2025, .gallery__instax--2026 { margin-top: -28px; }
@media (max-width: 760px) {
  .gallery__instax--2025 { margin-top: -8px; }
  .gallery__instax--2026 { margin-top: -18px; }
}

/* Każda odbitka rezerwuje tylko własną wysokość, bez pustych wysokich wierszy. */
.gallery__instax-stack.is-packed { grid-auto-rows: 8px; }
.gallery__instax--2025, .gallery__instax--2026 { margin-top: 0; }
@media (max-width: 760px) {
  .gallery__instax:last-child { grid-column: auto; width: 100%; justify-self: stretch; }
  .gallery__instax--2025, .gallery__instax--2026 { margin-top: 0; }
}

/* Zwarty album w kolumnach: ramki kolejno w dół, bez pustych pól siatki. */
.gallery__instax-stack { display: block; columns: 3; column-gap: 26px; padding: 12px 2% 22px; }
.gallery__instax { display: inline-block; vertical-align: top; break-inside: avoid; width: 100%; margin: 0 0 26px; }
.gallery__instax:nth-child(n) { transform: rotate(-2deg); }
.gallery__instax:nth-child(even) { transform: rotate(2deg); }
@media (hover: hover) { .gallery__instax:nth-child(n):hover { transform: rotate(0); } }
@media (max-width: 1000px) { .gallery__instax-stack { columns: 2; column-gap: 20px; } }
@media (max-width: 540px) {
  .gallery__instax-stack { columns: 1; padding-inline: 4%; }
  .gallery__instax:nth-child(n) { width: 100%; margin: 0 0 24px; }
}

/* Równomierne odstępy w albumie niezależnie od wysokości poszczególnych zdjęć. */
.gallery__instax-stack.is-packed { position: relative; columns: auto; display: block; padding: 0; margin: 16px 2% 28px; }
.gallery__instax-stack.is-packed .gallery__instax { position: absolute; margin: 0; }
@media (max-width: 540px) {
  .gallery__instax-stack.is-packed { margin-inline: 4%; }
}

.gallery__instax-stack.is-packed .gallery__instax--landscape { transform: rotate(-1deg); }

/* Akwarelowe ozdoby narożników całej sekcji, poza ramkami zdjęć. */
.gallery { position: relative; isolation: isolate; overflow: clip; }
.gallery::before, .gallery::after { content: ""; position: absolute; z-index: -1; width: clamp(180px, 25vw, 340px); aspect-ratio: 1; background: url("../images/gallery-meadow-flowers.webp") center / contain no-repeat; pointer-events: none; }
.gallery::before { top: 20px; right: 20px; transform: rotate(180deg); }
.gallery::after { bottom: 20px; left: 20px; }
@media (max-width: 760px) {
  .gallery::before, .gallery::after { width: clamp(150px, 40vw, 220px); }
  .gallery::before { top: 12px; right: 12px; }
  .gallery::after { bottom: 12px; left: 12px; }
}

/* Telefon: dwie kolumny Instax; zdjęcie 2022 nadal zajmuje osobny rząd. */
@media (max-width: 540px) {
  .gallery__instax-stack { columns: 2; column-gap: 18px; padding-inline: 2%; }
  .gallery__instax-stack.is-packed { margin-inline: 2%; }
  .gallery__instax { padding-inline: 7px; padding-top: 7px; }
  .gallery__instax > figcaption { padding: 7px 0 10px; font-size: 24px; }
}

/* Mniejsza ramka 2025 z zachowaniem pełnych proporcji fotografii. */
.gallery__instax.gallery__instax--2025 { width: 85%; }

/* Ramki 2023–2026: pochylenie jak w 2018–2021, według aktualnej kolumny. */
.gallery__instax-stack .gallery__instax.gallery__instax--inward-left { transform: rotate(-2deg); }
.gallery__instax-stack .gallery__instax.gallery__instax--inward-right { transform: rotate(2deg); }

/* Powiększenie albumu: limit połowy ekranu, pełne proporcje zdjęcia. */
.gallery__zoom { display: block; cursor: zoom-in; }
.gallery__zoom > img { display: block; width: 100%; height: auto; }
.gallery .gallery__lightbox .lightbox__figure { width: 50vw; max-width: 50vw; }
.gallery .gallery__lightbox .lightbox__stage { height: 50svh; }
.gallery .gallery__lightbox .lightbox__image { width: auto; height: auto; max-width: 50vw; max-height: 50svh; }

/* Powiększenie nad stroną, bez zasłaniania galerii czarnym tłem. */
.gallery .gallery__lightbox { background: transparent; color: var(--ink); }
.gallery .gallery__lightbox::backdrop { background: transparent; }
.gallery .gallery__lightbox .lightbox__layout { width: fit-content; min-height: 0; margin: auto; padding: 18px 60px; background: var(--paper-light); box-shadow: var(--about-photo-shadow); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.gallery .gallery__lightbox .lightbox__stage { height: auto; max-height: 50svh; }
.gallery .gallery__lightbox .lightbox__caption { padding-top: 10px; }
.gallery .gallery__lightbox .lightbox__close,
.gallery .gallery__lightbox .lightbox__arrow { background: var(--paper-light); color: var(--ink); }
.gallery .gallery__lightbox .lightbox__close { top: -20px; right: -20px; box-shadow: var(--soft-shadow); }
.gallery .gallery__lightbox .lightbox__arrow { top: 40%; bottom: auto; font-size: 44px; }
.gallery .gallery__lightbox .lightbox__arrow--prev { left: 4px; }
.gallery .gallery__lightbox .lightbox__arrow--next { right: 4px; }
@media (max-width: 540px) {
  .gallery .gallery__lightbox .lightbox__layout { padding: 12px 38px; }
  .gallery .gallery__lightbox .lightbox__arrow { min-width: 36px; }
}

/* Prosty podgląd: wyłącznie fotografia, bez papierowej ramki i podpisu. */
.gallery .gallery__lightbox .lightbox__layout { padding: 0; background: transparent; box-shadow: none; }
.gallery .gallery__lightbox .lightbox__figure { width: auto; max-width: 50vw; }
.gallery .gallery__lightbox .lightbox__caption { display: none; }
.gallery .gallery__lightbox .lightbox__image { box-shadow: var(--about-photo-shadow); }
.gallery .gallery__lightbox .lightbox__close { top: -52px; right: -8px; background: var(--glass); }
.gallery .gallery__lightbox .lightbox__arrow { top: calc(50% - 24px); background: var(--glass); }
.gallery .gallery__lightbox .lightbox__arrow--prev { left: -56px; }
.gallery .gallery__lightbox .lightbox__arrow--next { right: -56px; }
@media (max-width: 540px) {
  .gallery .gallery__lightbox .lightbox__layout { padding: 0; }
  .gallery .gallery__lightbox .lightbox__arrow--prev { left: -44px; }
  .gallery .gallery__lightbox .lightbox__arrow--next { right: -44px; }
}

/* Papierowa ramka podglądu i geometrycznie wycentrowany krzyżyk. */
.gallery .gallery__lightbox .lightbox__figure { padding: 10px; background: var(--paper-light); box-shadow: var(--about-photo-shadow); max-width: calc(50vw + 20px); }
.gallery .gallery__lightbox .lightbox__image { box-shadow: none; }
.gallery .gallery__lightbox .lightbox__close { width: 48px; height: 48px; padding: 0; font-size: 0; display: grid; place-items: center; }
.gallery .gallery__lightbox .lightbox__close::before,
.gallery .gallery__lightbox .lightbox__close::after { content: ""; position: absolute; width: 20px; height: 2px; background: currentColor; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.gallery .gallery__lightbox .lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Równe strzałki niezależne od kształtu znaków w foncie. */
.gallery .gallery__lightbox .lightbox__arrow { width: 48px; height: 48px; min-width: 48px; padding: 0; font-size: 0; }
.gallery .gallery__lightbox .lightbox__arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: solid currentColor; border-width: 0 2px 2px 0; }
.gallery .gallery__lightbox .lightbox__arrow--prev::before { transform: translate(calc(-50% + 3px), -50%) rotate(135deg); }
.gallery .gallery__lightbox .lightbox__arrow--next::before { transform: translate(calc(-50% - 3px), -50%) rotate(-45deg); }

/* Większy podgląd z miejscem na ramkę i przyciski. */
.gallery .gallery__lightbox .lightbox__figure { max-width: calc(min(80vw, 100vw - 132px) + 20px); }
.gallery .gallery__lightbox .lightbox__stage { max-height: min(80svh, calc(100svh - 140px)); }
.gallery .gallery__lightbox .lightbox__image { max-width: min(80vw, calc(100vw - 132px)); max-height: min(80svh, calc(100svh - 140px)); }
@media (max-width: 540px) {
  .gallery .gallery__lightbox .lightbox__figure { max-width: 90vw; }
  .gallery .gallery__lightbox .lightbox__image { max-width: calc(90vw - 20px); }
  .gallery .gallery__lightbox .lightbox__arrow { top: auto; bottom: -56px; }
  .gallery .gallery__lightbox .lightbox__arrow--prev { left: 10%; }
  .gallery .gallery__lightbox .lightbox__arrow--next { right: 10%; }
}

/* Pełna fotografia: kontener nie przycina obrazu po zwiększeniu podglądu. */
.gallery .gallery__lightbox .lightbox__stage { display: flex; align-items: center; justify-content: center; height: auto; max-height: none; overflow: visible; }
.gallery .gallery__lightbox .lightbox__image { display: block; width: auto; height: auto; object-fit: contain; flex: 0 1 auto; }

/* Panoramiczne 2022: bliższy kadr 3:2 wyłącznie w powiększeniu. */
.gallery .gallery__lightbox--2022 .lightbox__stage { width: min(80vw, calc(100vw - 132px), calc((100svh - 140px) * 1.5)); aspect-ratio: 3 / 2; }
.gallery .gallery__lightbox--2022 .lightbox__image { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 540px) {
  .gallery .gallery__lightbox--2022 .lightbox__stage { width: min(calc(90vw - 20px), calc((100svh - 140px) * 1.5)); }
}

/* Duże monitory: zwarta kompozycja czterech ramek z panoramą pośrodku. */
@media (min-width: 1200px) {
  .gallery__album { max-width: 1200px; }
  .gallery__instax-stack:not(.is-packed) { columns: 4; }
  .gallery__album-note { margin-inline: auto; }
}

/* Animację rozwijania zdjęcia prowadzi moduł galerii. */
.gallery .gallery__lightbox[open] { animation: none; }
.gallery .gallery__lightbox .lightbox__figure { transform-origin: center; }

/* Nowe, lżejsze kwiaty: małe narożniki nie wchodzą na mobilny nagłówek. */
.gallery::before, .gallery::after { width: clamp(160px, 17vw, 240px); aspect-ratio: 1.2; }
.gallery::before { top: 14px; right: 14px; }
.gallery::after { bottom: 12px; left: 12px; }
@media (max-width: 760px) {
  .gallery::before, .gallery::after { width: clamp(90px, 24vw, 110px); }
  .gallery::before { top: 8px; right: 8px; }
  .gallery::after { bottom: 8px; left: 8px; }
}

/* Tekst z sercem u góry po prawej; kwiaty w obu dolnych narożnikach. */
.gallery::before { top: auto; bottom: 12px; right: 12px; transform: scaleX(-1); }
.gallery__album-heading { padding-right: 0; width: 58%; min-height: 180px; }
.gallery__album-note { position: absolute; top: 0; right: 0; bottom: auto; width: 35%; margin: 0; text-align: center; }
.gallery__album-note .body-copy { display: block; }
.gallery__album-note .gallery__heart { width: 76px; margin: 12px auto 0; }
@media (max-width: 760px) {
  .gallery__album-heading { width: 100%; min-height: 0; margin-bottom: 20px; }
  .gallery__album-note { position: static; width: min(100%, 340px); margin: 0 0 28px auto; }
  .gallery__album-note .gallery__heart { width: 60px; margin-top: 8px; }
  .gallery::before { top: auto; bottom: 8px; right: 8px; }
  .gallery__album { padding-bottom: 60px; }
}

/* Pułapka RSVP: pole tekstowe niewidoczne również dla klawiatury. */
.rsvp__honeypot { display: none; }
.rsvp__turnstile { min-width: 0; max-width: 100%; }
.rsvp__turnstile:empty { display: none; }
.rsvp__submit:disabled { cursor: wait; }

/* Dyskretny dojazd pomiędzy FAQ i potwierdzeniem, bez osadzonej mapy. */
.directions { padding-bottom: clamp(36px, 5vw, 64px); }
.directions__panel { max-width: 760px; margin-inline: auto; border-block: 1px solid var(--line); }
.directions__summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; list-style: none; cursor: pointer; font: 500 24px/1.3 var(--serif); color: var(--olive-dark); }
.directions__summary::-webkit-details-marker { display: none; }
.directions__chevron { width: 9px; height: 9px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); transition: transform .2s ease; margin-right: 6px; }
.directions__panel[open] .directions__chevron { transform: rotate(225deg); }
.directions__places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 4px 4px 24px; }
.directions__title { margin: 0 0 8px; font: 500 24px/1.3 var(--serif); }
.directions__address { margin: 0 0 12px; font-size: 16px; }
.directions__link { display: inline-block; padding-block: 8px; color: var(--olive-dark); text-underline-offset: 4px; font-size: 16px; overflow-wrap: anywhere; }
@media (max-width: 540px) { .directions__places { grid-template-columns: 1fr; gap: 18px; } }

/* Dojazd jako osobny, spokojny pasek odróżniony od listy FAQ. */
.directions { padding-top: 24px; }
.directions__panel { background: var(--olive-light); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--soft-shadow); }
.directions__summary { padding: 24px 28px; }
.directions__heading { display: flex; align-items: center; gap: 14px; }
.directions__icon { flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.directions__places { margin-inline: 28px; padding: 22px 0 26px; border-top: 1px solid var(--line); }
@media (max-width: 540px) {
  .directions { padding-top: 12px; }
  .directions__summary { padding: 20px; }
  .directions__places { margin-inline: 20px; }
}
