/* Sample social posts, 4:5. Each brand has its own colours and type; four layouts. Sizes follow the post's own width. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,500&family=Barlow+Condensed:wght@800&family=Bodoni+Moda:ital,opsz,wght@1,6..96,500&family=Syne:wght@800&family=Libre+Caslon+Text&display=swap");

.sp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.sp { position: relative; aspect-ratio: 4 / 5; overflow: hidden; container-type: inline-size; background: var(--p-bg); color: var(--p-fg); }
.sp p, .sp ul { margin: 0; max-width: none; }
.sp-photo { position: absolute; inset: 0; }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-text { position: absolute; display: flex; flex-direction: column; gap: 3cqw; }
.sp-kicker { font-size: 4.6cqw; font-weight: 700; color: var(--p-accent); }
.sp-big { font-family: var(--p-font); font-size: 12.5cqw; line-height: 1; text-wrap: balance; }
.sp-small { font-size: 5cqw; line-height: 1.35; }
.sp-who { margin-top: 2cqw !important; font-size: 3.8cqw; font-weight: 700; color: var(--p-accent); }
.sp-list { padding: 0; list-style: none; font-size: 5.6cqw; }
.sp-list li { padding-block: 3cqw; border-top: 1px solid color-mix(in srgb, var(--p-fg) 30%, transparent); }

.brand-ember { --p-bg: #170e09; --p-fg: #fbf0e2; --p-accent: #ffa04a; --p-font: "Cormorant Garamond", serif; }
.brand-lumiere { --p-bg: #f4dfda; --p-fg: #2c1620; --p-accent: #8e3552; --p-font: "Bodoni Moda", serif; }
.brand-lumiere .sp-big { font-style: italic; font-size: 11cqw; }
.brand-kiln { --p-bg: #efe9df; --p-fg: #2a211b; --p-accent: #9c4220; --p-font: Syne, sans-serif; }
.brand-kiln .sp-big { font-size: 9.6cqw; }
.brand-granite { --p-bg: #f2b705; --p-fg: #15171a; --p-accent: #15171a; --p-font: "Barlow Condensed", sans-serif; }
.brand-granite .sp-big { font-size: 15cqw; line-height: .92; text-transform: uppercase; }
.brand-sterling { --p-bg: #14233b; --p-fg: #f3efe4; --p-accent: #d2b46a; --p-font: "Libre Caslon Text", serif; }
.brand-sterling .sp-big { font-size: 10cqw; line-height: 1.12; }

/* full photo, words over a shade */
.lay-cover { color: #fff; --p-accent: #ffc38a; }
.lay-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.85)); }
.lay-cover .sp-text { z-index: 1; inset: auto 8cqw 8cqw; }
/* photo on top, colour block below */
.lay-split .sp-photo { bottom: 42%; }
.lay-split .sp-text { inset: 61% 8cqw 5cqw; gap: 2cqw; }
.lay-split .sp-big { font-size: 9cqw; }
.lay-split .sp-small { font-size: 4.2cqw; }
/* photo inside a margin */
.lay-frame .sp-photo { inset: 6cqw 6cqw 44% 6cqw; }
.lay-frame .sp-text { inset: auto 6cqw 6cqw; }
.lay-frame .sp-big { font-size: 9cqw; }
/* photo left of a heavy band */
.lay-band .sp-photo { bottom: 38%; }
.lay-band .sp-text { inset: 64% 7cqw 5cqw; gap: 2cqw; }
/* type only */
.lay-type .sp-text { inset: 10cqw 9cqw 8cqw; justify-content: center; }
.lay-type .sp-who { margin-top: auto !important; }

@media (max-width: 900px) {
  .sp-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
  .sp-grid .sp { flex: 0 0 74%; max-width: 320px; scroll-snap-align: start; }
}

/* phone-style feed with captions */
.feed-split { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.feed { padding: 10px; border: 1px solid var(--line-strong); border-radius: 34px; background: #000; }
.feed-screen { height: 620px; overflow-y: auto; border-radius: 26px; background: var(--surface); color: var(--fg); }
.feed-post { padding-bottom: 1rem; }
.feed-name { margin: 0; padding: 0.8rem 0.9rem; font-weight: 700; }
.feed-caption { margin: 0; padding: 0.7rem 0.9rem 0; font-size: 0.92rem; }
.feed-caption span { color: var(--faint); }
@media (max-width: 800px) { .feed-split { grid-template-columns: minmax(0, 1fr); } .feed { width: min(100%, 360px); margin-inline: auto; } }

.sp-art { position: absolute; inset: 6% 6% 40%; color: var(--p-fg); opacity: 0.85; }
.sp-art svg { width: 100%; height: 100%; }
.lay-art .sp-text { inset: auto 8% 8%; }
.lay-poster .sp-text { inset: 6%; justify-content: space-between; border: 0.8cqw solid currentColor; padding: 7cqw; }
.lay-poster .sp-big { font-size: 18cqw; line-height: 0.95; }
.lay-steps .sp-text { inset: 8%; }
.sp-flow { display: grid; gap: 2.5cqw; margin: 3cqw 0 0; padding: 0; list-style: none; counter-reset: s; }
.sp-flow li { display: flex; align-items: center; gap: 3cqw; padding: 3cqw; border: 0.4cqw solid currentColor; border-radius: 2cqw; font-size: 5.4cqw; counter-increment: s; }
.sp-flow li::before { content: counter(s); font-size: 8cqw; font-weight: 700; }
.campaign { padding-block: 2rem; border-top: 1px solid var(--line-strong); }
.campaign h3 { margin: 0; }
.campaign-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.post-card { margin: 0; }
.post-card button { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.post-card figcaption p, .zoom > p { margin: 0.5rem 0 0; font-size: 0.95rem; }
.post-card .tags, .zoom > .tags { color: var(--muted); font-size: 0.85rem; }
.zoom { width: min(92vw, 480px); max-height: 92vh; padding: 1rem; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); color: var(--fg); }
.zoom::backdrop { background: rgba(0, 0, 0, 0.78); }
.zoom .sp { width: min(100%, 52vh); margin: 0 auto; }
.zoom > button { margin-top: 0.8rem; }
.calendar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.calendar > li { padding: 1rem; border: 1px solid var(--line-strong); border-radius: 12px; }
.calendar ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
@media (max-width: 760px) { .campaign-posts { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; } .post-card { scroll-snap-align: start; } .calendar { grid-template-columns: minmax(0, 1fr); } }

.zoom-bar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.zoom-bar span { margin-right: auto; }
.zoom-btn { min-height: 2.75rem; padding: 0.4rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 8px; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
html:has(dialog.zoom[open]) { overflow: hidden; }
.delivery { padding: 1.5rem; border: 1px solid var(--line-strong); border-radius: 12px; list-style: none; max-width: 26rem; }
.delivery li { padding-block: 0.35rem; border-bottom: 1px solid var(--line); }
