/* All rules are scoped so the feed can coexist with any WordPress theme. */
.ipf-feed {
	--ipf-ink: #20242b;
	--ipf-muted: #606872;
	--ipf-border: #e1e5eb;
	--ipf-link: #1657a0;
	box-sizing: border-box;
	width: 100%;
	color: var(--ipf-ink);
	background: #fff;
	font: inherit;
	line-height: 1.55;
	text-align: left;
}
.ipf-feed *, .ipf-feed *::before, .ipf-feed *::after { box-sizing: border-box; }
.ipf-feed [hidden] { display: none !important; }
.ipf-feed a { color: var(--ipf-link); overflow-wrap: anywhere; }
.ipf-feed a:hover { text-decoration: underline; }
.ipf-feed a:focus-visible, .ipf-feed button:focus-visible, .ipf-feed summary:focus-visible {
	outline: 3px solid #1463b4;
	outline-offset: 4px;
}
.ipf-feed button { font: inherit; cursor: pointer; }
.ipf-feed img { display: block; max-width: 100%; height: auto; box-shadow: none; }
.ipf-feed p { margin: 0 0 12px; padding: 0; }
.ipf-header { border: 1px solid var(--ipf-border); border-radius: 8px; overflow: hidden; }
.ipf-cover { display: block; }
.ipf-cover img { width: 100%; max-height: 340px; aspect-ratio: 2.7; object-fit: cover; }
.ipf-header-content { padding: 20px; }
.ipf-page-identity, .ipf-post-header { display: flex; align-items: center; gap: 12px; }
.ipf-feed img.ipf-avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.ipf-feed img.ipf-page-avatar { width: 72px; height: 72px; }
.ipf-feed .ipf-page-name { margin: 0; padding: 0; color: inherit; font-size: 1.5em; font-weight: 700; line-height: 1.2; }
.ipf-page-name a, .ipf-feed .ipf-author { color: var(--ipf-ink); text-decoration: none; }
.ipf-feed .ipf-followers { margin: 5px 0 0; color: var(--ipf-muted); font-size: .9em; }
.ipf-feed .ipf-about { margin: 16px 0; white-space: pre-line; }
.ipf-feed .ipf-button {
	display: inline-flex; justify-content: center; align-items: center;
	min-height: 44px; padding: 9px 18px; border: 1px solid #cbd2da;
	border-radius: 5px; color: var(--ipf-ink); background: #f5f6f8;
	font-size: 1em; font-weight: 600; line-height: 1.4; text-decoration: none;
}
.ipf-feed .ipf-button:hover { background: #e9edf2; text-decoration: none; }
.ipf-feed .ipf-facebook-button { margin-top: 12px; color: #fff; background: #175ba9; border-color: #175ba9; }
.ipf-feed .ipf-facebook-button:hover { background: #114982; }
.ipf-feed .ipf-notice { margin: 16px 0; padding: 12px 16px; border-left: 3px solid #c69330; background: #fffbef; }
.ipf-post { margin: 0; padding: 24px 0; border-bottom: 1px solid var(--ipf-border); }
.ipf-post:focus { outline: none; }
.ipf-post:focus-visible { outline: 3px solid #1463b4; outline-offset: 3px; }
.ipf-post-header { margin-bottom: 16px; }
.ipf-feed .ipf-author { font-weight: 700; }
.ipf-feed .ipf-post-date { display: block; color: var(--ipf-muted); font-size: .85em; text-decoration: none; }
.ipf-post-date:hover { text-decoration: underline; }
.ipf-gallery { display: grid; gap: 5px; margin-bottom: 16px; }
.ipf-gallery a { display: block; position: relative; background: #f4f5f7; }
.ipf-gallery img { width: 100%; height: auto; }
.ipf-gallery:not(.ipf-gallery-multiple) { justify-items: start; }
.ipf-gallery:not(.ipf-gallery-multiple) a { max-width: 100%; background: transparent; }
.ipf-gallery:not(.ipf-gallery-multiple) img { width: auto; max-width: 100%; max-height: 600px; object-fit: contain; }
.ipf-gallery-multiple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ipf-gallery-multiple img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.ipf-video { margin-bottom: 16px; }
.ipf-video-stage { position: relative; width: 100%; max-width: calc(600px * var(--ipf-video-ratio, 1.77777778)); aspect-ratio: var(--ipf-video-ratio, 1.77777778); overflow: hidden; background: #111; }
.ipf-video-poster, .ipf-video-player { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.ipf-feed .ipf-video-poster img { width: 100%; height: 100%; object-fit: contain; }
.ipf-feed .ipf-video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 16px; border: 0; color: #fff; background: transparent; }
.ipf-video-play-label { padding: 10px 16px; border-radius: 5px; background: #141820e8; font-weight: 600; }
.ipf-video-play:hover .ipf-video-play-label { background: #175ba9; }
.ipf-feed .ipf-video-play:focus-visible { outline-offset: -4px; }
.ipf-feed .ipf-video-fallback { margin: 8px 0 0; }
.ipf-video-fallback a { display: inline-flex; align-items: center; min-height: 44px; }
.ipf-message { white-space: pre-line; overflow-wrap: anywhere; }
.ipf-message-block { margin-bottom: 16px; }
.ipf-feed .ipf-text-toggle { padding: 4px 0; border: 0; background: transparent; color: var(--ipf-link); text-decoration: underline; min-height: 44px; }
.ipf-attachment { margin-bottom: 16px; padding: 12px 16px; background: #f7f8fa; border-left: 3px solid var(--ipf-border); overflow-wrap: anywhere; }
.ipf-feed .ipf-attachment p:last-child { margin-bottom: 0; }
.ipf-attachment-title { font-weight: 600; }
.ipf-feed .ipf-counts { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 16px 0; padding: 0; font-size: .9em; }
.ipf-feed .ipf-counts:empty { display: none; }
.ipf-feed .ipf-counts li { list-style: none; margin: 0; padding: 0; }
.ipf-counts a { color: var(--ipf-muted); text-decoration: none; }
.ipf-post-footer { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ipf-view-post, .ipf-share summary { display: inline-flex; align-items: center; min-height: 44px; }
.ipf-share { position: relative; }
.ipf-share summary { display: list-item; cursor: pointer; color: var(--ipf-link); padding: 10px 0 8px; }
.ipf-feed .ipf-share ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; }
.ipf-feed .ipf-share li { list-style: none; padding: 0; margin: 0; }
.ipf-share a { display: inline-flex; align-items: center; min-height: 44px; }
.ipf-footer { padding: 24px 0 8px; text-align: center; }
.ipf-feed .ipf-archive-link { margin-top: 12px; }
.ipf-feed .ipf-empty { padding: 24px 0; }
.ipf-feed .ipf-lightbox { position: fixed; max-width: min(1100px, 96vw); width: fit-content; max-height: 94vh; padding: 0; border: 0; border-radius: 6px; color: #fff; background: #171b21; box-shadow: 0 15px 70px #0008; }
.ipf-feed .ipf-lightbox:not([open]) { display: none; }
.ipf-lightbox::backdrop { background: #000d; }
.ipf-lightbox-content { position: relative; padding: 50px 12px 12px; }
.ipf-feed .ipf-lightbox-image { max-width: 100%; max-height: calc(94vh - 135px); width: auto; height: auto; object-fit: contain; margin: 0 auto; }
.ipf-feed .ipf-lightbox-close { position: absolute; top: 4px; right: 7px; min-width: 44px; min-height: 44px; padding: 0; font-size: 30px; line-height: 1; border: 0; background: transparent; color: #fff; }
.ipf-lightbox-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.ipf-feed .ipf-lightbox-controls button { min-height: 44px; border: 1px solid #8a949f; border-radius: 4px; padding: 6px 10px; background: #2b323b; color: #fff; }
.ipf-feed .ipf-lightbox-controls button:disabled { opacity: .4; cursor: default; }
.ipf-lightbox-counter { font-size: .85em; }
@media (max-width: 600px) {
	.ipf-header-content { padding: 16px; }
	.ipf-feed .ipf-page-name { font-size: 1.3em; }
	.ipf-feed img.ipf-page-avatar { width: 56px; height: 56px; }
	.ipf-post { padding: 20px 0; }
	.ipf-feed .ipf-lightbox { max-width: 98vw; }
	.ipf-lightbox-controls { justify-content: center; }
	.ipf-lightbox-counter { order: -1; width: 100%; text-align: center; }
}
