/* f.g.media Funktionen – Blöcke. Nutzt die Farben des Themes, mit Ersatzwerten. */
.fgmf-projects, .fgmf-gallery, .fgmf-events {
	--_bg: var(--fg-base, #14110f);
	--_surface: var(--fg-surface, #1a1613);
	--_text: var(--fg-contrast, #fcf5e7);
	--_muted: var(--fg-muted, #d9d0c2);
	--_subtle: var(--fg-subtle, #a89f92);
	--_line: var(--fg-line, #2e2722);
	--_accent: var(--fg-accent, #f87422);
	--_accent-text: var(--fg-accent-text, #f87422);
	--_display: var(--wp--preset--font-family--display, "Montserrat", system-ui, sans-serif);
}
.fgmf-empty { color: var(--_subtle); }

/* Mediakit-Projekte */
.fgmf-projects { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.fgmf-project { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) {
	.fgmf-project { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; }
	.fgmf-project:nth-child(even) .fgmf-project-media { order: 2; }
	.fgmf-project:not(:has(.fgmf-project-media)) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
}
.fgmf-project-media { margin: 0; border-radius: 18px; overflow: hidden; background: var(--_surface); }
.fgmf-project-media img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
@media (min-width: 900px) { .fgmf-project-media img { aspect-ratio: 4/4.4; } }
.fgmf-label { margin: 0 0 .4rem; font-family: var(--_display); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--_accent-text); }
.fgmf-project-title { margin: 0 0 .8rem; font-family: var(--_display); font-weight: 900; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -.02em; color: var(--_text); }
.fgmf-project-text { color: var(--_muted); overflow-wrap: anywhere; }
.fgmf-project-text p { margin: 0 0 .8rem; }
.fgmf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 .5rem; padding: 1rem 0 0; border-top: 1px solid var(--_line); }
.fgmf-stats div { margin: 0; }
.fgmf-stats dd { margin: 0; font-family: var(--_display); font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1; color: var(--_accent-text); order: -1; }
.fgmf-stats div { display: flex; flex-direction: column; gap: .35rem; }
.fgmf-stats dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--_subtle); font-weight: 700; }
.fgmf-note { margin: .25rem 0 1rem; font-size: .8rem; color: var(--_subtle); }
.fgmf-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fgmf-tags li { border: 1px solid var(--_line); border-radius: 999px; padding: .35rem .8rem; font-size: .82rem; color: var(--_muted); }

/* Portfolio-Galerie */
.fgmf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(.75rem, 2vw, 1.25rem); }
.fgmf-album {
	position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; cursor: pointer;
	border-radius: 16px; overflow: hidden; background: var(--_surface); aspect-ratio: 4/3; color: #fcf5e7; text-align: left;
}
.fgmf-album img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.fgmf-album:hover img, .fgmf-album:focus-visible img { transform: scale(1.04); }
.fgmf-album:focus-visible { outline: 3px solid var(--_accent); outline-offset: 3px; }
.fgmf-album-info {
	position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
	padding: 2.5rem 1rem .9rem; background: linear-gradient(to top, rgba(20, 17, 15, .85), rgba(20, 17, 15, 0));
}
.fgmf-album-title { font-family: var(--_display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.fgmf-album-count { flex: 0 0 auto; font-size: .8rem; background: rgba(20, 17, 15, .7); padding: .2rem .6rem; border-radius: 999px; }

/* Lightbox */
html.fgmf-lb-open { overflow: hidden; }
.fgmf-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(10, 8, 7, .96); color: #fcf5e7; display: flex; flex-direction: column; }
.fgmf-lb[hidden] { display: none; }
.fgmf-lb-top { display: flex; align-items: center; gap: 1rem; padding: max(.75rem, env(safe-area-inset-top)) 1rem .75rem; }
.fgmf-lb-title { margin: 0; flex: 1 1 auto; font-family: "Montserrat", system-ui, sans-serif; font-weight: 800; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fgmf-lb-counter { margin: 0; font-size: .9rem; color: #d9d0c2; }
.fgmf-lb-stage { position: relative; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 .5rem max(1rem, env(safe-area-inset-bottom)); touch-action: pan-y; }
.fgmf-lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; }
.fgmf-lb button { width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(252, 245, 231, .25); background: rgba(20, 17, 15, .6); color: #fcf5e7; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fgmf-lb button:hover, .fgmf-lb button:focus-visible { border-color: #f87422; color: #f87422; outline: none; }
.fgmf-lb button[hidden] { display: none; }
.fgmf-lb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fgmf-lb-prev, .fgmf-lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.fgmf-lb-prev { left: .75rem; }
.fgmf-lb-next { right: .75rem; }
@media (max-width: 599px) { .fgmf-lb-prev, .fgmf-lb-next { top: auto; bottom: max(1rem, env(safe-area-inset-bottom)); transform: none; } }

/* Nächste Termine */
.fgmf-event-list { list-style: none; margin: 0; padding: 0; }
.fgmf-event { border-top: 1px solid var(--_line); }
.fgmf-event:last-child { border-bottom: 1px solid var(--_line); }
.fgmf-event a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: center; padding: .9rem 0; color: var(--_text); text-decoration: none; }
.fgmf-event a:hover .fgmf-event-title { color: var(--_accent-text); }
.fgmf-event-date { display: flex; flex-direction: column; line-height: 1.1; }
.fgmf-event-day { font-family: var(--_display); font-weight: 900; font-size: 1.25rem; }
.fgmf-event-wd { font-size: .75rem; color: var(--_subtle); }
.fgmf-event-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.fgmf-event-title { font-family: var(--_display); font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
.fgmf-event-venue { font-size: .88rem; color: var(--_muted); }
.fgmf-live { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--_accent); color: var(--_accent-text); border-radius: 999px; padding: .2rem .65rem; font-family: var(--_display); font-weight: 700; font-size: .72rem; white-space: nowrap; }
.fgmf-live span { width: 8px; height: 8px; border-radius: 999px; background: var(--_accent); }
@media (max-width: 599px) {
	.fgmf-event a { grid-template-columns: 3.75rem minmax(0, 1fr); }
	.fgmf-live { grid-column: 2; justify-self: start; }
}
.fgmf-events-more { margin: 1rem 0 0; }
.fgmf-events-more a { font-family: var(--_display); font-weight: 700; color: var(--_accent-text); }
