/*
 * 1Shutterbug — Premium layer
 * Loaded on top of the original Emphaino styles. Delete this file (and its
 * enqueue in functions.php) to return to the original look.
 */

:root {
	--sb-ink: #0d0c0a;
	--sb-panel: #15130f;
	--sb-panel-2: #1c1914;
	--sb-line: rgba(236, 224, 202, 0.11);
	--sb-line-strong: rgba(236, 224, 202, 0.22);
	--sb-text: #ece4d4;
	--sb-muted: #9d9483;
	--sb-amber: #e6ad4b;
	--sb-amber-soft: rgba(230, 173, 75, 0.14);
	--sb-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--sb-sans: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
	--sb-radius: 6px;
	--sb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Canvas ---------- */
html { background: var(--sb-ink); }

body,
body.custom-background {
	background-color: var(--sb-ink) !important;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E") !important;
	background-repeat: repeat !important;
	position: relative;
	overflow-x: hidden;
}

/* ---------- Sunrise ---------- */
/* Sun disc + atmospheric glow rising out of the top edge of the page */
body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: min(1000px, 125vh);
	z-index: 0;
	pointer-events: none;
	background:
		/* bright sun disc, half hidden above the page edge */
		radial-gradient(circle min(230px, 34vw) at 50% -70px,
			#fffbef 0%, #fff1cf 38%, #ffd58c 62%, rgba(255, 184, 96, 0.85) 80%, rgba(255, 160, 80, 0) 100%),
		/* hot inner corona */
		radial-gradient(ellipse min(640px, 90vw) min(420px, 60vw) at 50% -60px,
			rgba(255, 196, 110, 0.75) 0%, rgba(247, 142, 62, 0.45) 40%, rgba(247, 120, 60, 0) 100%),
		/* wide dawn sky glow */
		radial-gradient(ellipse min(1500px, 190vw) min(900px, 120vh) at 50% -140px,
			rgba(236, 118, 58, 0.50) 0%, rgba(196, 72, 52, 0.30) 32%, rgba(110, 36, 48, 0.16) 58%, rgba(13, 12, 10, 0) 82%),
		/* warm horizon wash across the full width */
		linear-gradient(180deg, rgba(255, 150, 70, 0.20) 0%, rgba(160, 60, 50, 0.08) 38%, rgba(13, 12, 10, 0) 70%);
	animation: sb-sunrise 2.6s var(--sb-ease) both;
}

/* Soft light rays fanning down from the sun */
body::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: min(900px, 115vh);
	z-index: 0;
	pointer-events: none;
	background: repeating-conic-gradient(from 90deg at 50% -70px,
		rgba(255, 214, 150, 0.10) 0deg 2.5deg,
		rgba(255, 214, 150, 0) 2.5deg 8deg);
	-webkit-mask-image: radial-gradient(ellipse 70% 85% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 85% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 75%);
	animation: sb-sunrise 3.2s var(--sb-ease) .2s both, sb-rays 9s ease-in-out 3.4s infinite;
}

#page { position: relative; z-index: 1; }

/* Let the sun glow through the top bar */
body #top-bar {
	background: rgba(13, 12, 10, 0.18);
	border-bottom-color: rgba(255, 214, 150, 0.14);
}
body #top-bar #searchform { background: rgba(13, 12, 10, 0.35); }
body #top-bar .home-page-link a { color: rgba(255, 244, 222, 0.85); }

/* Keep the masthead crisp against the glow */
body .site-header .site-title a { text-shadow: 0 2px 30px rgba(60, 20, 10, 0.55); }
body .site-branding::before { color: #fff0cf; text-shadow: 0 1px 12px rgba(120, 40, 10, 0.6); }
body .site-header .site-description { color: rgba(245, 228, 200, 0.78); }

@keyframes sb-sunrise {
	from { opacity: 0; transform: translateY(-140px); }
	to   { opacity: 1; transform: none; }
}
@keyframes sb-rays {
	0%, 100% { opacity: 1; }
	50%      { opacity: .55; }
}

body,
body.custom-background {
	background-attachment: scroll !important;
	background-size: auto !important;
	color: var(--sb-text);
	font-family: var(--sb-sans);
	font-size: 16px;
	line-height: 1.7;
	padding: 0 clamp(16px, 3vw, 40px);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--sb-amber); color: var(--sb-ink); }

#page { max-width: 1240px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sb-serif);
	font-weight: 600;
	color: var(--sb-text);
	letter-spacing: -0.005em;
	text-shadow: none;
}

a { color: var(--sb-amber); transition: color .25s var(--sb-ease); }
a:hover, a:focus { color: var(--sb-text); }

/* ---------- Top bar ---------- */
#top-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: rgba(13, 12, 10, 0.72);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--sb-line);
	box-shadow: none;
	margin: 0 calc(-1 * clamp(16px, 3vw, 40px));
	padding: 0 clamp(16px, 3vw, 40px);
}
.admin-bar #top-bar { top: 32px; }

#top-bar .main-navigation { background: none; box-shadow: none; }
#top-bar .main-navigation a,
#top-bar .home-page-link a {
	color: var(--sb-muted);
	font-family: var(--sb-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-shadow: none;
	background: none;
}
#top-bar .main-navigation a:hover,
#top-bar .home-page-link a:hover { color: var(--sb-amber); background: none; }

#top-bar #searchform {
	position: static;
	margin: 0;
	display: flex;
	align-items: center;
	border: 1px solid var(--sb-line-strong);
	border-radius: 999px;
	padding: 4px 14px;
	transition: border-color .25s var(--sb-ease);
}
#top-bar #searchform:focus-within { border-color: var(--sb-amber); }
#top-bar #searchform:before { color: var(--sb-muted); }
#top-bar #searchform input[type=text] {
	color: var(--sb-text);
	font: 500 13px/1.6 var(--sb-sans);
	width: 170px;
	padding: 4px 6px;
}
#top-bar #searchform input[type=text]::placeholder { color: var(--sb-muted); }

/* ---------- Masthead ---------- */
.site-header { margin: 0 0 clamp(40px, 6vw, 72px); }

.site-header .header-main {
	background: none;
	box-shadow: none;
	padding: clamp(64px, 11vw, 140px) 0 clamp(20px, 3vw, 36px);
}

.site-branding::before {
	content: "Photography Journal";
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font: 600 11px/1 var(--sb-sans);
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--sb-amber);
	margin-bottom: 26px;
	animation: sb-rise .9s var(--sb-ease) both;
}

.site-header .site-title {
	font-family: var(--sb-serif);
	font-weight: 500;
	font-size: clamp(48px, 8.5vw, 112px);
	line-height: .95;
	letter-spacing: -0.02em;
	margin: 0;
	animation: sb-rise 1s var(--sb-ease) .08s both;
}
.site-header .site-title a { color: var(--sb-text); text-shadow: none; }
.site-header .site-title a:hover { color: var(--sb-text); }

.site-header .site-description {
	font: italic 500 clamp(18px, 2.2vw, 24px)/1.4 var(--sb-serif);
	color: var(--sb-muted);
	text-shadow: none;
	max-width: 36ch;
	margin: 22px auto 0;
	animation: sb-rise 1s var(--sb-ease) .16s both;
}
.site-header .site-description::after {
	content: "";
	display: block;
	width: 56px;
	height: 1px;
	margin: 34px auto 0;
	background: linear-gradient(90deg, transparent, var(--sb-amber), transparent);
}

/* Compact masthead on inner pages so the photo is seen sooner */
body:not(.home) .site-header .header-main { padding: clamp(40px, 6vw, 72px) 0 0; }
body:not(.home) .site-branding::before { margin-bottom: 16px; }
body:not(.home) .site-header .site-title { font-size: clamp(36px, 5vw, 56px); }
body:not(.home) .site-header .site-description { display: none; }

/* Hide the old icon-font glyph the theme puts before post-format titles */
body #dynamic-grid .entry-title::before,
body.single #content .entry-title::before { display: none !important; }

/* ---------- Content width ---------- */
body .content-area { max-width: none; }
body.single .content-area,
body.page .content-area { max-width: 780px; }

/* ---------- Post grid ---------- */
body #dynamic-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
	gap: clamp(20px, 2.4vw, 32px);
	height: auto !important;
	width: auto !important;
	margin: 0 !important;
}
body #dynamic-grid::before,
body #dynamic-grid::after { display: none !important; }

body #dynamic-grid .hentry {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0;
	display: flex;
	flex-direction: column;
	background: var(--sb-panel);
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	box-shadow: none;
	overflow: hidden;
	transition: transform .5s var(--sb-ease), border-color .4s var(--sb-ease), box-shadow .5s var(--sb-ease);
	animation: sb-rise .8s var(--sb-ease) both;
}
body #dynamic-grid .hentry:nth-child(2) { animation-delay: .06s; }
body #dynamic-grid .hentry:nth-child(3) { animation-delay: .12s; }
body #dynamic-grid .hentry:nth-child(4) { animation-delay: .18s; }
body #dynamic-grid .hentry:nth-child(5) { animation-delay: .24s; }
body #dynamic-grid .hentry:nth-child(n+6) { animation-delay: .3s; }

body #dynamic-grid .hentry:hover {
	transform: translateY(-4px);
	border-color: var(--sb-line-strong);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

/* Unwrap so the photo can sit on top of the title */
body #dynamic-grid .entry-summary,
body #dynamic-grid .entry-content { display: contents; }

body #dynamic-grid .featured-image,
body #dynamic-grid .entry-content > p:first-child:has(img) {
	order: 1;
	margin: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--sb-panel-2);
}
body #dynamic-grid .featured-image a,
body #dynamic-grid .entry-content > p:first-child:has(img) a { display: block; height: 100%; }
body #dynamic-grid .featured-image img,
body #dynamic-grid .entry-content > p:first-child:has(img) img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border: 0;
	box-shadow: none;
	transition: transform 1.2s var(--sb-ease), filter .6s var(--sb-ease);
	filter: saturate(.92);
}
body #dynamic-grid .hentry:hover .featured-image img,
body #dynamic-grid .hentry:hover .entry-content > p:first-child:has(img) img {
	transform: scale(1.045);
	filter: saturate(1.05);
}

body #dynamic-grid .entry-header {
	order: 2;
	padding: 24px 26px 0;
	margin: 0;
}
body #dynamic-grid .entry-title {
	font-family: var(--sb-serif);
	font-size: 27px;
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
}
body #dynamic-grid .entry-title a { color: var(--sb-text); text-shadow: none; }
body #dynamic-grid .entry-title a:hover { color: var(--sb-amber); }

body #dynamic-grid .entry-summary > p,
body #dynamic-grid .entry-content > p:not(:first-child) {
	order: 3;
	margin: 12px 0 0;
	padding: 0 26px;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--sb-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
body #dynamic-grid .entry-summary > p:has(.more-link) { display: none; }

body #dynamic-grid .entry-meta {
	order: 4;
	margin: auto 0 0;
	padding: 22px 26px 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	border-top: 0;
	background: none;
	font: 600 10.5px/1.6 var(--sb-sans);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sb-muted);
}
body #dynamic-grid .entry-meta::before {
	content: "";
	flex-basis: 100%;
	height: 1px;
	margin-bottom: 14px;
	background: var(--sb-line);
}
body #dynamic-grid .entry-meta a { color: var(--sb-muted); }
body #dynamic-grid .entry-meta a:hover { color: var(--sb-amber); }
body #dynamic-grid .entry-meta .byline,
body #dynamic-grid .entry-meta .sticky-indicator { display: none; }

/* Sticky welcome post becomes a full-width intro panel */
body #dynamic-grid .hentry.sticky {
	grid-column: 1 / -1;
	background:
		linear-gradient(90deg, var(--sb-amber-soft), transparent 55%),
		var(--sb-panel);
	border-left: 2px solid var(--sb-amber);
	padding: clamp(14px, 2vw, 22px) clamp(4px, 2vw, 18px);
}
body #dynamic-grid .hentry.sticky:hover { transform: none; }
body #dynamic-grid .hentry.sticky .entry-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; }
body #dynamic-grid .hentry.sticky .entry-summary > p {
	-webkit-line-clamp: unset;
	font-size: 16px;
	max-width: 70ch;
}
body #dynamic-grid .hentry.sticky .entry-meta::before { display: none; }

/* Feature the newest photo post across two columns on wide screens */
@media (min-width: 1040px) {
	body.home #dynamic-grid .hentry.sticky + .hentry.has-post-thumbnail {
		grid-column: span 2;
	}
	body.home #dynamic-grid .hentry.sticky + .hentry.has-post-thumbnail .entry-title { font-size: 36px; }
}

/* ---------- Pagination ---------- */
.paging-navigation,
.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: clamp(40px, 5vw, 64px) 0 0;
	border: 0;
}
.paging-navigation a,
.post-navigation a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 24px;
	border: 1px solid var(--sb-line-strong);
	border-radius: 999px;
	color: var(--sb-text);
	font: 600 11px/1 var(--sb-sans);
	letter-spacing: .2em;
	text-transform: uppercase;
	background: none;
	transition: all .3s var(--sb-ease);
}
.paging-navigation a:hover,
.post-navigation a:hover { border-color: var(--sb-amber); color: var(--sb-ink); background: var(--sb-amber); }

/* ---------- Single posts & pages ---------- */
body.single .hentry,
body.page .hentry {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
}
body.single .entry-header,
body.page .entry-header { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
body.single #content .entry-header .entry-title,
body.page #content .entry-header .entry-title {
	font-family: var(--sb-serif);
	font-size: clamp(38px, 5.4vw, 68px) !important;
	font-weight: 500;
	line-height: 1.05;
	color: var(--sb-text);
	letter-spacing: -0.015em;
	animation: sb-rise .9s var(--sb-ease) both;
}

.entry-content {
	font-size: 17.5px;
	line-height: 1.85;
	color: var(--sb-text);
}
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2, .entry-content h3 { margin: 1.8em 0 .5em; line-height: 1.15; }
.entry-content h2 { font-size: 36px; }
.entry-content h3 { font-size: 28px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(230, 173, 75, .45); text-underline-offset: 3px; }
.entry-content blockquote {
	border-left: 2px solid var(--sb-amber);
	margin: 2em 0;
	padding: .2em 0 .2em 1.4em;
	font: italic 500 26px/1.45 var(--sb-serif);
	color: var(--sb-text);
	background: none;
}

body.single .featured-image,
body.page .featured-image { margin: 0 0 2em; }
.entry-content img,
.featured-image img,
.wp-caption img {
	border-radius: var(--sb-radius);
	border: 0;
	box-shadow: 0 30px 70px -35px rgba(0, 0, 0, .9);
	padding: 0;
	background: none;
}
body.single .entry-content img.aligncenter,
body.single .entry-content img.size-large,
body.single .entry-content img.size-full,
body.single .featured-image img {
	width: 100%;
	height: auto;
}
.wp-caption { background: none; border: 0; padding: 0; max-width: 100%; }
.wp-caption-text,
.wp-caption .wp-caption-text {
	font: italic 500 16px/1.5 var(--sb-serif);
	color: var(--sb-muted);
	text-align: center;
	padding: 12px 0 0;
}

body.single .entry-meta,
body.page .entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--sb-line);
	background: none;
	font: 600 11px/1.6 var(--sb-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sb-muted);
}
body.single .entry-meta a { color: var(--sb-text); }
body.single .entry-meta a:hover { color: var(--sb-amber); }

/* ---------- Comments & forms ---------- */
.comments-area { margin-top: 64px; border: 0; background: none; box-shadow: none; }
.comments-title, #reply-title { font-size: 34px; font-weight: 500; }
.commentlist .comment,
.comment-list .comment { background: var(--sb-panel); border: 1px solid var(--sb-line); border-radius: var(--sb-radius); box-shadow: none; }

input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], textarea {
	background: var(--sb-panel-2);
	border: 1px solid var(--sb-line-strong);
	border-radius: 4px;
	color: var(--sb-text);
	font: 15px/1.6 var(--sb-sans);
	padding: 10px 14px;
	box-shadow: none;
}
input[type=text]:focus, input[type=email]:focus, input[type=url]:focus, textarea:focus {
	outline: 0;
	border-color: var(--sb-amber);
}
#top-bar #searchform input[type=text] { background: transparent; border: 0; padding: 4px 6px; }

input[type=submit], button, .button {
	background: var(--sb-amber);
	border: 0;
	border-radius: 999px;
	color: var(--sb-ink);
	font: 700 11px/1 var(--sb-sans);
	letter-spacing: .2em;
	text-transform: uppercase;
	padding: 15px 28px;
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
	transition: background .3s var(--sb-ease);
}
input[type=submit]:hover, button:hover { background: var(--sb-text); }
#top-bar #searchform input[type=submit] { display: none; }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: clamp(72px, 9vw, 120px);
	border-top: 1px solid var(--sb-line);
	background: none;
	box-shadow: none;
}
.footer-widget-area { background: none; box-shadow: none; padding: 56px 0 24px; }
#footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 40px;
	height: auto !important;
}
#footer-widgets .widget {
	position: static !important;
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--sb-muted);
	font-size: 14px;
}
#footer-widgets .widget-title {
	font: 600 11px/1 var(--sb-sans);
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--sb-amber);
	margin: 0 0 18px;
	border: 0;
	padding: 0;
}
#footer-widgets ul { margin: 0; padding: 0; list-style: none; }
#footer-widgets li { padding: 6px 0; border: 0; line-height: 1.5; }
#footer-widgets a { color: var(--sb-muted); }
#footer-widgets a:hover { color: var(--sb-text); }
#footer-widgets #searchform { display: flex; }
#footer-widgets #searchform .field { width: 100%; }
#footer-widgets #searchform .submit { display: none; }

#bottom-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 26px 0 40px;
	border-top: 1px solid var(--sb-line);
	background: none;
	box-shadow: none;
	color: var(--sb-muted);
	font-size: 12px;
	letter-spacing: .04em;
}
#bottom-bar a { color: var(--sb-muted); }
#bottom-bar a:hover { color: var(--sb-amber); }
#bottom-bar .footer-text,
#bottom-bar .site-info { float: none; width: auto; margin: 0; text-align: left; }

.back-to-top {
	width: 46px;
	height: 46px;
	line-height: 46px;
	border-radius: 50%;
	background: var(--sb-panel-2);
	border: 1px solid var(--sb-line-strong);
	color: var(--sb-amber);
}
.back-to-top:hover { background: var(--sb-amber); color: var(--sb-ink); }

/* ---------- Motion ---------- */
@keyframes sb-rise {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
	#top-bar #searchform input[type=text] { width: 120px; }
	body #dynamic-grid .entry-title { font-size: 24px; }
	body #dynamic-grid .entry-header { padding: 20px 20px 0; }
	body #dynamic-grid .entry-summary > p { padding: 0 20px; }
	body #dynamic-grid .entry-meta { padding: 18px 20px; }
	.entry-content { font-size: 16.5px; }
}
@media (max-width: 782px) {
	.admin-bar #top-bar { top: 46px; }
}

/* ---------- Fireflies (below the fold, generated by js/fireflies.js) ---------- */
.sb-fireflies {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 260px);
	mask-image: linear-gradient(to bottom, transparent 0, #000 260px);
}

.sb-ff,
.sb-bokeh {
	position: absolute;
	width: var(--s);
	height: var(--s);
	margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
	opacity: var(--o);
	animation: sb-ff-drift var(--dur) ease-in-out var(--delay) infinite alternate;
	will-change: transform;
}

.sb-ff svg {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	transform: rotate(var(--rot));
}

.sb-ff-halo {
	position: absolute;
	left: 50%;
	top: 70%;
	width: 340%;
	height: 340%;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(255, 220, 130, 0.6) 0%, rgba(255, 176, 76, 0.24) 28%, rgba(255, 150, 60, 0) 62%);
	animation: sb-ff-blink var(--blink) ease-in-out var(--bdelay) infinite;
}

.sb-ff-tail { animation: sb-ff-blink var(--blink) ease-in-out var(--bdelay) infinite; }

.sb-ff-wings {
	transform-box: fill-box;
	transform-origin: 50% 100%;
	animation: sb-ff-flutter .13s ease-in-out infinite alternate;
}

.sb-ff-spark {
	position: absolute;
	left: 50%;
	top: 80%;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #ffe6a8;
	box-shadow: 0 0 6px 2px rgba(255, 190, 90, 0.7);
	opacity: 0;
	animation: sb-ff-spark 2.4s ease-out infinite;
}

.sb-bokeh {
	border-radius: 50%;
	background: radial-gradient(circle, var(--c) 0%, transparent 70%);
}

.sb-paused,
.sb-paused * { animation-play-state: paused !important; }

@keyframes sb-ff-drift {
	0%   { transform: translate3d(0, 0, 0); }
	33%  { transform: translate3d(var(--x1), var(--y1), 0); }
	66%  { transform: translate3d(var(--x2), var(--y2), 0); }
	100% { transform: translate3d(var(--x3), var(--y3), 0); }
}
@keyframes sb-ff-blink {
	0%, 100% { opacity: .28; }
	45%, 60% { opacity: 1; }
}
@keyframes sb-ff-flutter {
	from { transform: scaleY(1); }
	to   { transform: scaleY(.5); }
}
@keyframes sb-ff-spark {
	0%   { opacity: 0; transform: translate(-50%, 0) scale(1); }
	15%  { opacity: .9; }
	100% { opacity: 0; transform: translate(calc(-50% + var(--sx, 6px)), 28px) scale(.3); }
}

/* Brighter, more luminous glow so the fireflies read at a glance */
.sb-ff-halo {
	width: 420%;
	height: 420%;
	background: radial-gradient(circle, rgba(255, 236, 170, 0.85) 0%, rgba(255, 190, 90, 0.38) 22%, rgba(255, 150, 60, 0.12) 45%, rgba(255, 150, 60, 0) 66%);
}

/* Let firefly light glow faintly through the post cards */
body #dynamic-grid .hentry { background: rgba(21, 19, 15, 0.84); }
body #dynamic-grid .hentry.sticky {
	background:
		linear-gradient(90deg, var(--sb-amber-soft), transparent 55%),
		rgba(21, 19, 15, 0.84);
}

/* Remove the old theme's grey box behind "Older posts / Newer posts" */
body .site-navigation.paging-navigation,
body #nav-below,
body #nav-above {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}
