/* Social posts feature landing: layouts on top of the shared feature-landing, hero-banner and video-feature styles. */

.posts-ratio-4x5 { aspect-ratio: 4 / 5; }
.posts-ratio-9x16 { aspect-ratio: 9 / 16; }
.posts-ratio-1x1 { aspect-ratio: 1 / 1; }
.posts-ratio-wide { aspect-ratio: 1200 / 630; }

.posts-fan-media video,
.posts-format-media video,
.posts-brand-feed img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero, scene 0: one listing photo fanned out into three formats. */
.feature-posts-hero .posts-fan-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.4vw, 22px);
    padding-bottom: 44px;
    box-sizing: border-box;
    transform: scale(0.97);
    transition: opacity 520ms ease, transform 620ms cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-posts-hero .posts-fan-scene.is-active {
    opacity: 1;
    transform: scale(1);
}

.posts-fan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.posts-fan-media {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #1e1e1e;
    box-shadow: 0 26px 60px rgba(20, 15, 5, 0.26);
}

.posts-fan-card-story .posts-fan-media { height: clamp(300px, 27vw, 450px); }
.posts-fan-card-feed .posts-fan-media { height: clamp(220px, 19vw, 320px); }
.posts-fan-card-square .posts-fan-media { height: clamp(190px, 16vw, 268px); }

.posts-fan-card-feed { transform: rotate(-3deg) translateY(14px); }
.posts-fan-card-square { transform: rotate(3deg) translateY(18px); }
.posts-fan-card-story { z-index: 2; }

.posts-fan-card figcaption,
.posts-fan-caption {
    padding: 5px 11px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 999px;
    background: #fff;
    color: #5a5a5a;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.posts-fan-caption {
    position: absolute;
    bottom: 0;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    transform: translateX(-50%);
    color: #1e1e1e;
}

.posts-fan-caption svg,
.posts-format-note svg,
.posts-copy-arrow svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.posts-fan-caption svg { color: #b37821; }

/* Hero, scene 1: the same listing in a reel, a feed post and a LinkedIn link post. */
.posts-linkedin-card .hero-listing-media { aspect-ratio: 1200 / 630; }

.posts-linkedin-card .hero-listing-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px 14px;
}

/* Every format at once */
.posts-format-row {
    display: grid;
    grid-template-columns: 0.8fr 1fr 0.5625fr 1.905fr;
    align-items: end;
    gap: 18px;
    margin-top: 34px;
}

.posts-format {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.posts-format-media {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #1e1e1e;
    box-shadow: 0 16px 36px rgba(20, 15, 5, 0.16);
}

.posts-format figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--vgvf-copy, #5a5a5a);
    font-size: 12px;
    line-height: 1.35;
}

.posts-format figcaption strong {
    color: var(--vgvf-ink, #1e1e1e);
    font-size: 13px;
    font-weight: 600;
}

.posts-format-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--vgvf-frame, #f3f2ee);
    color: var(--vgvf-ink, #1e1e1e);
    font-size: 12.5px;
    font-weight: 600;
}

/* A design for every moment: the shared effects switcher with a portrait frame. */
.posts-occasions .video-effects-layout {
    grid-template-columns: 320px minmax(0, 430px);
    justify-content: start;
    gap: 40px;
}

.posts-occasions .video-effect-viewport { aspect-ratio: 4 / 5; }

/* Written for you */
.posts-copy-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) auto minmax(0, 1.35fr);
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.posts-copy-card {
    padding: 22px;
    border: 1px solid var(--vgvf-border, rgba(0, 0, 0, 0.08));
    border-radius: 20px;
    background: var(--vgvf-panel, #fff);
    box-shadow: 0 16px 40px rgba(20, 15, 5, 0.08);
}

.posts-copy-label {
    margin: 0 0 12px;
    color: var(--vgvf-accent-dark, #b37821);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.posts-copy-listing-text {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--vgvf-surface, #f8f8f7);
    color: var(--vgvf-ink, #1e1e1e);
    font-family: var(--font-secondary, 'Inter', system-ui, sans-serif);
    font-size: 13.5px;
    line-height: 1.6;
}

.posts-copy-langs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    color: var(--vgvf-copy, #5a5a5a);
    font-size: 12px;
    line-height: 1.4;
}

.posts-copy-langs > span:first-child {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--vgvf-ink, #1e1e1e);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.posts-copy-arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--vgvf-accent, #ffb14d);
    color: #1e1e1e;
    box-shadow: 0 10px 24px rgba(255, 145, 0, 0.35);
}

.posts-copy-arrow svg { width: 20px; height: 20px; }

.posts-copy-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.posts-copy-post {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(20, 15, 5, 0.16);
}

.posts-caption-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: var(--vgvf-frame, #f3f2ee);
}

.posts-caption-tabs button {
    min-width: 0;
    padding: 6px 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--vgvf-copy, #5a5a5a);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.posts-caption-tabs button[aria-selected="true"] {
    background: var(--vgvf-ink, #1e1e1e);
    color: #fff;
}

.posts-caption-tabs button:focus-visible {
    outline: 2px solid var(--vgvf-accent, #ffb14d);
    outline-offset: 2px;
}

.posts-caption-text {
    max-height: 260px;
    margin: 12px 0 0;
    overflow-y: auto;
    color: var(--vgvf-ink, #1e1e1e);
    font-family: var(--font-secondary, 'Inter', system-ui, sans-serif);
    font-size: 13px;
    line-height: 1.6;
}

.posts-copy-note {
    display: block;
    margin-top: 12px;
    color: var(--vgvf-hint, #b3b3b3);
    font-size: 11.5px;
}

/* Your brand, every post: the shared brand switcher with a feed post and the brand kit. */
.posts-brand .posts-brand-panel {
    grid-template-columns: 220px 280px minmax(0, 220px);
    align-items: center;
}

.posts-brand .posts-brand-panel[hidden] { display: none; }

.posts-brand-feed .video-brand-media { position: relative; }

.posts-brand-kit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--vgvf-border, rgba(0, 0, 0, 0.08));
    border-radius: 18px;
    background: var(--vgvf-panel, #fff);
}

.posts-brand-kit img {
    width: 100%;
    height: auto;
}

.posts-brand-swatches {
    display: flex;
    gap: 8px;
}

.posts-brand-swatches i {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
}

@media (max-width: 1279px) {
    .posts-fan-card-story .posts-fan-media { height: clamp(300px, 46vw, 430px); }
    .posts-fan-card-feed .posts-fan-media { height: clamp(220px, 32vw, 300px); }
    .posts-fan-card-square .posts-fan-media { height: clamp(180px, 27vw, 250px); }
}

@media (max-width: 900px) {
    .posts-format-row { grid-template-columns: 0.8fr 1fr 0.5625fr; }
    .posts-format-wide { grid-column: 1 / -1; }
    .posts-occasions .video-effects-layout { grid-template-columns: 1fr; }
    .posts-occasions .video-effect-frame { width: min(100%, 430px); }
    .posts-copy-layout { grid-template-columns: 1fr; }
    .posts-copy-arrow { justify-self: center; transform: rotate(90deg); }
    .posts-brand .posts-brand-panel { grid-template-columns: 200px minmax(0, 260px); }
    .posts-brand-kit { grid-column: 1 / -1; flex-direction: row; align-items: center; }
    .posts-brand-kit img { width: 180px; }
}

@media (max-width: 720px) {
    .feature-posts-hero .posts-fan-scene { gap: 8px; padding-bottom: 38px; }
    .posts-fan-card-story .posts-fan-media { height: clamp(230px, 70vw, 290px); }
    .posts-fan-card-feed .posts-fan-media { height: clamp(150px, 46vw, 190px); }
    .posts-fan-card-square .posts-fan-media { height: clamp(120px, 37vw, 156px); }
    .posts-fan-card figcaption { display: none; }
}

@media (max-width: 640px) {
    .posts-format-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "story feed" "story square" "wide wide";
        align-items: start;
        gap: 14px;
    }
    .posts-format-feed { grid-area: feed; }
    .posts-format-square { grid-area: square; }
    .posts-format-story { grid-area: story; }
    .posts-format-wide { grid-area: wide; }
    .posts-copy-card { padding: 16px; }
    .posts-copy-result-grid { grid-template-columns: 1fr; }
    .posts-copy-post { width: min(100%, 320px); }
    .posts-brand .posts-brand-panel { grid-template-columns: minmax(92px, 0.44fr) minmax(0, 1fr); gap: 12px; }
    .posts-brand-kit { padding: 14px; }
    .posts-brand-kit img { width: 140px; }
}
