/*
Theme Name: Independent Publisher Modern
Theme URI: https://amok.me/
Description: Independent Publisher 的现代兼容子主题。保留原有版式，同时补齐 WordPress 新版规范钩子、区块样式与响应式媒体支持。
Author: Rekcah
Author URI: https://amok.me/
Template: independent-publisher
Version: 1.2.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: independent-publisher-modern
Tags: one-column, two-columns, left-sidebar, featured-images, full-width-template, custom-menu, custom-background, custom-colors, custom-logo, editor-style, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, block-styles
*/

/*
 * WordPress 会在页脚输出按需加载的区块样式（依赖 wp_footer）。
 * 以下规则作为主题级兜底，避免第三方插件或缓存异常时媒体再次溢出。
 */
.entry-content video,
.entry-content .wp-block-video video,
.entry-content .wp-block-embed video {
	display: block;
	max-width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .wp-block-video,
.entry-content figure.wp-block-video,
.entry-content .wp-block-embed,
.entry-content figure.wp-block-embed {
	max-width: 100%;
}

.entry-content .wp-block-video figcaption,
.entry-content figure.wp-block-video figcaption,
.entry-content .wp-block-embed figcaption {
	max-width: 100%;
	text-align: center;
}

/*
 * 历史媒体丢失时的前端降级占位。
 * 原文件一旦恢复到原路径，真实图片会正常显示，不会触发此样式。
 */
.entry-content .amok-media-missing {
	box-sizing: border-box;
	display: flex;
	min-height: 280px;
	width: 100%;
	margin: 0 auto;
	padding: 32px 24px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	border: 1px solid rgba(51, 51, 50, 0.16);
	border-radius: 4px;
	background:
		linear-gradient(135deg, rgba(87, 173, 104, 0.08), rgba(87, 173, 104, 0.02)),
		#f7f7f5;
	color: #555;
	text-align: center;
}

.entry-content .amok-media-missing__mark {
	display: block;
	margin-bottom: 12px;
	color: #57ad68;
	font-size: 34px;
	font-weight: 300;
	line-height: 1;
}

.entry-content .amok-media-missing__title {
	display: block;
	color: #333332;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
}

.entry-content .amok-media-missing__note {
	display: block;
	max-width: 34em;
	margin-top: 6px;
	color: #777;
	font-size: 13px;
	line-height: 1.65;
}

@media (max-width: 480px) {
	.entry-content .amok-media-missing {
		min-height: 210px;
		padding: 24px 18px;
	}

	.entry-content .amok-media-missing__title {
		font-size: 16px;
	}
}
