/* Media page (reels and posts). Loaded only where the afc/media block renders. */
.afc-media { --afc-m-ink: var(--wp--preset--color--ink, #211912); --afc-m-paper: var(--wp--preset--color--paper, #faf5ed); --afc-m-clay: var(--wp--preset--color--clay, #b16148);
	background: var(--afc-m-paper); color: var(--afc-m-ink); padding: clamp(2.5rem, 5vw, 4.25rem) var(--wp--preset--spacing--gutter, 1.5rem) var(--wp--preset--spacing--section-l, 6rem); }
.afc-media__inner { max-width: 1300px; margin: 0 auto; }
.afc-media__sec { margin: 0 0 clamp(3rem, 6vw, 5rem); }
.afc-media__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 1.5rem; margin: 0 0 1.5rem; }
.afc-media__h { margin: 0; font-family: var(--wp--preset--font-family--serif, Fraunces, Georgia, serif); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
.afc-media__sub { margin: 0; font-size: 0.875rem; color: var(--wp--preset--color--ink-muted, #6d665f); }

/* grid */
.afc-media__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.afc-media__grid--post { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .afc-media__grid--post { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .afc-media__grid { gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); } .afc-media__grid--post { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .afc-media__grid { gap: 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); } .afc-media__grid--post { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.afc-mcard-li { margin: 0; min-width: 0; }
.afc-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* card */
.afc-mcard { position: relative; display: block; color: #faf5ed; text-decoration: none; border-radius: var(--afc-radius, 14px); outline-offset: 4px; }
.afc-mcard:focus-visible { outline: 3px solid var(--afc-m-clay); }
.afc-mcard__poster { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: inherit; background: #4c453e; isolation: isolate; box-shadow: 0 1px 2px rgba(33, 25, 18, 0.12), 0 8px 24px -12px rgba(33, 25, 18, 0.35); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.afc-mcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.afc-mcard--post .afc-mcard__img { position: static; display: block; height: auto; }
.afc-mcard.is-contain .afc-mcard__poster::before { content: ""; position: absolute; inset: -12%; background: var(--afc-poster) center / cover; filter: blur(22px) brightness(0.55); z-index: -1; }
.afc-mcard.is-contain .afc-mcard__img { object-fit: contain; }
.afc-mcard__noimg { position: absolute; inset: 0; background: linear-gradient(160deg, #833e2c, #211912); }
.afc-mcard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33, 25, 18, 0) 42%, rgba(33, 25, 18, 0.9) 100%); pointer-events: none; }
.afc-mcard__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin: -1.625rem 0 0 -1.625rem; border-radius: 50%; background: rgba(250, 245, 237, 0.94); color: #211912; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); transition: transform 0.25s ease, background 0.25s ease; }
.afc-mcard__playicon { margin-left: 2px; }
.afc-mcard__chip { position: absolute; top: 0.7rem; right: 0.7rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(33, 25, 18, 0.72); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.afc-mcard__meta { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 0.3rem; padding: 1rem 1rem 1.05rem; }
.afc-mcard__date { order: -1; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250, 245, 237, 0.75); }
.afc-mcard__title { font-family: var(--wp--preset--font-family--serif, Fraunces, Georgia, serif); font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.1rem); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
@media (hover: hover) {
	.afc-mcard:hover .afc-mcard__poster { box-shadow: 0 2px 4px rgba(33, 25, 18, 0.14), 0 18px 36px -14px rgba(33, 25, 18, 0.5); transform: translateY(-3px); }
	.afc-mcard:hover .afc-mcard__img { transform: scale(1.04); }
	.afc-mcard:hover .afc-mcard__play { transform: scale(1.1); background: #fff; }
}
@media (prefers-reduced-motion: reduce) { .afc-mcard__poster, .afc-mcard__img, .afc-mcard__play { transition: none; } .afc-mcard:hover .afc-mcard__poster, .afc-mcard:hover .afc-mcard__img, .afc-mcard:hover .afc-mcard__play { transform: none; } }

/* follow band, buttons, privacy */
.afc-media__follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; margin: 0 0 1.75rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 20px; background: var(--afc-m-ink); color: var(--afc-m-paper); }
.afc-media__follow > div { max-width: 40rem; }
.afc-media__follow-eyebrow { margin: 0 0 0.6rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #d9906f; }
.afc-media__follow h2 { margin: 0 0 0.6rem; font-family: var(--wp--preset--font-family--serif, Fraunces, Georgia, serif); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; color: var(--afc-m-paper); }
.afc-media__follow p:last-child { margin: 0; color: rgba(250, 245, 237, 0.78); }
.afc-media__btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1.6rem; border-radius: 999px; background: var(--afc-m-ink); color: var(--afc-m-paper); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease; }
@media (hover: hover) { .afc-media__btn:hover { background: var(--wp--preset--color--clay-deep, #833e2c); color: #fff; } }
.afc-media__btn:focus-visible { outline: 3px solid var(--afc-m-clay); outline-offset: 3px; }
.afc-media__follow .afc-media__btn { background: var(--afc-m-paper); color: var(--afc-m-ink); }
@media (hover: hover) { .afc-media__follow .afc-media__btn:hover { background: #fff; color: var(--afc-m-ink); } }
.afc-media__privacy { max-width: 46rem; margin: 0; font-size: 0.8rem; line-height: 1.55; color: var(--wp--preset--color--ink-muted, #6d665f); }
.afc-media__empty { padding: 3rem 0 4rem; }

/* lightbox */
html.afc-mlb-open { overflow: hidden; }
.afc-mlb { padding: 0; border: 0; background: transparent; color: var(--afc-m-ink, #211912); max-width: none; max-height: none; width: 100vw; height: 100dvh; overflow: hidden; }
.afc-mlb:not([open]) { display: none; }
.afc-mlb::backdrop { background: rgba(20, 14, 9, 0.86); backdrop-filter: blur(5px); }
.afc-mlb[open] { display: grid; place-items: center; }
.afc-mlb__shell { position: relative; display: grid; grid-template-columns: auto minmax(0, 340px); width: min(980px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); border-radius: 20px; overflow: hidden; background: #faf5ed; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); animation: afc-mlb-in 0.22s ease-out; }
@keyframes afc-mlb-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .afc-mlb__shell { animation: none; } }
.afc-mlb__close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 3; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: #faf5ed; color: #211912; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
@media (hover: hover) { .afc-mlb__close:hover { background: #fff; } .afc-mlb__step:hover { background: #efe6db; } }
.afc-mlb__close:focus-visible, .afc-mlb__step:focus-visible { outline: 3px solid var(--afc-m-clay, #b16148); outline-offset: 2px; }
.afc-mlb__stage { display: grid; place-items: center; min-height: 0; padding: 1.25rem; overflow-y: auto; background: #120d09; }
.afc-mlb { --afc-fw: min(400px, calc(100vw - 4.5rem), max(300px, calc((100dvh - 7rem - 190px) / 1.25))); }
.afc-mlb__frame { position: relative; width: var(--afc-fw); height: var(--afc-fh, calc(var(--afc-fw) * 1.25 + 190px)); border-radius: 12px; overflow: hidden; background: #fff; transition: height 0.2s ease; }
.afc-mlb__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.afc-mlb__loading { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 0.9rem; background: #1c1510; color: rgba(250, 245, 237, 0.8); font-size: 0.85rem; }
.afc-mlb__loading[hidden] { display: none; }
.afc-mlb__spinner { width: 2rem; height: 2rem; border: 2px solid rgba(250, 245, 237, 0.2); border-top-color: #faf5ed; border-radius: 50%; animation: afc-spin 0.8s linear infinite; }
@keyframes afc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .afc-mlb__spinner { animation-duration: 2.4s; } }
.afc-mlb__info { box-sizing: border-box; display: flex; height: 0; min-height: 100%; flex-direction: column; gap: 0.75rem; padding: 2rem 1.75rem 1.5rem; overflow-y: auto; min-width: 0; }
.afc-mlb__kicker { margin: 0; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--afc-m-clay, #b16148); }
.afc-mlb__title { margin: 0; padding-right: 2rem; font-family: var(--wp--preset--font-family--serif, Fraunces, Georgia, serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; text-wrap: balance; }
.afc-mlb__date { margin: 0; font-size: 0.8rem; color: #6d665f; }
.afc-mlb__info > * { flex: 0 0 auto; }
.afc-mlb__caption { flex: 1 1 0 !important; margin: 0; min-height: 3rem; overflow-y: auto; white-space: pre-line; font-size: 0.9rem; line-height: 1.55; color: #4c453e; }
.afc-mlb__fallback { padding: 0.9rem 1rem; border-radius: 12px; background: #efe6db; font-size: 0.88rem; }
.afc-mlb__fallback[hidden], .afc-mlb__caption[hidden] { display: none; }
.afc-mlb__fallback p { margin: 0; }
.afc-mlb__watch { align-self: flex-start; margin-top: 0.25rem; }
.afc-mlb__nav { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid #d8cfc7; }
.afc-mlb__step { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid #d8cfc7; border-radius: 50%; background: transparent; color: #211912; cursor: pointer; }
.afc-mlb__step[hidden] { display: none; }
.afc-mlb__count { font-size: 0.8rem; color: #6d665f; font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: center; }
.afc-mlb__note { margin: 0; font-size: 0.72rem; color: #837c75; }
@media (min-width: 821px) { .afc-mlb__stage { min-height: 440px; } }
@media (max-width: 820px) {
	.afc-mlb__shell { grid-template-columns: minmax(0, 1fr); width: 100vw; height: 100dvh; max-height: none; border-radius: 0; overflow-y: auto; align-content: start; }
	.afc-mlb__stage { padding: 3.5rem 1rem 1rem; overflow: visible; min-height: auto; }
	.afc-mlb__caption { flex: 0 0 auto !important; overflow: visible; }
	.afc-mlb { --afc-fw: min(400px, calc(100vw - 2rem)); }
	.afc-mlb__info { height: auto; min-height: 0; overflow: visible; padding: 1.5rem 1.25rem 2rem; }
	.afc-mlb__title { padding-right: 0; }
	.afc-mlb__close { position: fixed; background: rgba(250, 245, 237, 0.95); }
}
