/*
Theme Name: Smugsite
Theme URI: https://example.com/smugsite
Author: Ben
Description: A photography gallery theme in the spirit of SmugMug: galleries and nested collections, public / unlisted / password / private visibility, expiring share links, client accounts, protected original downloads (single + zip), justified/masonry/square grids and a keyboard + swipe lightbox.
Version: 1.36.2
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smugsite
Tags: photography, portfolio, gallery, grid-layout, custom-colors, custom-logo, custom-menu, featured-images
*/

/* ---------- Tokens ---------- */
:root {
	--smg-accent: #ffffff;
	--smg-on-accent: #000000;
	--smg-row: 260px;
	--smg-gap: 8px;
	--smg-bg: #f7f6f3;
	--smg-surface: #ffffff;
	--smg-text: #1b1c1e;
	--smg-muted: #6c6f75;
	--smg-line: #e4e2dd;
	--smg-radius: 10px;
	--smg-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--smg-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--smg-max: 1240px;
}
.smg-scheme-dark {
	--smg-bg: #000000;
	--smg-surface: #0c0c0e;
	--smg-text: #f2f0eb;
	--smg-muted: #8b8d92;
	--smg-line: #1f2023;
	color-scheme: dark;
}
.smg-scheme-dark .smg-badge--password { background: #2a2210; color: #f0d48a; border-color: #4a3c18; }
.smg-scheme-dark .smg-badge--private { background: #f2f0eb; color: #000; border-color: #f2f0eb; }
.smg-scheme-dark .smg-hero--image::after { background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, #000 100%); }
.smg-scheme-dark .smg-gate__card { box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--smg-bg);
	color: var(--smg-text);
	font: 16px/1.6 var(--smg-font);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--smg-text); text-decoration-color: currentColor; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: 1.35rem; }
:focus-visible { outline: 2px solid var(--smg-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; padding: 8px 12px; background: var(--smg-surface); }

.smg-wrap { width: min(100% - 2.5rem, var(--smg-max)); margin-inline: auto; }
.smg-wrap--narrow { --smg-max: 760px; }
.smg-wrap--wide { --smg-max: 1680px; width: min(100% - 1.5rem, var(--smg-max)); }
.smg-section { padding-block: clamp(2rem, 5vw, 4rem); }
.smg-section + .smg-section { padding-top: 0; }
.smg-center { text-align: center; }
.smg-empty, .smg-note { color: var(--smg-muted); }
.smg-note { font-size: .9rem; margin: .75rem 0 0; }
.smg-prose { max-width: 70ch; }
.smg-prose > :first-child { margin-top: 0; }
.smg-lede { color: var(--smg-muted); font-size: 1.05rem; }

/* ---------- Header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--smg-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--smg-line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.site-title { font-family: var(--smg-display); font-size: 1.35rem; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.site-brand { flex: none; display: flex; align-items: center; }
.custom-logo-link { display: block; }
.custom-logo { max-height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.site-nav__list { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav__list a { text-decoration: none; font-size: .95rem; color: var(--smg-muted); }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { color: var(--smg-text); }
.site-nav__list ul { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; color: inherit; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; margin: auto; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -7px; } .nav-toggle__bars::after { position: absolute; top: 7px; }
@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; inset: 64px 0 auto; background: var(--smg-surface); border-bottom: 1px solid var(--smg-line); }
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
	.site-nav__list a { display: block; padding: .6rem 0; }
}
.site-footer { border-top: 1px solid var(--smg-line); margin-top: 3rem; color: var(--smg-muted); font-size: .9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.site-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-footer__copy { margin: 0; }

/* ---------- Buttons, chips, badges ---------- */
.smg-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid var(--smg-accent); background: var(--smg-accent); color: var(--smg-on-accent); font: 500 .92rem/1 var(--smg-font); text-decoration: none; cursor: pointer; transition: filter .15s, background .15s; }
.smg-btn:hover { color: var(--smg-on-accent); filter: brightness(.9); }
.smg-btn--ghost { background: transparent; color: var(--smg-text); border-color: var(--smg-line); }
.smg-btn--ghost:hover { color: var(--smg-text); background: var(--smg-surface); filter: none; border-color: var(--smg-muted); }
.smg-btn--light { color: #fff; border-color: rgba(255,255,255,.5); }
.smg-btn--light:hover { color: var(--smg-text); background: #fff; }
.smg-btn.is-done { background: var(--smg-accent); color: var(--smg-on-accent); border-color: var(--smg-accent); }
.smg-icon { flex: none; }
.smg-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.smg-chip { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--smg-line); font-size: .88rem; text-decoration: none; color: var(--smg-muted); }
.smg-chip:hover, .smg-chip.is-active { color: var(--smg-text); border-color: var(--smg-text); }
.smg-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--smg-surface); color: var(--smg-text); border: 1px solid var(--smg-line); }
.smg-badge .smg-icon { width: 12px; height: 12px; }
.smg-badge--private { background: #2b2d31; color: #fff; border-color: #2b2d31; }
.smg-badge--password { background: #fff4d6; color: #6b4b00; border-color: #f0dc9e; }

/* ---------- Page heads / crumbs ---------- */
.smg-page-head { margin-bottom: 2rem; }
.smg-page-title { font-family: var(--smg-display); font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.02em; margin: 0; }
.smg-crumbs { font-size: .85rem; color: var(--smg-muted); margin-bottom: .5rem; }
.smg-crumbs a { text-decoration: none; }
.smg-section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }
.smg-section__head a { font-size: .92rem; color: var(--smg-muted); text-decoration: none; }

/* ---------- Hero ---------- */
.smg-hero { position: relative; padding: clamp(4rem, 12vw, 9rem) 0; overflow: hidden; }
.smg-hero--image { color: #fff; min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.smg-hero__media { position: absolute; inset: 0; }
.smg-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.smg-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6)); }
.smg-hero__inner { position: relative; z-index: 1; }
.smg-hero__title { font-family: var(--smg-display); font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -.03em; margin: 0 0 .25em; max-width: 14ch; }
.smg-hero__sub { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .85; margin: 0 0 1.5rem; }
.smg-hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0; }

/* ---------- Cards ---------- */
.smg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem 1.25rem; }
.smg-cards--collections { margin-bottom: 2.5rem; }
.smg-card__link { display: block; text-decoration: none; }
.smg-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--smg-radius); overflow: hidden; background: var(--smg-line); }
.smg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.smg-card__link:hover .smg-card__media img { transform: scale(1.04); }
.smg-card__media .smg-badge { position: absolute; top: .6rem; left: .6rem; }
.smg-card--collection .smg-card__media { box-shadow: 6px -6px 0 -1px var(--smg-bg), 6px -6px 0 0 var(--smg-line); margin: 6px 6px 0 0; }
.smg-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--smg-muted); }
.smg-card__title { font-size: 1.02rem; margin: .75rem 0 .15rem; }
.smg-card__meta { margin: 0; font-size: .85rem; color: var(--smg-muted); }

/* ---------- Single gallery ---------- */
.smg-gallery__head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.75rem; }
.smg-gallery__titlebar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.smg-gallery__meta { color: var(--smg-muted); font-size: .92rem; margin: .4rem 0 1rem; }
.smg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.25rem; }
.smg-actions .smg-note { flex-basis: 100%; margin: 0; }
.smg-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.smg-share__link { font-size: .85rem; color: var(--smg-muted); text-decoration: none; padding: .35rem .6rem; border-radius: 6px; }
.smg-share__link:hover { background: var(--smg-surface); color: var(--smg-text); }

/* ---------- Grids ---------- */
.smg-grid { --g: var(--smg-gap); }
.smg-grid__item { margin: 0; position: relative; overflow: hidden; background: var(--smg-line); }
.smg-grid__link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.smg-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform .4s; }
.smg-grid__link:hover img { opacity: .92; }

/* Justified rows: each item grows in proportion to its aspect ratio. */
.smg-grid--justified { display: flex; flex-wrap: wrap; gap: var(--g); }
.smg-grid--justified .smg-grid__item { flex-grow: calc(var(--w) / var(--h) * 100); flex-basis: calc(var(--w) / var(--h) * var(--smg-row)); aspect-ratio: var(--w) / var(--h); max-height: calc(var(--smg-row) * 1.6); }
.smg-grid--justified::after { content: ""; flex-grow: 999999; }

/* Masonry columns. */
.smg-grid--masonry { columns: calc(var(--smg-row) * 1.1); column-gap: var(--g); }
.smg-grid--masonry .smg-grid__item { break-inside: avoid; margin-bottom: var(--g); aspect-ratio: var(--w) / var(--h); }

/* Square tiles. */
.smg-grid--square { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--smg-row), 45vw), 1fr)); gap: var(--g); }
.smg-grid--square .smg-grid__item { aspect-ratio: 1; }

@media (max-width: 600px) {
	.smg-grid--justified .smg-grid__item { flex-basis: calc(var(--w) / var(--h) * 140px); }
	.smg-grid--masonry { columns: 2; }
}

/* ---------- Gate ---------- */
.smg-gate { position: relative; min-height: 70vh; display: grid; place-items: center; padding: 3rem 1.25rem; overflow: hidden; }
.smg-gate__bg { position: absolute; inset: -40px; }
.smg-gate__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.1); opacity: .55; transform: scale(1.1); }
.smg-gate__card { position: relative; width: min(100%, 420px); background: var(--smg-surface); border: 1px solid var(--smg-line); border-radius: 16px; padding: 2.25rem 2rem; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.smg-gate__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--smg-bg); color: var(--smg-accent); margin-bottom: 1rem; }
.smg-gate__title { font-family: var(--smg-display); font-size: 1.6rem; }
.smg-gate__error { color: #b42318; font-weight: 500; }
.smg-gate__form { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.smg-gate__form .smg-btn { justify-content: center; }
input[type="password"], input[type="text"], input[type="email"], input[type="search"] { width: 100%; padding: .7rem .9rem; border-radius: 8px; border: 1px solid var(--smg-line); background: var(--smg-bg); color: var(--smg-text); font: inherit; }
input:focus { outline: none; border-color: var(--smg-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--smg-accent) 25%, transparent); }

/* ---------- Client login ---------- */
.smg-login { max-width: 380px; background: var(--smg-surface); border: 1px solid var(--smg-line); border-radius: 14px; padding: 1.75rem; }
.smg-login label { display: block; font-size: .88rem; margin-bottom: .3rem; }
.smg-login p { margin: 0 0 1rem; }
.smg-login .login-remember label { display: flex; gap: .4rem; align-items: center; }
.smg-login input[type="submit"] { padding: .65rem 1.2rem; border-radius: 999px; border: 0; background: var(--smg-accent); color: var(--smg-on-accent); font: 500 .95rem var(--smg-font); cursor: pointer; }

/* ---------- Posts + pagination ---------- */
.smg-posts { display: grid; gap: 2.5rem; }
.smg-posts:has(.smg-card) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem 1.25rem; }
.smg-post__thumb img { border-radius: var(--smg-radius); margin-bottom: 1rem; }
.smg-post__title { font-size: 1.5rem; }
.smg-post__title a { text-decoration: none; }
.smg-pagination { margin-top: 2.5rem; }
.smg-pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.smg-pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--smg-line); border-radius: 8px; text-decoration: none; font-size: .9rem; }
.smg-pagination .current { background: var(--smg-text); color: var(--smg-bg); border-color: var(--smg-text); }

/* ---------- Lightbox ---------- */
.smg-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(8,8,10,.96); color: #fff; display: none; grid-template-rows: auto 1fr auto; }
.smg-lb.is-open { display: grid; }
.smg-lb__bar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; gap: 1rem; font-size: .9rem; }
.smg-lb__count { opacity: .7; font-variant-numeric: tabular-nums; }
.smg-lb__tools { display: flex; gap: .5rem; align-items: center; }
.smg-lb__btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; text-decoration: none; font-size: 1.4rem; line-height: 1; }
.smg-lb__btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.smg-lb__btn[hidden] { display: none; }
.smg-lb__stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.smg-lb__img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.smg-lb__img.is-loading { opacity: .25; }
.smg-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.smg-lb__nav--prev { left: 1rem; } .smg-lb__nav--next { right: 1rem; }
.smg-lb__caption { text-align: center; padding: .75rem 1rem 1.25rem; font-size: .92rem; opacity: .8; min-height: 2.5rem; }
@media (max-width: 600px) { .smg-lb__nav { display: none; } }
body.smg-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Header actions ---------- */
.site-header__inner { gap: 1.5rem; }
.site-nav { margin-left: auto; }
.site-header__actions { display: flex; align-items: center; gap: .9rem; }
.site-header__actions:empty { display: none; }
.site-header__link { font-size: .92rem; color: var(--smg-muted); text-decoration: none; }
.smg-btn--sm { padding: .45rem .9rem; font-size: .85rem; }
.smg-btn--lg { padding: .85rem 1.4rem; font-size: 1rem; }
@media (max-width: 720px) { .site-header__actions .site-header__link { display: none; } }

/* ---------- Platform landing ---------- */
.smg-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--smg-muted); margin: 0 0 1rem; }
.smg-landing__hero { padding-block: clamp(5rem, 14vw, 10rem) clamp(3rem, 8vw, 6rem); }
.smg-landing__title { font-family: var(--smg-display); font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: .98; letter-spacing: -.035em; font-weight: 500; max-width: 13ch; margin: 0 0 1.5rem; }
.smg-landing__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--smg-muted); max-width: 46ch; margin: 0 0 2.25rem; }
.smg-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--smg-line); padding-bottom: 5rem; }
.smg-feature { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--smg-line); }
.smg-feature__n { font: 500 .75rem var(--smg-font); color: var(--smg-muted); letter-spacing: .1em; }
.smg-feature h3 { font-family: var(--smg-display); font-weight: 500; font-size: 1.45rem; margin: .8rem 0 .5rem; }
.smg-feature p { color: var(--smg-muted); margin: 0; max-width: 36ch; }

/* Landing hero image */
.smg-landing__top { position: relative; overflow: hidden; }
.smg-landing__top.has-image { min-height: min(92vh, 860px); display: flex; align-items: flex-end; }
.smg-landing__media { position: absolute; inset: 0; }
.smg-landing__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.smg-landing__top.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%), linear-gradient(180deg, rgba(0,0,0,0) 55%, #000 100%); }
.smg-landing__top.has-image .smg-landing__hero { position: relative; z-index: 1; color: #fff; }
.smg-landing__top.has-image .smg-landing__sub { color: rgba(255,255,255,.82); }
.smg-landing__top.has-image .smg-eyebrow { color: rgba(255,255,255,.7); }
.smg-landing__top.has-image .smg-btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.smg-landing__top.has-image + .smg-features { margin-top: 2rem; }
@media (max-width: 720px) {
	.smg-landing__top.has-image { min-height: 82vh; }
	.smg-landing__media img { object-position: 72% center; }
	.smg-landing__top.has-image::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.85) 78%, #000 100%); }
}

/* Landing showcase rows */
.smg-showcase { display: flex; flex-direction: column; gap: clamp(3rem, 8vw, 7rem); padding-block: clamp(3rem, 8vw, 6rem); }
.smg-showcase__row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.smg-showcase__row.is-flipped { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.smg-showcase__row.is-flipped .smg-showcase__media { order: 2; }
.smg-showcase__media { margin: 0; border-radius: 14px; overflow: hidden; background: var(--smg-surface); aspect-ratio: 16 / 9; }
.smg-showcase__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.smg-showcase__row:hover .smg-showcase__media img { transform: scale(1.03); }
.smg-showcase__text h2 { font-family: var(--smg-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -.025em; margin: .9rem 0 1rem; }
.smg-showcase__text p { color: var(--smg-muted); font-size: 1.05rem; max-width: 40ch; margin: 0; }
@media (max-width: 900px) {
	.smg-showcase__row, .smg-showcase__row.is-flipped { grid-template-columns: 1fr; }
	.smg-showcase__row.is-flipped .smg-showcase__media { order: 0; }
}

/* ---------- Gallery audio player ---------- */
.smg-audio { margin-top: 1.5rem; background: var(--smg-surface); border: 1px solid var(--smg-line); border-radius: 14px; overflow: hidden; max-width: 760px; }
.smg-audio__main { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; }
.smg-audio__btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--smg-accent); color: var(--smg-on-accent); cursor: pointer; }
.smg-audio__btn--sm { width: 34px; height: 34px; background: transparent; color: var(--smg-muted); }
.smg-audio__btn--sm:hover { color: var(--smg-text); background: var(--smg-line); }
.smg-audio__play .i-pause { display: none; }
.smg-audio.is-playing .smg-audio__play .i-play { display: none; }
.smg-audio.is-playing .smg-audio__play .i-pause { display: block; }
.smg-audio__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.smg-audio__title { font-size: .92rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smg-audio__bar { position: relative; height: 4px; border-radius: 4px; background: var(--smg-line); cursor: pointer; }
.smg-audio__bar::before { content: ""; position: absolute; inset: -8px 0; }
.smg-audio__bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: var(--smg-text); }
.smg-audio__bar:focus-visible { outline: 2px solid var(--smg-accent); outline-offset: 4px; }
.smg-audio__time { flex: none; font-size: .78rem; color: var(--smg-muted); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.smg-audio__list { list-style: none; margin: 0; padding: .25rem .5rem .6rem; border-top: 1px solid var(--smg-line); max-height: 280px; overflow: auto; }
.smg-audio__list li { display: flex; align-items: center; }
.smg-audio__track { flex: 1; display: flex; align-items: center; gap: .75rem; padding: .55rem .5rem; border: 0; background: none; color: var(--smg-muted); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; border-radius: 8px; min-width: 0; }
.smg-audio__track:hover { background: var(--smg-line); color: var(--smg-text); }
.smg-audio__track.is-current { color: var(--smg-text); font-weight: 500; }
.smg-audio__n { width: 1.5em; text-align: right; font-variant-numeric: tabular-nums; opacity: .6; }
.smg-audio__name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smg-audio__len { font-size: .8rem; opacity: .7; font-variant-numeric: tabular-nums; }
.smg-audio__dl { display: grid; place-items: center; width: 34px; height: 34px; color: var(--smg-muted); border-radius: 50%; }
.smg-audio__dl:hover { color: var(--smg-text); background: var(--smg-line); }
@media (max-width: 600px) { .smg-audio__time { display: none; } }

/* ---------- Pricing ---------- */
.smg-pricing { padding-block: clamp(3rem, 8vw, 6rem); scroll-margin-top: 80px; }
.smg-pricing__head { text-align: center; margin: 0 auto 2.5rem; max-width: 640px; }
.smg-pricing__head h2 { font-family: var(--smg-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.025em; margin: 0 0 .75rem; }
.smg-pricing__head .smg-landing__sub { margin: 0 auto; }
.smg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
@media (max-width: 900px) { .smg-plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.smg-plan { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.75rem 1.5rem; border: 1px solid var(--smg-line); border-radius: 16px; background: var(--smg-surface); }
.smg-plan.is-featured { border-color: var(--smg-text); }
.smg-plan__flag { position: absolute; top: -11px; left: 1.5rem; padding: .2rem .65rem; border-radius: 999px; background: var(--smg-text); color: var(--smg-bg); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.smg-plan__name { font-family: var(--smg-display); font-weight: 500; font-size: 1.5rem; margin: 0; }
.smg-plan__price { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; margin: .25rem 0 0; }
.smg-plan__tag { color: var(--smg-muted); margin: 0 0 .75rem; font-size: .95rem; }
.smg-plan__list { list-style: none; margin: 0 0 1.5rem; padding: 1rem 0 0; border-top: 1px solid var(--smg-line); display: flex; flex-direction: column; gap: .55rem; font-size: .92rem; flex: 1; }
.smg-plan__list li { display: flex; gap: .6rem; }
.smg-plan__list li::before { content: "✓"; color: var(--smg-muted); flex: none; }
.smg-btn--block { width: 100%; justify-content: center; }

/* "Made with" badge on Personal sites */
.smg-madewith { position: fixed; right: 14px; bottom: 14px; z-index: 40; padding: .45rem .8rem; border-radius: 999px; background: rgba(0,0,0,.82); color: #f2f0eb; border: 1px solid #2a2a2e; font-size: .78rem; text-decoration: none; backdrop-filter: blur(8px); }
.smg-madewith:hover { color: #fff; border-color: #f2f0eb; }

/* ---------- Page builder ---------- */
.smg-builder { --smg-content: 760px; padding: 3rem 0 4rem; }
.smg-builder > * { width: min(100% - 2.5rem, var(--smg-content)); margin-inline: auto; }
.smg-builder > .alignwide { width: min(100% - 2.5rem, var(--smg-max)); }
.smg-builder > .alignfull { width: 100%; }
.smg-builder > * + * { margin-top: 1.5rem; }
.smg-builder > .alignfull:first-child { margin-top: -3rem; }
.smg-builder h1, .smg-builder h2, .smg-builder h3 { font-family: var(--smg-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.smg-builder .wp-block-button__link { background: var(--smg-accent); color: var(--smg-on-accent); border-radius: 999px; padding: .7rem 1.3rem; font: 500 .95rem/1 var(--smg-font); }
.smg-builder .is-style-outline .wp-block-button__link { background: transparent; color: var(--smg-text); border: 1px solid var(--smg-line); }
.smg-builder .wp-block-image img { border-radius: var(--smg-radius); }
.smg-builder .wp-block-columns { gap: 2rem; }
.smg-prose .alignwide, .smg-prose .alignfull { max-width: none; }
.smg-block-gallery .smg-cards--one { grid-template-columns: minmax(0, 360px); }

/* Contact form block */
.smg-contact { display: grid; gap: .25rem; }
.smg-contact p { margin: 0 0 .9rem; }
.smg-contact label { display: grid; gap: .35rem; font-size: .9rem; }
.smg-contact label > span { color: var(--smg-muted, inherit); }
.smg-contact input, .smg-contact textarea { width: 100%; padding: .7rem .85rem; border-radius: 10px; border: 1px solid var(--smg-line, rgba(128,128,128,.35)); background: var(--smg-surface, transparent); color: inherit; font: inherit; }
.smg-contact input:focus, .smg-contact textarea:focus { outline: none; border-color: currentColor; }
.smg-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 600px) { .smg-contact__row { grid-template-columns: 1fr; } }
.smg-contact__hp { position: absolute !important; left: -9999px; }
.smg-contact__done { padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid var(--smg-line, rgba(128,128,128,.35)); }
.smg-contact__error { color: #e5484d; }

/* ---------- Audio albums ---------- */
.smg-album { padding: 3rem 0 4rem; }
.smg-album__top { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 2.5rem; align-items: end; }
.smg-album__art { aspect-ratio: 1; border-radius: var(--smg-radius); overflow: hidden; background: var(--smg-surface); border: 1px solid var(--smg-line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.smg-album__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smg-album__noart { display: grid; place-items: center; height: 100%; color: var(--smg-muted); }
.smg-album__noart .smg-icon { width: 64px; height: 64px; stroke-width: 1.2; }
.smg-album__info .smg-page-title { margin: 0; }
.smg-album__player .smg-audio { max-width: none; margin-top: 2rem; }
.smg-audio--album .smg-audio__list { max-height: none; }
.smg-audio--album .smg-audio__list li { border-bottom: 1px solid var(--smg-line); }
.smg-audio--album .smg-audio__list li:last-child { border-bottom: 0; }
.smg-album__photos { margin-top: 2.5rem; }
.smg-card--album .smg-card__media { aspect-ratio: 1; }
@media (max-width: 760px) { .smg-album__top { grid-template-columns: 1fr; gap: 1.5rem; } .smg-album__art { max-width: 320px; } }

/* ---------- Social links ---------- */
.smg-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.smg-social__link { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--smg-muted); border: 1px solid var(--smg-line); text-decoration: none; transition: color .15s, border-color .15s, background .15s; }
.smg-social__link:hover { color: var(--smg-text); border-color: var(--smg-muted); background: var(--smg-surface); }
.site-footer__inner { align-items: center; }
.smg-block-social.aligncenter .smg-social { justify-content: center; }
.smg-block-social.alignright .smg-social { justify-content: flex-end; }
.smg-share__link--whatsapp, .smg-share__link--linkedin, .smg-share__link--reddit { white-space: nowrap; }

/* ---------- Photo protection ---------- */
.smg-protect-on .smg-grid img, .smg-protect-on .smg-lb__img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.smg-protect-on .smg-lb__stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.smg-protect-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); background: rgba(17,17,17,.92); color: #fff; padding: .65rem 1.1rem; border-radius: 999px; font-size: .85rem; opacity: 0; transition: opacity .2s, transform .2s; z-index: 100000; pointer-events: none; }
.smg-protect-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.smg-gate__hint { font-size: .9rem; color: var(--smg-muted); margin-top: -.25rem; }

/* Plan tabs (Personal / Professional / Photographer) */
.smg-plantabs__tabs { display: flex; justify-content: center; gap: .25rem; width: max-content; max-width: 100%; margin: 0 auto 1rem; padding: .3rem; border: 1px solid var(--smg-line); border-radius: 999px; background: var(--smg-surface); overflow-x: auto; }
.smg-plantabs__tab { font: inherit; font-size: .92rem; font-weight: 500; border: 0; background: transparent; color: var(--smg-muted); padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.smg-plantabs__tab:hover { color: var(--smg-text); }
.smg-plantabs__tab.is-on { background: var(--smg-text); color: var(--smg-bg); }
.smg-plantabs__panel[hidden] { display: none !important; }
.smg-plantabs__lead { text-align: center; color: var(--smg-muted); margin: 0 0 2rem; }
.smg-plan__tier { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--smg-muted); }

/* Home-page montage (Pinterest-style wall) */
.smg-montage { padding-block: clamp(3rem, 7vw, 6rem); }
.smg-montage__head { max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.smg-montage__head h2 { font-family: var(--smg-display); font-weight: 500; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; margin: .3rem 0 1rem; }
.smg-montage__head .smg-landing__sub { margin-inline: auto; }
.smg-montage__wall { columns: 4 250px; column-gap: 14px; }
.smg-montage__tile { position: relative; display: block; break-inside: avoid; margin: 0 0 14px; border-radius: 16px; overflow: hidden; background: var(--smg-surface); color: #fff; text-decoration: none; isolation: isolate; }
.smg-montage__tile img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.smg-montage__tile:hover img, .smg-montage__tile:focus-visible img { transform: scale(1.04); }
.smg-montage__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.smg-montage__tile:hover::after, .smg-montage__tile:focus-visible::after { opacity: 1; }
.smg-montage__tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: .3rem .7rem; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; }
.smg-montage__cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: .1rem; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.smg-montage__cap b { font-size: .95rem; font-weight: 600; }
.smg-montage__cap small { font-size: .78rem; opacity: .8; }
.smg-montage__tile:hover .smg-montage__cap, .smg-montage__tile:focus-visible .smg-montage__cap { opacity: 1; transform: none; }
.smg-montage__cta { display: flex; flex-direction: column; justify-content: center; gap: .55rem; min-height: 300px; padding: 1.8rem; background: var(--smg-text); color: var(--smg-bg); border: 1px solid var(--smg-line); }
.smg-montage__cta::after { display: none; }
.smg-montage__cta strong { font-family: var(--smg-display); font-weight: 500; font-size: 1.9rem; line-height: 1.05; letter-spacing: -.02em; }
.smg-montage__cta span { opacity: .7; font-size: .92rem; }
.smg-montage__cta em { font-style: normal; font-weight: 600; margin-top: .6rem; }
.smg-montage__plus { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; line-height: 1; border: 1.5px solid currentColor; opacity: 1 !important; margin-bottom: .4rem; transition: transform .3s; }
.smg-montage__cta:hover .smg-montage__plus { transform: rotate(90deg); }
.smg-montage__foot { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; justify-content: center; margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; }
@media (max-width: 600px) { .smg-montage__wall { columns: 2; column-gap: 8px; } .smg-montage__tile { margin-bottom: 8px; border-radius: 12px; } .smg-montage__cta { min-height: 220px; padding: 1.1rem; } .smg-montage__cta strong { font-size: 1.35rem; } .smg-montage__cta span:not(.smg-montage__plus) { display: none; } .smg-montage__plus { width: 40px; height: 40px; font-size: 1.4rem !important; } .smg-montage__tile:not(.smg-montage__tile--idea) .smg-montage__cap { opacity: 1; transform: none; } .smg-montage__tile:not(.smg-montage__tile--idea)::after { opacity: 1; } .smg-montage__tag { top: 8px; left: 8px; font-size: .66rem; } }
@media (prefers-reduced-motion: reduce) { .smg-montage__tile img, .smg-montage__plus { transition: none; } }
.smg-montage__cta .smg-montage__plus { font-size: 1.8rem; opacity: 1; }
.smg-montage__cta { background: #000; color: #fff; border: 1px solid #2a2a2d; }
.smg-montage__cta span, .smg-montage__cta em, .smg-montage__cta strong { color: #fff; }
.smg-montage__cta:hover { border-color: #fff; }

/* ================= Community: feed + forum ================= */
.site-header__link.is-on { color: var(--smg-text); }
.smg-comm { padding-block: 1.5rem 5rem; }
.smg-comm__nav { display: flex; gap: .3rem; margin-bottom: 1.6rem; padding: .3rem; border: 1px solid var(--smg-line); border-radius: 999px; width: max-content; }
.smg-comm__nav a { padding: .45rem 1.1rem; border-radius: 999px; color: var(--smg-muted); text-decoration: none; font-weight: 500; font-size: .92rem; }
.smg-comm__nav a.is-on { background: var(--smg-text); color: var(--smg-bg); }
.smg-comm__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.smg-comm__head h1 { font-family: var(--smg-display); font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.02; letter-spacing: -.03em; margin: .2rem 0 .4rem; }
.smg-comm__head .smg-muted { margin: 0; }
.smg-comm__notice { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: .92rem; background: var(--smg-surface); border: 1px solid var(--smg-line); }
.smg-comm__notice.is-ok { background: #10261a; border-color: #1d4a30; color: #9be2b6; }
.smg-comm__notice.is-mid { background: #2a2310; border-color: #4a3c12; color: #f0c36b; }
.smg-comm__notice.is-bad { background: #2e1214; border-color: #4f1f22; color: #ff9b9b; }
.smg-comm__tabs { display: flex; gap: 1.2rem; margin-bottom: 1.2rem; font-size: .92rem; }
.smg-comm__tabs a { color: var(--smg-muted); text-decoration: none; padding-bottom: .3rem; border-bottom: 2px solid transparent; }
.smg-comm__tabs a.is-on { color: var(--smg-text); border-color: var(--smg-text); }
.smg-comm__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 1000px) { .smg-comm__grid { grid-template-columns: repeat(4, 1fr); } }
.smg-comm__cell { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--smg-surface); }
.smg-comm__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.smg-comm__cell:hover img { transform: scale(1.04); }
.smg-comm__multi { position: absolute; top: 8px; right: 10px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); font-size: 1.05rem; }
.smg-comm__stats { position: absolute; inset: 0; display: flex; gap: 1.2rem; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 600; opacity: 0; transition: opacity .2s; }
.smg-comm__cell:hover .smg-comm__stats, .smg-comm__cell:focus-visible .smg-comm__stats { opacity: 1; }
.smg-comm__empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--smg-line); border-radius: 16px; }
.smg-comm__empty h2 { font-family: var(--smg-display); font-weight: 500; margin: 0 0 .4rem; }
.smg-comm__pages ul { display: flex; gap: .4rem; justify-content: center; list-style: none; padding: 0; margin: 2rem 0 0; }
.smg-comm__pages a, .smg-comm__pages span { display: inline-block; min-width: 2.2rem; padding: .4rem .7rem; border-radius: 8px; border: 1px solid var(--smg-line); text-align: center; color: var(--smg-text); text-decoration: none; }
.smg-comm__pages .current { background: var(--smg-text); color: var(--smg-bg); }
/* Single post */
.smg-comm__post { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); border: 1px solid var(--smg-line); border-radius: 16px; overflow: hidden; background: var(--smg-surface); }
@media (max-width: 860px) { .smg-comm__post { grid-template-columns: 1fr; } }
.smg-comm__photos { position: relative; background: #000; }
.smg-comm__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; }
.smg-comm__track::-webkit-scrollbar { display: none; }
.smg-comm__track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; min-height: 360px; max-height: 82vh; }
.smg-comm__track img { max-width: 100%; max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.smg-comm__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #000; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.smg-comm__arrow.is-prev { left: 10px; } .smg-comm__arrow.is-next { right: 10px; }
.smg-comm__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; gap: 5px; justify-content: center; }
.smg-comm__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.smg-comm__dots span.is-on { background: #fff; }
.smg-comm__side { display: flex; flex-direction: column; padding: 1.1rem 1.2rem; gap: .9rem; min-width: 0; }
.smg-comm__author { display: flex; gap: .7rem; align-items: center; }
.smg-comm__author img { border-radius: 50%; object-fit: cover; }
.smg-comm__author div { display: flex; flex-direction: column; line-height: 1.3; }
.smg-comm__author a { color: var(--smg-text); text-decoration: none; }
.smg-comm__author small, .smg-comm__author small a { color: var(--smg-muted); font-size: .8rem; }
.smg-comm__caption p { margin: 0 0 .6rem; white-space: pre-line; overflow-wrap: anywhere; }
.smg-comm__tag { color: #8fb6f0; text-decoration: none; }
.smg-comm__bar { display: flex; align-items: center; gap: .9rem; border-top: 1px solid var(--smg-line); padding-top: .7rem; }
.smg-comm__bar form { margin: 0; }
.smg-comm__grow { flex: 1; }
.smg-comm__like { font: inherit; display: inline-flex; gap: .4rem; align-items: center; background: none; border: 1px solid var(--smg-line); color: var(--smg-text); border-radius: 999px; padding: .35rem .85rem; cursor: pointer; }
.smg-comm__like span { color: var(--smg-muted); transition: transform .2s, color .2s; }
.smg-comm__like.is-on span { color: #ff4d6d; transform: scale(1.2); }
.smg-comm__report { font: inherit; font-size: .78rem; background: none; border: 0; color: var(--smg-muted); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.smg-comm__comments { display: flex; flex-direction: column; gap: .7rem; overflow-y: auto; max-height: 46vh; }
.smg-comm__comment { display: flex; gap: .6rem; font-size: .9rem; }
.smg-comm__comment img { border-radius: 50%; flex: none; }
.smg-comm__comment div { overflow-wrap: anywhere; }
.smg-comm__comment small { display: block; color: var(--smg-muted); font-size: .75rem; margin-top: .15rem; }
.smg-comm__reply { display: flex; gap: .5rem; margin-top: auto; border-top: 1px solid var(--smg-line); padding-top: .8rem; }
.smg-comm__reply input { flex: 1; background: transparent; border: 0; color: var(--smg-text); font: inherit; outline: none; }
.smg-comm__reply button { background: none; border: 0; color: #8fb6f0; font: inherit; font-weight: 600; cursor: pointer; }
.smg-comm__login { margin-top: auto; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
/* Composer */
.smg-comm__composer { max-width: 680px; display: flex; flex-direction: column; gap: 1rem; }
.smg-comm__drop { position: relative; display: grid; place-items: center; min-height: 200px; border: 1.5px dashed var(--smg-line); border-radius: 16px; text-align: center; padding: 2rem; color: var(--smg-muted); transition: border-color .2s, background .2s; }
.smg-comm__drop.is-over, .smg-comm__drop:hover { border-color: var(--smg-text); background: var(--smg-surface); }
.smg-comm__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.smg-comm__dropin b { display: block; color: var(--smg-text); font-size: 1.1rem; margin-bottom: .3rem; }
.smg-comm__previews { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.smg-comm__previews:empty { display: none; }
.smg-comm__thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--smg-surface); }
.smg-comm__thumb img { width: 100%; height: 100%; object-fit: cover; }
.smg-comm__thumb.is-checking img { opacity: .5; }
.smg-comm__thumb.is-block img { filter: blur(14px) grayscale(1); }
.smg-comm__thumb.is-block::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; color: #ff9b9b; font-size: 1.6rem; font-weight: 700; }
.smg-comm__thumb.is-review::after { content: "⏳"; position: absolute; right: 5px; bottom: 4px; font-size: .9rem; }
.smg-comm__thumb.is-ok::after { content: "✓"; position: absolute; right: 6px; bottom: 3px; color: #7fd6a0; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.smg-comm__screen { margin: 0; padding: .7rem .9rem; border-radius: 10px; font-size: .88rem; background: var(--smg-surface); border: 1px solid var(--smg-line); }
.smg-comm__screen.is-ok { color: #9be2b6; } .smg-comm__screen.is-mid { color: #f0c36b; } .smg-comm__screen.is-bad { color: #ff9b9b; border-color: #4f1f22; }
.smg-comm__field { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--smg-muted); }
.smg-comm__field input, .smg-comm__field textarea, .smg-comm__field select { font: inherit; font-size: 1rem; color: var(--smg-text); background: var(--smg-surface); border: 1px solid var(--smg-line); border-radius: 10px; padding: .75rem .85rem; }
.smg-comm__rules { font-size: .82rem; margin: 0; }
.smg-comm__composer .smg-btn { align-self: flex-start; }
.smg-comm__composer .smg-btn[disabled] { opacity: .45; cursor: not-allowed; }
/* Forum */
.smg-forum { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 800px) { .smg-forum { grid-template-columns: 1fr; } .smg-forum__cats { flex-direction: row !important; overflow-x: auto; } }
.smg-forum__cats { display: flex; flex-direction: column; gap: .15rem; position: sticky; top: 90px; }
.smg-forum__cats a { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; color: var(--smg-muted); text-decoration: none; white-space: nowrap; font-size: .92rem; }
.smg-forum__cats a.is-on, .smg-forum__cats a:hover { background: var(--smg-surface); color: var(--smg-text); }
.smg-forum__cats em { font-style: normal; opacity: .6; }
.smg-forum__list { border: 1px solid var(--smg-line); border-radius: 16px; overflow: hidden; }
.smg-forum__list > .smg-comm__empty { border: 0; }
.smg-forum__row { display: flex; gap: .9rem; align-items: center; padding: .95rem 1.1rem; border-top: 1px solid var(--smg-line); color: var(--smg-text); text-decoration: none; }
.smg-forum__row:first-child { border-top: 0; }
.smg-forum__row:hover { background: var(--smg-surface); }
.smg-forum__row img { border-radius: 50%; flex: none; }
.smg-forum__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.smg-forum__main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smg-forum__main small { color: var(--smg-muted); font-size: .8rem; }
.smg-forum__count { text-align: center; font-weight: 600; min-width: 3.5rem; display: flex; flex-direction: column; }
.smg-forum__count small { color: var(--smg-muted); font-weight: 400; font-size: .72rem; }
.smg-topic { max-width: 820px; }
.smg-topic__crumbs { font-size: .85rem; color: var(--smg-muted); margin: 0 0 .4rem; }
.smg-topic__crumbs a { color: var(--smg-muted); }
.smg-topic h1 { font-family: var(--smg-display); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 1.2rem; }
.smg-topic__msg { border: 1px solid var(--smg-line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .8rem; background: var(--smg-surface); }
.smg-topic__body { margin: .8rem 0; overflow-wrap: anywhere; }
.smg-topic__body p { margin: 0 0 .7rem; }
.smg-topic__body a { color: #8fb6f0; }
.smg-topic__msg .smg-comm__bar { border: 0; padding: 0; }
.smg-topic__reply { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.4rem; }
.smg-topic__reply .smg-btn { align-self: flex-start; }

/* ================= Social: profile, follow, messages ================= */
.smg-inline { display: inline; margin: 0; }
.smg-btn--sm { font-size: .82rem; padding: .4rem .95rem; }
.smg-dm__badge { display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; border-radius: 999px; background: #ff4d6d; color: #fff; font-size: .7rem; font-weight: 700; line-height: 1; vertical-align: 1px; }
.smg-comm__author .smg-btn { flex: none; }
.smg-comm__who { color: var(--smg-text); text-decoration: none; }
.smg-prof { display: flex; gap: clamp(1.2rem, 4vw, 3rem); align-items: center; margin: .5rem 0 2rem; flex-wrap: wrap; }
.smg-prof__av { width: clamp(80px, 14vw, 128px); height: clamp(80px, 14vw, 128px); border-radius: 50%; object-fit: cover; }
.smg-prof__info h1 { font-family: var(--smg-display); font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: 0 0 .5rem; }
.smg-prof__stats { display: flex; gap: 1.4rem; margin: 0 0 .5rem; color: var(--smg-muted); flex-wrap: wrap; }
.smg-prof__stats b { color: var(--smg-text); }
.smg-prof__info > p a { color: #8fb6f0; text-decoration: none; }
.smg-prof__acts { display: flex; gap: .5rem; align-items: center; margin-top: .9rem; flex-wrap: wrap; }
.smg-prof__more { position: relative; }
.smg-prof__more summary { list-style: none; cursor: pointer; padding: .35rem .7rem; border: 1px solid var(--smg-line); border-radius: 999px; color: var(--smg-muted); letter-spacing: .1em; }
.smg-prof__more summary::-webkit-details-marker { display: none; }
.smg-prof__more > div { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; background: var(--smg-surface); border: 1px solid var(--smg-line); border-radius: 10px; padding: .4rem; min-width: 160px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.smg-prof__more button { font: inherit; width: 100%; text-align: left; background: none; border: 0; color: #ff9b9b; padding: .5rem .7rem; border-radius: 6px; cursor: pointer; }
.smg-prof__more button:hover { background: rgba(255,255,255,.05); }
/* Messages */
.smg-dm { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: min(74vh, 760px); border: 1px solid var(--smg-line); border-radius: 16px; overflow: hidden; background: var(--smg-surface); }
.smg-dm__list { border-right: 1px solid var(--smg-line); display: flex; flex-direction: column; overflow-y: auto; }
.smg-dm__listhead { padding: 1rem 1.1rem .6rem; }
.smg-dm__listhead h1 { font-size: 1.2rem; margin: 0; font-family: inherit; font-weight: 600; }
.smg-dm__none { padding: 0 1.1rem; font-size: .88rem; }
.smg-dm__row { display: flex; gap: .7rem; align-items: center; padding: .7rem 1.1rem; color: var(--smg-text); text-decoration: none; }
.smg-dm__row:hover, .smg-dm__row.is-on { background: rgba(255,255,255,.05); }
.smg-dm__row img { border-radius: 50%; flex: none; }
.smg-dm__row span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.smg-dm__row small { color: var(--smg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smg-dm__row.is-unread b, .smg-dm__row.is-unread small { color: var(--smg-text); font-weight: 600; }
.smg-dm__row em { font-style: normal; font-size: .72rem; color: var(--smg-muted); display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.smg-dm__row em i { font-style: normal; background: #ff4d6d; color: #fff; border-radius: 999px; padding: 0 .4rem; font-weight: 700; }
.smg-dm__prefs { margin-top: auto; border-top: 1px solid var(--smg-line); padding: .8rem 1.1rem; font-size: .86rem; }
.smg-dm__prefs summary { cursor: pointer; color: var(--smg-muted); }
.smg-dm__prefs form { display: flex; flex-direction: column; gap: .35rem; margin-top: .6rem; }
.smg-dm__prefs form p { margin: .4rem 0 0; }
.smg-dm__prefs .smg-btn { align-self: flex-start; margin-top: .4rem; }
.smg-dm__blocked { margin: 0 !important; }
.smg-dm__thread { display: flex; flex-direction: column; min-width: 0; }
.smg-dm__pick { flex: 1; display: grid; place-items: center; }
.smg-dm__head { display: flex; gap: .7rem; align-items: center; padding: .8rem 1.1rem; border-bottom: 1px solid var(--smg-line); }
.smg-dm__head img { border-radius: 50%; }
.smg-dm__head a { color: var(--smg-text); text-decoration: none; }
.smg-dm__back { display: none; font-size: 1.6rem; line-height: 1; }
.smg-dm__msgs { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .55rem; }
.smg-dm__start { text-align: center; margin: auto; max-width: 340px; font-size: .88rem; }
.smg-dm__msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 74%; }
.smg-dm__msg.is-mine { align-self: flex-end; align-items: flex-end; }
.smg-dm__bubble { padding: .6rem .9rem; border-radius: 18px; background: #1d1e21; color: var(--smg-text); overflow-wrap: anywhere; line-height: 1.4; }
.smg-dm__msg.is-mine .smg-dm__bubble { background: #f2f0eb; color: #000; }
.smg-dm__bubble a { color: inherit; text-decoration: underline; }
.smg-dm__msg small { font-size: .7rem; color: var(--smg-muted); margin: .2rem .4rem 0; }
.smg-dm__err { margin: 0 1.1rem .6rem; }
.smg-dm__form { display: flex; gap: .6rem; align-items: flex-end; padding: .8rem 1.1rem; border-top: 1px solid var(--smg-line); }
.smg-dm__form textarea { flex: 1; resize: none; font: inherit; color: var(--smg-text); background: var(--smg-bg); border: 1px solid var(--smg-line); border-radius: 20px; padding: .6rem 1rem; max-height: 160px; }
.smg-dm__form button { font: inherit; font-weight: 600; background: none; border: 0; color: #8fb6f0; cursor: pointer; padding: .6rem .3rem; }
.smg-dm__form button[disabled] { opacity: .5; }
.smg-dm__closed { padding: 1rem 1.1rem; border-top: 1px solid var(--smg-line); margin: 0; }
@media (max-width: 760px) {
	.smg-dm { grid-template-columns: 1fr; height: calc(100vh - 220px); }
	.smg-dm.has-thread .smg-dm__list { display: none; }
	.smg-dm:not(.has-thread) .smg-dm__thread { display: none; }
	.smg-dm__back { display: inline; color: var(--smg-text); }
	.smg-dm__msg { max-width: 86%; }
}

/* Photo effects editor (community composer) */
.smg-comm__composer { max-width: 980px; }
.smg-comm__composer > .smg-comm__field, .smg-comm__composer > .smg-comm__rules { max-width: 680px; }
.smg-comm__thumb { border: 0; padding: 0; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.smg-comm__thumb[disabled] { cursor: not-allowed; }
.smg-comm__thumb.is-active { outline-color: var(--smg-text); }
.smg-comm__thumb.is-edited::before { content: "✦"; position: absolute; top: 4px; left: 6px; z-index: 1; color: #fff; font-size: .8rem; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.smg-comm__previews { max-width: 680px; }
.smg-fx { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 1.2rem; border: 1px solid var(--smg-line); border-radius: 16px; padding: 1rem; background: var(--smg-surface); }
@media (max-width: 820px) { .smg-fx { grid-template-columns: 1fr; } }
.smg-fx[hidden] { display: none; }
.smg-fx__stage { display: grid; place-items: center; background: #000; border-radius: 10px; min-height: 320px; overflow: hidden; }
.smg-fx__stage canvas { max-width: 100%; max-height: 62vh; height: auto; width: auto; display: block; }
.smg-fx__tools { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.smg-fx__tabs { display: flex; gap: .2rem; padding: .25rem; border: 1px solid var(--smg-line); border-radius: 999px; }
.smg-fx__tabs button { flex: 1; font: inherit; font-size: .88rem; font-weight: 500; border: 0; background: none; color: var(--smg-muted); padding: .45rem .6rem; border-radius: 999px; cursor: pointer; }
.smg-fx__tabs button.is-on { background: var(--smg-text); color: var(--smg-bg); }
.smg-fx [data-fxpanel][hidden] { display: none; }
.smg-fx__looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .55rem; max-height: 52vh; overflow-y: auto; padding: 2px; }
.smg-fx__look { font: inherit; background: none; border: 0; padding: 0; color: var(--smg-muted); cursor: pointer; display: flex; flex-direction: column; gap: .3rem; align-items: center; font-size: .75rem; }
.smg-fx__lookimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.smg-fx__look:hover .smg-fx__lookimg { outline-color: var(--smg-line); }
.smg-fx__look.is-on { color: var(--smg-text); font-weight: 600; }
.smg-fx__look.is-on .smg-fx__lookimg { outline-color: var(--smg-text); }
.smg-fx__slider { display: grid; grid-template-columns: 6.5rem 1fr 2.4rem; align-items: center; gap: .6rem; font-size: .86rem; color: var(--smg-muted); margin-bottom: .55rem; }
.smg-fx__slider input { width: 100%; accent-color: var(--smg-text); }
.smg-fx__slider output { text-align: right; font-variant-numeric: tabular-nums; color: var(--smg-text); }
.smg-fx__hint { font-size: .76rem; margin: .2rem 0 0; }
.smg-fx__aspects { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .8rem; }
.smg-fx__aspects button, .smg-fx__rotate { font: inherit; font-size: .88rem; border: 1px solid var(--smg-line); background: none; color: var(--smg-text); padding: .65rem; border-radius: 10px; cursor: pointer; }
.smg-fx__aspects button.is-on { background: var(--smg-text); color: var(--smg-bg); border-color: var(--smg-text); }
.smg-fx__rotate { width: 100%; }
.smg-fx__foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--smg-line); }
.smg-comm__drop.is-compact { min-height: 0; padding: .9rem 1rem; }
.smg-comm__drop.is-compact .smg-comm__dropin b { display: inline; font-size: .95rem; margin: 0 .3rem 0 0; }

/* ---------- Free community join + trial notes (1.27) ---------- */
.smg-comm__join { margin-left: auto; background: #f2f0eb; color: #000 !important; border-radius: 999px; padding: .35rem .9rem !important; font-weight: 500; }
.smg-join { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; max-width: 980px; margin: 2rem auto 4rem; }
.smg-join h1 { font: 500 clamp(2rem, 5vw, 3.2rem)/1.05 Georgia, "Iowan Old Style", serif; letter-spacing: -.02em; margin: .2rem 0 1.2rem; }
.smg-join .smg-ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .6rem; }
.smg-join .smg-ticks li::before { content: "✓"; margin-right: .6rem; color: #8fd19e; }
.smg-join__card { background: #0a0a0b; border: 1px solid #1a1b1e; border-radius: 18px; padding: 2rem; }
.smg-join__form { display: grid; gap: 1rem; }
.smg-join__form .smg-field { display: grid; gap: .35rem; }
.smg-join__form .smg-field span { font-size: .82rem; color: #9a9ca1; }
.smg-join__form input[type=text], .smg-join__form input[type=email], .smg-join__form input[type=password] { width: 100%; box-sizing: border-box; background: #000; border: 1px solid #26282c; color: #f2f0eb; border-radius: 10px; padding: .7rem .85rem; font: inherit; }
.smg-join__fine { font-size: .78rem; margin: 0; }
.smg-join__alt { text-align: center; margin: 1.2rem 0 0; font-size: .9rem; color: #8b8d92; }
.smg-join .smg-hp, .smg-hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 760px) { .smg-join { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1rem; } }

/* ---------- Single track page (1.29) ---------- */
.smg-track { position: relative; min-height: 70vh; display: grid; place-items: center; padding-block: 3rem 5rem; }
.smg-track__bg { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; filter: blur(40px) brightness(.35); transform: scale(1.1); }
.smg-track__card { width: min(100%, 620px); text-align: center; }
.smg-track__art { width: 200px; height: 200px; margin: 0 auto 1.6rem; border-radius: 18px; background: var(--smg-surface, #111); border: 1px solid var(--smg-line, #222); display: grid; place-items: center; overflow: hidden; color: var(--smg-muted, #8b8d92); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.smg-track__art img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; box-sizing: border-box; }
.smg-track .smg-eyebrow a { color: inherit; text-decoration: none; }
.smg-track__priv { color: #f1dcae; }
.smg-track__title { font: 500 clamp(2rem, 6vw, 3.4rem)/1.05 Georgia, "Iowan Old Style", serif; letter-spacing: -.02em; margin: .3rem 0 .8rem; }
.smg-track__desc { color: var(--smg-muted, #8b8d92); max-width: 48ch; margin: 0 auto 1rem; }
.smg-audio--track { margin: 1.5rem auto 1.2rem; text-align: left; }
.smg-audio--track .smg-audio__title { display: none; }
.smg-track__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: center; }
.smg-track__social { font-size: .88rem; color: var(--smg-muted, #8b8d92); padding: .4rem .5rem; }
.smg-track__social:hover { color: var(--smg-text, #f2f0eb); }
.smg-track__owner { margin-top: 2rem; font-size: .85rem; color: var(--smg-muted, #8b8d92); }

/* ---------- Legal links (1.31) ---------- */
.site-footer__legal { display: flex; gap: 1rem; font-size: .85rem; }
.site-footer__legal a { color: var(--smg-muted, #8b8d92); text-decoration: none; }
.site-footer__legal a:hover { color: var(--smg-text, #f2f0eb); }
.smg-legal-agree { font-size: .78rem; color: var(--smg-muted, #8b8d92); margin: .4rem 0 0; line-height: 1.5; }
.smg-legal-agree a { color: inherit; text-decoration: underline; }

/* ---------- Account, terms banner, client privacy (1.32) ---------- */
.smg-termsbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: #1d160a; border: 1px solid #4a3712; color: #f1dcae; border-radius: 14px; padding: .75rem 1rem; margin: 1rem auto; max-width: 1200px; font-size: .92rem; }
.smg-termsbar a { color: inherit; text-decoration: underline; }
.smg-termsbar form { margin: 0; }
.smg-acct { max-width: 760px; margin: 0 auto 4rem; display: grid; gap: 1.2rem; }
.smg-acct__card { background: var(--smg-surface, #0d0d0f); border: 1px solid var(--smg-line, #222); border-radius: 16px; padding: 1.4rem 1.5rem; }
.smg-acct__card h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.smg-acct__card dl { display: grid; grid-template-columns: 160px 1fr; gap: .55rem 1rem; margin: 0 0 1rem; }
.smg-acct__card dt { color: var(--smg-muted, #8b8d92); }
.smg-acct__card dd { margin: 0; }
.smg-acct__card dd a { color: inherit; }
.smg-acct__danger { border-color: #4a1d1d; }
.smg-acct__danger ul { margin: .2rem 0 1rem 1.2rem; line-height: 1.8; }
.smg-acct__del { display: flex; gap: .6rem; flex-wrap: wrap; }
.smg-acct__del input { flex: 1; min-width: 200px; background: #000; border: 1px solid #333; color: inherit; border-radius: 999px; padding: .6rem 1rem; font: inherit; }
.smg-btn--danger { background: #b42318 !important; color: #fff !important; border-color: #b42318 !important; }
.smg-legalpage { max-width: 760px; padding-block: 3rem 5rem; }
.smg-legalpage h1 { font: 500 clamp(2rem, 5vw, 3rem)/1.1 Georgia, "Iowan Old Style", serif; margin: .3rem 0 1.5rem; }
.smg-legalpage__body { line-height: 1.75; color: var(--smg-text, #e9e7e2); }
.smg-legalpage__body a { color: inherit; }
@media (max-width: 600px) { .smg-acct__card dl { grid-template-columns: 1fr; } .smg-acct__card dt { margin-top: .4rem; } }

/* ---------- Report reasons (1.33) ---------- */
.smg-reportmenu { position: fixed; z-index: 10000; background: #0d0d0f; border: 1px solid #26282c; border-radius: 14px; padding: .5rem; box-shadow: 0 18px 50px rgba(0,0,0,.6); display: grid; gap: 2px; }
.smg-reportmenu p { margin: .3rem .6rem .5rem; font-size: .8rem; color: #8b8d92; }
.smg-reportmenu button { text-align: left; background: none; border: 0; color: #e9e7e2; font: inherit; font-size: .9rem; padding: .55rem .7rem; border-radius: 8px; cursor: pointer; }
.smg-reportmenu button:hover, .smg-reportmenu button:focus-visible { background: #1b1c1f; outline: none; }
.smg-reportmenu .is-urgent { color: #ff8a80; font-weight: 600; }
.smg-reportmenu .is-cancel { color: #8b8d92; border-top: 1px solid #1d1e21; border-radius: 0 0 8px 8px; margin-top: 2px; }
