/**
 * /album-matrimonio/ — page CSS. The page language comes from product.css; the guest feed redrawn
 * here follows app/assets/css/sites/feed.css (the grid, the upload window, the open photo), the
 * couple's side follows app/assets/css/dashboard/wedding/feed.css. Only this page shows them.
 */

/* ── Hero: the guests' feed in a browser, one photo getting its heart while the page opens.
   It straddles the coloured field and the cream below, like the other product pages. ── */
.gw-am-hero {
    --am-overlap: clamp(5rem, 9vw, 8rem);
    --field-inset: 0 0 var(--am-overlap);
}
.gw-am-hero__grid { grid-template-columns: minmax(0, 23rem) minmax(0, 33rem); }
/* The feed is shorter than the copy and starts level with it: without the extra room the field would end right under the trust row. */
.gw-am-hero__copy { margin-bottom: calc(var(--am-overlap) + 3.5rem); }
.gw-am-board { align-self: start; --browser-ring: 110 20% 30%; --browser-drop: 110 25% 18%; }

/* ── The guest feed: couple, filters, a grid of square tiles. Colours are the couple's palette. ── */
.gw-rp-feed,
.gw-rp-fdp,
.gw-rp-lb {
    --fd-accent: var(--pal-primary);
    --fd-strong: color-mix(in srgb, var(--pal-primary) 80%, #000);
    --fd-soft: var(--pal-accent);
    --fd-border: var(--pal-border);
    --fd-muted: var(--pal-muted);
}
.gw-rp-feed { position: relative; padding-bottom: 1.2rem; background: var(--pal-bg); font-family: var(--site-body); font-synthesis: none; color: var(--pal-text); }
.gw-rp-feed__head { display: flex; flex-direction: column; align-items: center; gap: .2em; padding: 1.1em 1em .8em; text-align: center; }
.gw-rp-feed__head b { font-family: var(--site-heading); font-size: 1.6em; font-weight: var(--site-hw); line-height: 1.1; color: var(--fd-strong); }
.gw-rp-feed__head small { display: flex; align-items: center; gap: .35em; font-size: .7em; text-transform: uppercase; color: var(--fd-muted); }
.gw-rp-feed__bar { display: flex; align-items: center; gap: .45em; padding: .2em 1.1em .9em; }
.gw-rp-feed__seg { display: inline-flex; padding: 3px; border: 1px solid var(--fd-border); border-radius: 99px; background: #fff; box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--fd-accent) 8%, transparent); }
.gw-rp-feed__seg > span { display: inline-flex; align-items: center; justify-content: center; gap: .35em; padding: .45em .8em; border-radius: 99px; font-size: .62em; font-weight: 600; white-space: nowrap; color: var(--fd-muted); }
.gw-rp-feed__seg svg { width: 1.15em; height: 1.15em; }
.gw-rp-feed__seg .is-on { background: var(--fd-accent); color: #fff; }
.gw-rp-feed__seg em { display: grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .35em; border-radius: 99px; background: #fff; font-size: .82em; font-style: normal; font-weight: 700; color: var(--fd-accent); }
.gw-rp-feed__chip { display: inline-flex; align-items: center; gap: .4em; margin-left: auto; padding: .55em .9em; border: 1px solid var(--fd-border); border-radius: 99px; background: #fff; font-size: .62em; font-weight: 600; white-space: nowrap; color: var(--fd-muted); }
.gw-rp-feed__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75em; padding: 0 1.1em; }

.gw-rp-tile { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: .8em; background: var(--fd-soft); box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--fd-accent) 8%, transparent); }
.gw-rp-tile img { width: 100%; height: 100%; object-fit: cover; }
.gw-rp-tile__eng { position: absolute; left: .45em; bottom: .45em; display: flex; align-items: center; gap: .45em; padding: .2em .5em; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; background: rgba(20, 12, 16, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .56em; font-weight: 600; color: #fff; }
.gw-rp-tile__eng > span { display: inline-flex; align-items: center; gap: .25em; }
.gw-rp-tile__eng b { font-weight: 600; font-variant-numeric: tabular-nums; }
.gw-rp-tile__play { position: absolute; inset: 0; display: grid; place-items: center; }
.gw-rp-tile__play i { display: grid; place-items: center; width: 2.3em; height: 2.3em; padding-left: .1em; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); font-size: 1em; color: var(--fd-accent); }
/* The double-tap heart of feed.css: it swells, settles and fades. */
.gw-rp-tile__pop { position: absolute; top: 50%; left: 50%; z-index: 3; font-size: 2.6em; color: #fff; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .45)); opacity: 0; transform: translate(-50%, -50%) scale(.3); pointer-events: none; }
.gw-rp-tile.is-pop .gw-rp-tile__pop { animation: gw-am-pop .8s ease forwards; }
@keyframes gw-am-pop {
    0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
    15% { opacity: .95; }
    45% { transform: translate(-50%, -50%) scale(1.15); opacity: .95; }
    70% { transform: translate(-50%, -50%) scale(.95); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.gw-rp-feed__fab { position: absolute; right: 1em; bottom: 1em; z-index: 2; display: inline-flex; align-items: center; gap: .5em; padding: .65em 1.05em; border-radius: 99px; background: linear-gradient(135deg, var(--fd-accent), var(--fd-strong)); box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .3); font-size: .72em; font-weight: 600; color: #fff; }
.gw-rp-feed__fab svg { width: 1.3em; height: 1.3em; }
.gw-rp-feed__back { position: absolute; left: 1em; bottom: 1em; z-index: 2; display: inline-flex; align-items: center; gap: .45em; padding: .55em 1em; border: 1px solid var(--fd-border); border-radius: 99px; background: #fff; box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--fd-accent) 8%, transparent); font-size: .66em; font-weight: 600; color: var(--fd-accent); }
.gw-rp-feed__bnav { display: flex; align-items: center; justify-content: space-between; height: 4em; padding: 0 2.9em .25em; border-top: 1px solid var(--fd-border); background: rgba(255, 255, 255, .94); }
.gw-rp-feed__bnav > span:not(.gw-rp-feed__plus) { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: .66em; font-weight: 600; color: var(--fd-muted); }
.gw-rp-feed__bnav > span > i { font-size: 2.2em; line-height: 1; }
.gw-rp-feed__plus { display: grid; place-items: center; width: 4.4em; height: 4.4em; margin-top: -4em; border: 5px solid var(--pal-bg); border-radius: 50%; background: linear-gradient(135deg, var(--fd-accent), var(--fd-strong)); box-shadow: 0 4px 14px -2px rgba(0, 0, 0, .22); color: #fff; }
.gw-rp-feed__plus svg { width: 1.95em; height: 1.95em; }
.gw-rp-feed .is-mob { display: none; }

/* ── The feed on a guest's phone, with the upload window open: 1em = 1rem of a 390px phone ── */
.gw-rp-fdp { background: var(--pal-bg); }
.gw-rp-fdp .gw-rp-phone__status { color: #1d1d1f; }
.gw-rp-fdp__page { position: absolute; inset: 12.5cqi 0 0; display: flex; flex-direction: column; overflow: hidden; font-family: var(--site-body); font-size: 4.1cqi; font-synthesis: none; color: var(--pal-text); }
.gw-rp-fdp .gw-rp-feed__head { padding: 1.125em 1.25em; }
.gw-rp-fdp .gw-rp-feed__head b { font-size: 1.25em; }
.gw-rp-fdp .gw-rp-feed__head small { font-size: .8em; }
.gw-rp-fdp .gw-rp-feed__seg { display: flex; margin: .375em 1em .875em; }
.gw-rp-fdp .gw-rp-feed__seg > span { flex: 1; font-size: .8em; padding-inline: .5em; }
.gw-rp-fdp .gw-rp-feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625em; padding: 0 1em; }
.gw-rp-fdp .gw-rp-tile { border-radius: .875em; }
.gw-rp-fdp .gw-rp-tile__eng { left: .625em; bottom: .625em; font-size: .72em; }
.gw-rp-fdp .gw-rp-tile__play i { width: 3.375em; height: 3.375em; font-size: 1.3em; }
.gw-rp-fdp .gw-rp-feed__bnav { position: absolute; left: 0; right: 0; bottom: 20cqi; z-index: 1; font-size: 4.1cqi; }
.gw-rp-fdp__veil { position: absolute; inset: 12.5cqi 0 0; z-index: 2; display: grid; place-items: center; background: rgba(0, 0, 0, .3); font-family: var(--site-body); font-size: 4.1cqi; color: var(--pal-text); }
.gw-rp-up { display: flex; flex-direction: column; width: calc(100% - 2em); margin-bottom: 4em; padding: 1.5em; border-radius: 1em; background: #fff; }
.gw-rp-up__drop { display: flex; align-items: center; justify-content: center; gap: .5em; padding: .75em; border: 2px dashed var(--fd-border); border-radius: .75em; font-size: .875em; color: var(--fd-muted); }
.gw-rp-up__drop svg { width: 1.15em; height: 1.15em; color: var(--fd-accent); opacity: .7; }
.gw-rp-up__list { display: flex; flex-direction: column; gap: .5em; margin: 1em 0; }
.gw-rp-up__item { display: flex; align-items: center; gap: .75em; padding: .5em; border-radius: .5em; background: var(--pal-bg-alt); }
.gw-rp-up__item > img { flex: none; width: 2.75em; height: 2.75em; border-radius: .375em; object-fit: cover; }
.gw-rp-up__item > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.gw-rp-up__item small { overflow: hidden; font-size: .75em; white-space: nowrap; text-overflow: ellipsis; color: var(--fd-muted); }
.gw-rp-up__item small + i + small { font-size: .7em; }
.gw-rp-up__item > span > i { display: block; height: 4px; margin: .25em 0; overflow: hidden; border-radius: 2px; background: var(--fd-border); }
.gw-rp-up__item > span > i > b { display: block; height: 100%; border-radius: 2px; background: var(--fd-accent); }
.gw-rp-up__item > span > i.is-done > b { background: #4caf50; }
.gw-rp-up__item > .bi { padding: 0 .35em; font-size: .85em; opacity: .5; }
.gw-rp-up__caption { min-height: 3.75em; padding: .75em; border: 1px solid var(--fd-border); border-radius: .5em; font-size: .9em; line-height: 1.4; }
.gw-rp-up__actions { display: flex; gap: .75em; margin-top: 1em; }
.gw-rp-up__actions > span { flex: 1; padding: .5em 1.25em; border-radius: .5em; font-size: .875em; font-weight: 500; text-align: center; }
.gw-rp-up__actions .is-line { border: 1px solid var(--fd-border); }
.gw-rp-up__actions .is-accent { background: var(--fd-accent); color: #fff; }

/* ── A photo opened from the feed: the picture, who posted it, hearts and comments ── */
.gw-am-party__stage { max-width: 50rem; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.gw-rp-lb { position: relative; display: flex; height: 26rem; overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: 0 0 0 1px hsl(var(--gw-border)), 0 30px 60px -30px hsl(340 45% 25% / .4); font-family: var(--site-body); font-synthesis: none; color: var(--pal-text); }
.gw-rp-lb__media { flex: 0 0 58%; display: flex; align-items: center; justify-content: center; min-height: 0; background: #000; }
.gw-rp-lb__media img { width: 100%; height: 100%; object-fit: contain; }
.gw-rp-lb__close { position: absolute; top: .9rem; right: .9rem; z-index: 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(0, 0, 0, .55); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); font-size: 1rem; color: #fff; }
.gw-rp-lb__detail { flex: 1; display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--fd-border); }
.gw-rp-lb__cap { padding: 1rem; border-bottom: 1px solid var(--fd-border); }
.gw-rp-lb__who { display: flex; align-items: center; gap: .75rem; }
.gw-rp-lb__who > span:last-child { display: flex; flex-direction: column; }
.gw-rp-lb__who b { font-size: .95rem; font-weight: 600; }
.gw-rp-lb__who small { font-size: .7rem; color: var(--fd-muted); }
.gw-rp-lb__av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #F5A623; font-size: .65rem; font-weight: 600; color: #fff; }
.gw-rp-lb__cap p { margin: .75rem 0 0; font-size: .9rem; line-height: 1.5; }
.gw-rp-lb__acts { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--fd-border); font-size: .85rem; color: var(--fd-muted); }
.gw-rp-lb__acts i { font-size: 1.25rem; color: #e74c3c; }
.gw-rp-lb__comments { flex: 1; display: flex; flex-direction: column; gap: .75rem; padding: .75rem 1rem; overflow: hidden; }
.gw-rp-lb__comment { display: flex; flex-direction: column; font-size: .85rem; line-height: 1.4; }
.gw-rp-lb__comment b { margin-right: .15rem; font-weight: 600; }
.gw-rp-lb__comment small { margin-top: 2px; font-size: .7rem; color: var(--fd-muted); }
.gw-rp-lb__input { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--fd-border); }
.gw-rp-lb__input > span { flex: 1; padding: .5rem 1rem; border: 1px solid var(--fd-border); border-radius: 20px; background: var(--pal-bg-alt); font-size: .85rem; color: var(--fd-muted); }
.gw-rp-lb__input > i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fd-accent); font-size: .85rem; color: #fff; }

/* ── The couple's side: the feed settings, the block question, the archive ── */
.gw-rp-fdset__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding-right: 1.4rem; }
.gw-rp-fdset__top .gw-rp-dash__head { padding-bottom: .7rem; }
.gw-rp-fdset__open { display: inline-flex; flex: none; align-items: center; gap: .4rem; margin-top: 1.35rem; padding: .45rem .75rem; border-radius: .5rem; background: hsl(var(--gw-wine)); font-size: .74rem; font-weight: 600; white-space: nowrap; color: #fff; }
.gw-rp-fdset .gw-rp-hist__tabs { margin: 0 1.4rem; }
.gw-rp-fdset__body { display: flex; flex-direction: column; padding: 1.1rem 1.4rem 1.3rem; }
.gw-rp-fdset__title { display: flex; align-items: center; gap: .45rem; margin-bottom: .6rem; font-size: .84rem; font-weight: 600; }
.gw-rp-fdset__title .bi { font-size: 1rem; color: hsl(var(--gw-wine)); }
.gw-rp-fdset__card + .gw-rp-fdset__title { margin-top: 1.1rem; }
.gw-rp-fdset__card { padding: .1rem .95rem; border: 1px solid hsl(var(--gw-border)); border-radius: .75rem; }
.gw-rp-fdset__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.gw-rp-fdset__row + .gw-rp-fdset__row { border-top: 1px solid hsl(var(--gw-border) / .8); }
.gw-rp-fdset__row > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.gw-rp-fdset__row b { font-size: .8rem; font-weight: 500; }
.gw-rp-fdset__row small { font-size: .68rem; line-height: 1.35; color: hsl(var(--gw-muted-fg)); }
.gw-rp-fdset__row .gw-rp-ui__switch { flex: none; }
.gw-rp-fdset__input { flex: none; padding: .3rem .55rem; border: 1px solid hsl(var(--gw-border)); border-radius: .45rem; font-size: .74rem; font-variant-numeric: tabular-nums; }
.gw-rp-confirm { position: relative; align-self: flex-end; width: min(18.5rem, 100%); margin: -2rem -1.5rem 0 0; padding: 1.5rem 1.4rem 1.3rem; border-radius: 1rem; background: #fff; box-shadow: 0 0 0 1px hsl(var(--gw-border)), 0 30px 60px -30px hsl(340 45% 25% / .45); font-family: var(--gw-font-sans); text-align: center; color: hsl(var(--gw-fg)); }
.gw-rp-confirm__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto .9rem; border-radius: 50%; background: hsl(var(--gw-wine) / .1); font-size: 1.3rem; color: hsl(var(--gw-wine)); }
.gw-rp-confirm p { margin: 0 0 1.1rem; font-size: .84rem; line-height: 1.5; }
.gw-rp-confirm__btns { display: flex; gap: .5rem; }
.gw-rp-confirm__btns > span { flex: 1; justify-content: center; }

.gw-rp-zip { position: relative; align-self: flex-end; width: min(18rem, 100%); margin: -1rem -1.5rem 0 0; }
.gw-rp-zip .gw-rp-win__head b { display: flex; align-items: center; gap: .45rem; font-size: .92rem; }
.gw-rp-zip .gw-rp-win__head b .bi { font-size: .95rem; color: hsl(var(--gw-wine)); }
.gw-rp-zip__body { padding: .9rem 1.2rem 1.1rem; }
.gw-rp-zip__body > small { display: block; margin-bottom: .5rem; font-size: .72rem; font-weight: 600; color: hsl(var(--gw-muted-fg)); }
.gw-rp-zip__job { display: flex; flex-direction: column; gap: .15rem; padding: .75rem .85rem; border: 1px solid hsl(var(--gw-border)); border-radius: .75rem; font-size: .8rem; }
.gw-rp-zip__job b { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.gw-rp-zip__job b .bi, .gw-rp-zip__ok { color: hsl(152 55% 36%); }
.gw-rp-zip__job small { font-size: .74rem; color: hsl(var(--gw-muted-fg)); }
.gw-rp-zip__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .45rem; }
.gw-rp-zip__foot .gw-rp-import__go { padding: .4rem .65rem; font-size: .74rem; }

/* ── Sections with copy beside a replica ── */
.gw-am-guests,
.gw-am-control,
.gw-am-after { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
@media (min-width: 768px) {
    .gw-am-party { padding-block: clamp(3rem, 6vw, 5rem); }
}
.gw-am-guests .gw-split__show { align-items: center; }

@media (max-width: 991.98px) {
    .gw-am-hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 2.25rem; }
    .gw-am-hero__copy { margin-bottom: 0; }
    .gw-am-hero { --am-overlap: 14rem; }
    .gw-am-board { width: 100%; max-width: 34rem; justify-self: center; }
    .gw-rp-confirm,
    .gw-rp-zip { margin-right: 0; }
}
@media (max-width: 767.98px) {
    .gw-am-hero { padding-bottom: 2.25rem; }
    .gw-am-guests,
    .gw-am-control,
    .gw-am-after { padding-block: 2.25rem; }
}
@media (max-width: 575.98px) {
    .gw-am-hero__cta { display: block; text-align: center; }
    /* A phone gets the phone feed: two columns, the type filter across, the bar at the bottom. */
    .gw-rp-feed { padding-bottom: 0; }
    .gw-rp-feed .is-desk { display: none; }
    .gw-rp-feed .is-mob { display: flex; margin-top: 2.2em; }
    .gw-rp-feed .gw-rp-feed__head b { font-size: 1.3em; }
    .gw-rp-feed .gw-rp-feed__seg.is-type { flex: 1; }
    .gw-rp-feed .gw-rp-feed__seg.is-type > span { flex: 1; font-size: .7em; }
    .gw-rp-feed .gw-rp-feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em; }
    .gw-rp-feed .gw-rp-tile:nth-child(n+7) { display: none; }
    .gw-rp-feed .gw-rp-feed__bnav { padding-inline: 2em; }
    .gw-rp-lb { flex-direction: column; height: auto; }
    .gw-rp-lb__media { flex: none; height: 14rem; }
    .gw-rp-lb__detail { border-left: 0; }
    .gw-rp-lb__comment:first-child { display: none; }
    .gw-rp-fdset__top { flex-direction: column; gap: 0; padding: 0 0 .9rem 1rem; }
    .gw-rp-fdset__top .gw-rp-dash__head { padding-inline: 0; }
    .gw-rp-fdset__open { margin-top: 0; }
    .gw-rp-fdset .gw-rp-hist__tabs { margin-inline: 1rem; gap: .9rem; }
    .gw-rp-fdset__body { padding-inline: 1rem; }
    .gw-rp-fdset__row:has(.gw-rp-fdset__input) { flex-wrap: wrap; row-gap: .4rem; }
    .gw-rp-confirm,
    .gw-rp-zip { width: calc(100% - 1.5rem); margin-top: -1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-rp-tile.is-pop .gw-rp-tile__pop { animation: none; }
}
