/*
 * WordPress-specific additions that the original static template never
 * needed: core accessibility classes, alignment/gallery/caption classes
 * from the block editor, comment list/form styling, and a few small
 * WP-integration details (honeypot field, search result meta, generic
 * fallback page padding).
 */

/* Core accessibility helper WP expects every theme to provide. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Block-editor alignment classes for page/post content. */
.post_content .alignleft,
.entry-content .alignleft {
	float: left;
	margin: 0 24px 16px 0;
}
.post_content .alignright,
.entry-content .alignright {
	float: right;
	margin: 0 0 16px 24px;
}
.post_content .aligncenter,
.entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.post_content img.alignleft,
.post_content img.alignright,
.post_content img.aligncenter {
	height: auto;
	max-width: 100%;
}
.post_content .wp-caption {
	max-width: 100%;
}
.post_content .wp-caption-text {
	font-size: 14px;
	opacity: .7;
	margin-top: 8px;
}
.post_content .wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 24px 0;
}
.post_content .wp-block-gallery .blocks-gallery-item {
	margin: 0;
}
.post_content .wp-block-gallery img {
	width: 100%;
	height: auto;
	display: block;
}

/* Generic fallback page (page.php) container padding. */
.popito_fn_generic_page {
	padding: 60px 0 100px;
}

/* Contact form honeypot — hidden from real visitors, still reachable by bots. */
.popito-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* Small meta tag shown next to a search-popup result. */
.popito_fn_searchbox .search_result .search_meta {
	opacity: .6;
	font-size: 12px;
	margin-left: 8px;
	text-transform: uppercase;
}

/* Newsletter widget/footer inline feedback message. */
.popito-subscribe-message {
	font-size: 13px;
	margin-top: 8px;
	opacity: .8;
}

/* Comments (single project). */
.popito_fn_comments_area {
	max-width: 900px;
	margin: 60px auto 0;
	padding: 0 20px;
}
.popito_fn_comments_area .comments_title {
	font-family: var(--hff);
	margin-bottom: 24px;
}
.comment_list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}
.comment_list .children {
	list-style: none;
	margin: 0 0 0 40px;
	padding: 0;
}
.comment_list li {
	margin-bottom: 24px;
}
.comment_list .comment-body {
	border: 2px solid #000;
	border-radius: 12px;
	padding: 20px;
}
.comment_list .comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}
.comment_list .comment-author img {
	border-radius: 50%;
}
.comment_list .comment-author .fn {
	font-weight: 700;
	font-style: normal;
}
.comment_list .comment-metadata {
	font-size: 12px;
	opacity: .6;
	margin-bottom: 10px;
}
.comment_list .comment-metadata a {
	color: inherit;
}
.comment_list .reply a {
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
}
.comment-respond .comment-form p {
	margin-bottom: 14px;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	border: 2px solid #000;
	border-radius: 8px;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 15px;
}
.comment-respond textarea {
	min-height: 140px;
}
.comment-respond .comment-notes,
.comment-respond .logged-in-as {
	font-size: 13px;
	opacity: .7;
	margin-bottom: 14px;
}
