/*
 Theme Name:   Peter Child — Artist Blog
 Theme URI:    https://tirosebinacreativereview.com/
 Description:  Simple artist blog customizations for Tiro Sebina Creative Review.
 Author:       FOLIO
 Template:     peter
 Version:      1.3.6
*/

/* ---- Simple artist header extras ---- */
.primary-menu > li.menu-item-search > a,
.primary-menu > li.menu-item-new-post > a {
	padding-left: 0.55em;
	padding-right: 0.55em;
}

.primary-menu > li.menu-item-new-post > a {
	font-size: 1.15em;
	line-height: 1;
}

.primary-menu > li.menu-item-new-post > a:hover {
	opacity: 0.75;
}

@media (max-width: 767px) {
	.primary-menu > li.menu-item-search,
	.primary-menu > li.menu-item-new-post {
		display: inline-block;
	}
}

/* ---- 3-column poem / post grid ---- */
.tiro-blog-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.5rem 0 3rem;
}

.tiro-blog-wrap > h1 {
	margin-bottom: 1.5rem;
}

.tiro-poem-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem 1.5rem;
	margin: 1rem 0 2rem;
	list-style: none;
	padding: 0;
}

@media (max-width: 991px) {
	.tiro-poem-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.tiro-poem-grid {
		grid-template-columns: 1fr;
	}
}

.tiro-poem-card {
	display: flex;
	flex-direction: column;
	padding: 0 0 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: transparent;
}

.tiro-poem-card-thumb {
	display: block;
	margin-bottom: 0.85rem;
	overflow: hidden;
}

.tiro-poem-card-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.tiro-poem-card h3 {
	margin: 0 0 0.45rem;
	font-size: 1.2rem;
	line-height: 1.3;
}

.tiro-poem-card h3 a {
	text-decoration: none;
}

.tiro-poem-brief {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.6;
	opacity: 0.85;
	white-space: pre-line;
	flex-grow: 1;
}

.tiro-poem-meta {
	margin: 0.55rem 0 0;
	font-size: 0.75rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	opacity: 0.55;
}

/* Legacy list — used on Home (single column) */
.tiro-poem-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tiro-poem-item {
	padding: 1.35rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tiro-poem-item:last-child {
	border-bottom: 0;
}

.tiro-poem-item h3 {
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
	line-height: 1.3;
}

.tiro-poem-item h3 a {
	text-decoration: none;
}

.tiro-home-more {
	margin: 1.5rem 0 0;
}

.tiro-home-more a {
	font-weight: 600;
	text-decoration: none;
}

/* Home heading: Creative (white) + Review (black) */
.tiro-home-heading .tiro-home-heading-creative {
	color: #fff;
}

.tiro-home-heading .tiro-home-heading-review {
	color: #000;
}

/* Home: optional “My latest book” — aligned with poem list, centered */
.tiro-home-with-book {
	align-items: flex-start;
}

.tiro-latest-book {
	margin-top: 0;
	padding-top: 1.35rem; /* match first poem-item top padding */
}

.tiro-latest-book-inner {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	max-width: 280px;
}

.tiro-latest-book-label {
	margin: 0 0 0.85rem;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-transform: none;
	opacity: 1;
}

.tiro-latest-book-link {
	display: inline-block;
	line-height: 0;
}

.tiro-latest-book-cover,
.tiro-latest-book img.tiro-latest-book-cover {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 420px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.tiro-latest-book-title {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
	line-height: 1.35;
	opacity: 0.85;
}

.tiro-latest-book-url {
	margin: 0.45rem 0 0;
	font-size: 0.8rem;
	line-height: 1.4;
	word-break: break-word;
}

.tiro-latest-book-url a {
	opacity: 0.7;
	text-decoration: none;
}

.tiro-latest-book-url a:hover {
	opacity: 1;
	text-decoration: underline;
}

@media (max-width: 991px) {
	.tiro-latest-book {
		margin-top: 1.5rem;
		padding-top: 0;
	}

	.tiro-latest-book-inner {
		max-width: 240px;
	}
}

/* ---- Profile-driven pages ---- */
.tiro-profile-page {
	max-width: 42em;
	margin: 0 auto;
	padding: 2rem 0 3rem;
}

.tiro-about-layout {
	max-width: 52em;
	display: grid;
	grid-template-columns: 256px 1fr;
	gap: 2rem 2.5rem;
	align-items: start;
}

@media (max-width: 767px) {
	.tiro-about-layout {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: left;
	}
}

.tiro-about-photo {
	width: 256px;
}

.tiro-about-photo img.tiro-about-avatar,
.tiro-about-photo img.avatar {
	display: block;
	width: 256px;
	height: 256px;
	object-fit: cover;
	border-radius: 0;
}

.tiro-about-name {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
}

.tiro-about-copy {
	min-width: 0;
}

.tiro-profile-page h1 {
	margin-bottom: 0.75rem;
}

.tiro-report-intro {
	margin: 0 0 1.75rem;
	opacity: 0.75;
}

.tiro-profile-body {
	font-size: 1.075rem;
	line-height: 1.75;
	white-space: pre-line;
}

.tiro-profile-empty {
	opacity: 0.65;
	font-style: italic;
}

/* ---- Social / My Report ---- */
.tiro-social-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.tiro-social-link {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.72);
	text-decoration: none !important;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.tiro-social-link:hover {
	background: rgba(255, 255, 255, 0.95);
	border-color: rgba(0, 0, 0, 0.22);
}

.tiro-social-link .fa {
	width: 1.25em;
	text-align: center;
	font-size: 1.2em;
}

/* ---- Comment CAPTCHA ---- */
.comment-form-tiro-captcha {
	margin: 1rem 0;
}

.comment-form-tiro-captcha .tiro-captcha-q {
	margin-right: 0.4rem;
	font-weight: 600;
}

.comment-form-tiro-captcha input[type="number"] {
	width: 5rem;
	max-width: 30%;
	display: inline-block;
}

/* ---- Frontend compose bar (logged-in publishers) ---- */
.tiro-compose-bar {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 9999;
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.tiro-compose-bar a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem 1rem;
	border-radius: 999px;
	background: #111;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.tiro-compose-bar a:hover {
	background: #333;
}

.tiro-compose-bar .tiro-compose-secondary {
	background: #fff;
	color: #111 !important;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

@media (max-width: 600px) {
	.tiro-compose-bar {
		right: 0.75rem;
		bottom: 0.75rem;
	}
	.tiro-compose-bar .tiro-compose-label {
		display: none;
	}
}

/* Let the poetry background show through content gently */
body.tiro-compose-open {
	overflow: hidden;
}

.tiro-compose-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.tiro-compose-modal.is-open {
	display: flex;
}

.tiro-compose-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 18, 16, 0.55);
}

.tiro-compose-dialog {
	position: relative;
	width: 100%;
	max-width: 34rem;
	max-height: calc(100vh - 2rem);
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
	padding: 1.25rem 1.35rem 1.35rem;
}

.tiro-compose-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.tiro-compose-header h2 {
	margin: 0;
	font-size: 1.25rem;
}

.tiro-compose-x {
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.55;
	padding: 0 0.15rem;
}

.tiro-compose-x:hover {
	opacity: 1;
}

#tiro-compose-title,
#tiro-compose-content {
	width: 100%;
	display: block;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 6px;
	padding: 0.75rem 0.85rem;
	font: inherit;
	margin: 0 0 0.85rem;
	background: #fafafa;
}

#tiro-compose-title:focus,
#tiro-compose-content:focus {
	outline: none;
	border-color: rgba(0, 0, 0, 0.35);
	background: #fff;
}

#tiro-compose-content {
	min-height: 12rem;
	resize: vertical;
	line-height: 1.55;
	white-space: pre-wrap;
}

.tiro-compose-picture-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	border: 1px dashed rgba(0, 0, 0, 0.25);
	background: #f7f7f7;
	padding: 0.55rem 0.85rem;
	border-radius: 6px;
	cursor: pointer;
	font: inherit;
	font-size: 0.92rem;
	margin-bottom: 0.85rem;
}

.tiro-compose-picture-btn.is-active {
	border-style: solid;
	background: #eee;
}

.tiro-compose-image-wrap {
	display: none;
	margin: 0 0 1rem;
	padding: 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	background: #fafafa;
}

.tiro-compose-image-wrap.is-visible {
	display: block;
}

.tiro-compose-image-wrap label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.tiro-compose-preview {
	margin-top: 0.75rem;
}

.tiro-compose-preview img {
	display: block;
	max-width: 100%;
	max-height: 220px;
	height: auto;
	border-radius: 4px;
}

.tiro-compose-error {
	color: #a00;
	margin: 0 0 0.85rem;
	font-size: 0.92rem;
}

.tiro-compose-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.6rem;
}

.tiro-compose-close-btn,
.tiro-compose-draft-btn,
.tiro-compose-post-btn {
	border: 0;
	border-radius: 6px;
	padding: 0.65rem 1.15rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.tiro-compose-close-btn {
	background: #ececec;
	color: #222;
}

.tiro-compose-draft-btn {
	background: #dd9933;
	color: #fff;
}

.tiro-compose-draft-btn:hover {
	background: #c88728;
}

.tiro-compose-post-btn {
	background: #111;
	color: #fff;
}

.tiro-compose-post-btn:disabled,
.tiro-compose-draft-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

@media (max-width: 600px) {
	.tiro-compose-dialog {
		padding: 1rem;
	}
	#tiro-compose-content {
		min-height: 10rem;
	}
}

/* Let the poetry background show through content gently */
body.custom-background #content {
	background-color: rgba(255, 255, 255, 0.88) !important;
}

/* ---- Site copyright footer ---- */
.tiro-site-footer {
	background: #000;
	color: #fff;
	width: 100%;
	padding: 1.15rem 1rem;
	text-align: center;
}

.tiro-site-footer-inner {
	max-width: 960px;
	margin: 0 auto;
}

.tiro-site-footer p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #fff;
}

.tiro-site-footer a.tiro-folio-credit,
.tiro-site-footer a.tiro-folio-credit:visited {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.tiro-site-footer a.tiro-folio-credit:hover,
.tiro-site-footer a.tiro-folio-credit:focus {
	color: #dd9933;
	text-decoration: underline;
}

