/* Freelance Management – public shortcodes (inherits the theme's fonts and colours where possible) */
.flm-artworks, .flm-exhibitions, .flm-exhibition-detail, .flm-artwork-detail, .flm-cv, .flm-public-calendar, .flm-newsletter { --flm-gap: 1.5rem; --flm-muted: color-mix(in srgb, currentColor 60%, transparent); --flm-line: color-mix(in srgb, currentColor 15%, transparent); }
.flm-grid { display: grid; grid-template-columns: repeat(var(--flm-cols, 3), minmax(0, 1fr)); gap: var(--flm-gap); }
.flm-card { margin: 0; }
.flm-artworks .flm-card img, .flm-artworks .flm-noimg { width: 100%; height: auto; display: block; }
.flm-layout-grid .flm-card img { aspect-ratio: 1; object-fit: cover; }
.flm-layout-masonry .flm-grid { display: block; columns: var(--flm-cols, 3); column-gap: var(--flm-gap); }
.flm-layout-masonry .flm-card { break-inside: avoid; margin-bottom: var(--flm-gap); }
.flm-layout-list .flm-grid { grid-template-columns: 1fr; }
.flm-layout-list .flm-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--flm-gap); align-items: end; }
.flm-noimg { display: block; aspect-ratio: 1; background: var(--flm-line); }
.flm-card figcaption { margin-top: .6em; font-size: .9em; line-height: 1.4; display: flex; flex-direction: column; gap: .1em; }
.flm-card .flm-title { font-weight: 600; }
.flm-card .flm-meta { color: var(--flm-muted); }
.flm-card a { text-decoration: none; color: inherit; }
.flm-card a:hover img { opacity: .9; }
.flm-price { font-variant-numeric: tabular-nums; }
.flm-sold { display: inline-flex; gap: .4em; align-items: center; }
.flm-dot { width: .6em; height: .6em; border-radius: 50%; background: #c0262d; display: inline-block; }
.flm-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--flm-gap); }
.flm-filter select { padding: .45em .7em; border: 1px solid var(--flm-line); border-radius: 4px; background: transparent; color: inherit; font: inherit; }
.flm-empty { color: var(--flm-muted); }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* Artwork detail */
.flm-artwork-detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; align-items: start; }
.flm-artwork-images { display: flex; flex-wrap: wrap; gap: .5rem; }
.flm-artwork-images a.is-main { flex: 1 1 100%; }
.flm-artwork-images a.is-main img { width: 100%; height: auto; display: block; }
.flm-artwork-images a.is-thumb img { width: 90px; height: 90px; object-fit: cover; display: block; }
.flm-dl { display: grid; grid-template-columns: auto 1fr; gap: .3em 1em; margin: 1em 0; }
.flm-dl dt { color: var(--flm-muted); }
.flm-dl dd { margin: 0; }
.flm-links { padding-left: 1.1em; }

/* Exhibitions */
.flm-exhibitions .flm-year { margin: 2rem 0 .75rem; font-size: 1.1em; border-bottom: 1px solid var(--flm-line); padding-bottom: .3em; }
.flm-ex-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--flm-line); }
.flm-ex-card:not(:has(.flm-ex-img)) { grid-template-columns: 1fr; }
.flm-ex-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.flm-ex-title { margin: .15em 0 .3em; font-size: 1.15em; }
.flm-ex-title a { text-decoration: none; color: inherit; }
.flm-ex-meta, .flm-ex-opening { margin: 0; color: var(--flm-muted); }
.flm-ex-place::before { content: "· "; }
.flm-ex-type { font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--flm-muted); }
.flm-state { font-size: .72em; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-right: .6em; padding: .15em .5em; border-radius: 3px; }
.flm-state-current { background: #16794a; color: #fff; }
.flm-state-upcoming { background: color-mix(in srgb, currentColor 12%, transparent); }
.flm-ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--flm-gap, 1.5rem); }
.flm-ex-grid .flm-ex-card { grid-template-columns: 1fr; border: 0; padding: 0; }
.flm-ex-compact .flm-ex-card { grid-template-columns: 1fr; padding: .5rem 0; }
.flm-ex-compact .flm-ex-title { font-size: 1em; display: inline; margin-right: .5em; }
.flm-ex-compact .flm-ex-meta { display: inline; }
.flm-exhibition-detail > section { margin-top: 2rem; }
.flm-ex-facts p { margin: .4em 0; }
.flm-ex-events ul { list-style: none; padding: 0; margin: 0; }
.flm-ex-events li { padding: .5em 0; border-bottom: 1px solid var(--flm-line); }
.flm-ev-date { font-variant-numeric: tabular-nums; margin-right: .5em; }
.flm-ev-desc { color: var(--flm-muted); }
.flm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; }
.flm-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.flm-video { margin-bottom: 1rem; }
.flm-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* Calendar (public + app) */
.flm-cal { margin-bottom: 1rem; }
.flm-cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.flm-cal-nav a { text-decoration: none; font-size: 1.2em; padding: .2em .6em; border-radius: 4px; }
.flm-cal-nav a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.flm-cal-title { font-size: 1.1em; }
.flm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); border-left: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.flm-cal-dow { padding: .35em .4em; font-size: .75em; text-transform: uppercase; letter-spacing: .05em; opacity: .7; border-right: 1px solid color-mix(in srgb, currentColor 15%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.flm-cal-day { min-height: 92px; padding: .3em; border-right: 1px solid color-mix(in srgb, currentColor 15%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flm-cal-day.is-empty { background: color-mix(in srgb, currentColor 3%, transparent); }
.flm-cal-day.is-today .flm-cal-num { background: #1f2937; color: #fff; border-radius: 50%; }
.flm-cal-num { font-size: .8em; width: 1.8em; height: 1.8em; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.flm-cal-item { display: block; font-size: .74em; line-height: 1.3; padding: 2px 5px; border-radius: 3px; background: #ecebe7; color: #1d1d1b !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid #8a8985; }
.flm-cal-item:hover { filter: brightness(.96); }
.flm-cal-item.exhibition { background: #e6effb; border-left-color: #2a78d6; }
.flm-cal-item.ex-group { background: #fdeee6; border-left-color: #eb6834; }
.flm-cal-item.ex-fair { background: #e6f6ef; border-left-color: #1baf7a; }
.flm-cal-item.event { background: #f6e9f0; border-left-color: #c2457a; }
.flm-cal-item.type-deadline { background: #fbe9ea; border-left-color: #c0262d; font-weight: 600; }
.flm-cal-item.type-setup, .flm-cal-item.type-teardown { background: #efeafc; border-left-color: #6250d6; }
.flm-cal-item.type-transport { background: #fff4d6; border-left-color: #c98500; }
.flm-cal-item.invoice-due { background: #f3f3f1; border-left-color: #55544f; }
.flm-cal-item.tax { background: #f3f3f1; border-left-color: #1d1d1b; }
.flm-cal-item.is-done { opacity: .5; text-decoration: line-through !important; }
.flm-cal-time { font-variant-numeric: tabular-nums; opacity: .8; }
.flm-cal-public .flm-cal-item { font-size: .78em; }
.flm-cal-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.flm-cal-list li { padding: .35em 0; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.flm-cal-list span { opacity: .7; margin-left: .4em; }

/* CV */
.flm-cv-section { margin: 1.75rem 0; }
.flm-cv-section h3 { font-size: 1.05em; margin-bottom: .5em; }
.flm-cv-table { width: 100%; border-collapse: collapse; }
.flm-cv-table th { width: 5.5em; text-align: left; vertical-align: top; font-weight: 600; padding: .25em 1em .25em 0; font-variant-numeric: tabular-nums; }
.flm-cv-table td { padding: .25em 0; vertical-align: top; }
.flm-cv-table a { color: inherit; }

/* Newsletter */
.flm-newsletter-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; position: relative; }
.flm-newsletter-form input[type=email], .flm-newsletter-form input[type=text] { flex: 1 1 200px; padding: .6em .8em; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 4px; font: inherit; background: transparent; color: inherit; }
.flm-newsletter-form button { padding: .6em 1.2em; border: 0; border-radius: 4px; background: currentColor; cursor: pointer; font: inherit; font-weight: 600; }
.flm-newsletter-form button { background: #1d1d1b; color: #fff; }
.flm-newsletter-form small { flex-basis: 100%; opacity: .75; }
.flm-newsletter-msg { padding: .6em .8em; border-left: 3px solid #16794a; background: color-mix(in srgb, #16794a 10%, transparent); }

/* Lightbox */
.flm-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(10,10,10,.94); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 2rem; }
.flm-lb[hidden] { display: none; }
.flm-lb img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.flm-lb-cap { color: #eee; margin-top: .8rem; font-size: .9rem; text-align: center; max-width: 60ch; }
.flm-lb button { position: absolute; background: transparent; border: 0; color: #fff; font-size: 2rem; cursor: pointer; padding: .5rem 1rem; line-height: 1; }
.flm-lb button:focus-visible { outline: 2px solid #fff; }
.flm-lb-close { top: .5rem; right: .5rem; }
.flm-lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.flm-lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 782px) {
	.flm-grid { grid-template-columns: repeat(min(var(--flm-cols, 3), 2), minmax(0, 1fr)); }
	.flm-layout-masonry .flm-grid { columns: 2; }
	.flm-artwork-detail, .flm-ex-card, .flm-layout-list .flm-card { grid-template-columns: 1fr; }
	.flm-cal-day { min-height: 56px; }
	.flm-cal-item { font-size: 0; padding: 0; height: 6px; border-left-width: 0; }
	.flm-cal-public .flm-cal-item { font-size: 0; }
}
@media (max-width: 480px) {
	.flm-grid { grid-template-columns: 1fr; }
	.flm-layout-masonry .flm-grid { columns: 1; }
}

/* Captcha */
.flm-captcha { margin: 8px 0; }
.flm-captcha-math label { margin-right: 6px; }
.flm-captcha-math input[type="text"] { width: 4em; display: inline-block; }
.flm-captcha-note { display: block; font-size: 11px; opacity: .75; margin-top: 4px; }
.grecaptcha-badge { visibility: hidden; }

/* Front page elements */
.flm-front-page .wp-block-post-title, .flm-front-page .entry-title, .flm-front-page .page-title { display: none; }
.flm-hero, .flm-feature, .flm-events, .flm-teaser, .flm-contact, .flm-about { --flm-muted: color-mix(in srgb, currentColor 62%, transparent); --flm-line: color-mix(in srgb, currentColor 15%, transparent); margin-block: clamp(2.5rem, 6vw, 5rem); }
.flm-hero { position: relative; min-height: var(--flm-hero-h, 75vh); display: flex; align-items: flex-end; margin-block: 0 clamp(2.5rem, 6vw, 5rem); background: #222 var(--flm-hero-img) center / cover no-repeat; color: #fff; }
.flm-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.62) 100%); }
.flm-hero-light { color: #111; }
.flm-hero-light::before { background: linear-gradient(180deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.75) 100%); }
.flm-hero-none::before { display: none; }
.flm-hero-noimg { background: color-mix(in srgb, currentColor 8%, #f3f2ee); color: inherit; }
.flm-hero-noimg::before { display: none; }
.flm-hero-inner { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem); }
.flm-hero-center { align-items: center; text-align: center; }
.flm-hero-title { margin: 0; font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.02em; color: inherit; }
.flm-hero-sub { margin: .8rem 0 0; font-size: clamp(1.05rem, 2vw, 1.4rem); opacity: .9; }
.flm-hero-buttons { margin: 1.6rem 0 0; display: flex; gap: .75rem; flex-wrap: wrap; }
.flm-hero-center .flm-hero-buttons { justify-content: center; }
.flm-btn-pub { display: inline-block; padding: .7em 1.4em; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-weight: 600; line-height: 1.2; background: currentColor; }
.flm-btn-pub, .flm-btn-pub:visited { color: inherit; }
.flm-hero .flm-btn-pub { background: #fff; color: #111; border-color: #fff; }
.flm-hero-light .flm-btn-pub { background: #111; color: #fff; border-color: #111; }
.flm-feature .flm-btn-pub, .flm-contact .flm-btn-pub, .flm-about .flm-btn-pub { background: transparent; }
.flm-btn-pub:hover { opacity: .85; }
.flm-hero .flm-btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.flm-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--flm-line); padding-bottom: .6rem; }
.flm-section-title { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.flm-section-link { text-decoration: none; font-weight: 600; white-space: nowrap; }
.flm-feature-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.flm-feature-noimg { grid-template-columns: 1fr; }
.flm-about .flm-feature-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.flm-feature-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.flm-feature-title { margin: .4rem 0 .6rem; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.1; }
.flm-feature-title a { text-decoration: none; color: inherit; }
.flm-feature-meta, .flm-feature-opening { margin: 0 0 .6rem; color: var(--flm-muted); }
.flm-feature-text { margin: 0 0 1.2rem; line-height: 1.6; }
.flm-event-list { list-style: none; margin: 0; padding: 0; }
.flm-event-list li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--flm-line); align-items: center; }
.flm-event-date { text-align: center; line-height: 1; }
.flm-event-date b { display: block; font-size: 1.9rem; }
.flm-event-date span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; color: var(--flm-muted); }
.flm-event-body { display: flex; flex-direction: column; gap: .15rem; }
.flm-event-kind { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--flm-muted); }
.flm-event-title { font-weight: 600; text-decoration: none; color: inherit; font-size: 1.1rem; }
.flm-event-place { color: var(--flm-muted); font-size: .95rem; }
.flm-contact-rows { line-height: 1.8; }
@media (max-width: 782px) {
	.flm-feature-grid, .flm-about .flm-feature-grid { grid-template-columns: 1fr; }
	.flm-section-head { flex-direction: column; align-items: flex-start; }
}
.flm-front-page main.wp-block-group { margin-top: 0 !important; }
.flm-front-page main > .wp-block-group:first-child { padding-top: 0 !important; }
.flm-front-page .wp-block-post-content, .flm-front-page .entry-content { margin-top: 0 !important; }
.flm-front-page .wp-block-post-content > .alignfull:first-child, .flm-front-page .entry-content > .alignfull:first-child { margin-top: 0 !important; }

/* Freelance Management: project results and testimonial. */
.flm-results h4{margin:1.4em 0 .4em;font-size:1em}
.flm-testimonial{margin:1.6em 0;padding:.2em 0 .2em 1.2em;border-left:3px solid currentColor;font-style:italic}
.flm-testimonial cite{display:block;margin-top:.4em;font-style:normal;font-size:.9em;opacity:.75}
