/* Fotogaleriid – kasutab teema fonte ja värve, lisab ainult paigutuse. */
.fg {
	--fg-border: rgba(127, 127, 127, 0.28);
	--fg-muted: rgba(127, 127, 127, 0.95);
	--fg-soft: rgba(127, 127, 127, 0.08);
	--fg-accent: currentColor;
	--fg-radius: 10px;
	margin: 1.5em 0;
}

.fg .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Tööriistariba */
.fg-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.fg-years { display: flex; flex-wrap: wrap; gap: 8px; }
.fg-chip {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--fg-border);
	border-radius: 999px;
	text-decoration: none !important;
	font-size: 0.95em;
	line-height: 1.3;
}
.fg-chip:hover { background: var(--fg-soft); }
.fg-chip.is-active { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }

.fg-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.fg-search input[type="search"] { flex: 1 1 220px; min-width: 0; }
.fg-search input,
.fg-search select,
.fg-form input[type="text"],
.fg-form input[type="url"] {
	padding: 9px 12px;
	border: 1px solid var(--fg-border);
	border-radius: 8px;
	font: inherit;
	background: transparent;
	color: inherit;
	box-sizing: border-box;
}
.fg-search button,
.fg-form button {
	padding: 9px 18px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	cursor: pointer;
	background: #1d1d1f;
	color: #fff;
}
.fg-search button:hover,
.fg-form button:hover { opacity: 0.88; }

/* Ürituste nimekiri */
.fg-events,
.fg-links { list-style: none; margin: 0; padding: 0; }
.fg-event { margin: 0; border-bottom: 1px solid var(--fg-border); }
.fg-event:first-child { border-top: 1px solid var(--fg-border); }
.fg-event a {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 16px;
	padding: 14px 6px;
	text-decoration: none !important;
	color: inherit;
}
.fg-event a:hover { background: var(--fg-soft); }
.fg-event-title { font-weight: 600; font-size: 1.05em; }
.fg-event-meta { color: var(--fg-muted); font-size: 0.9em; margin: 0; }

/* Ürituse vaade */
.fg-back { text-decoration: none; font-size: 0.95em; }
.fg-event-header { margin: 4px 0 20px; }
.fg-heading { margin: 0 0 4px; }

.fg-link {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 6px 16px;
	padding: 12px 6px;
	border-bottom: 1px solid var(--fg-border);
	margin: 0;
}
.fg-link:first-child { border-top: 1px solid var(--fg-border); }
.fg-link-author { font-weight: 600; }
.fg-link-url { white-space: nowrap; text-decoration: none; }
.fg-link-host { color: var(--fg-muted); font-size: 0.85em; margin-left: 4px; }

.fg-empty { color: var(--fg-muted); padding: 12px 0; }

/* Vorm */
.fg-form {
	margin-top: 32px;
	padding: 20px;
	border: 1px solid var(--fg-border);
	border-radius: var(--fg-radius);
	background: var(--fg-soft);
}
.fg-form h3 { margin-top: 0; }
.fg-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.fg-form input[type="text"],
.fg-form input[type="url"] { width: 100%; }
.fg-form p { margin: 0 0 14px; }
.fg-hint { color: var(--fg-muted); font-size: 0.9em; }
.fg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fg-notice { padding: 10px 14px; border-radius: 8px; }
.fg-notice-ok { background: #e7f6ec; color: #14532d; }
.fg-notice-error { background: #fdecec; color: #7f1d1d; }

/* Lehekülgede nummerdus */
.fg-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.fg-pagination .page-numbers {
	padding: 6px 12px;
	border: 1px solid var(--fg-border);
	border-radius: 8px;
	text-decoration: none;
}
.fg-pagination .current { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
