/*
Theme Name: C305
Author: C305
Description: Dark minimal theme for documenting graffiti culture — photos, videos, tags, pieces, trains and local history. Black background, white text, red hover links. Works with the companion Graffiti Archive plugin (writer, type, era, location, date).
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: c305
Tags: photography, portfolio, dark, black, custom-background, featured-images, grid-layout, translation-ready
*/

/* ------------------------------------------------------------------
   Base & Reset
------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	background-color: #000000;
	color: #e1e6eb;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	line-height: 1.6;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	border: 0;
}

a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.15s ease, text-decoration 0.15s ease;
}

a:hover,
a:focus,
a:active {
	color: #ff0000;
	text-decoration: underline;
}

/* ------------------------------------------------------------------
   Layout
------------------------------------------------------------------ */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-header {
	border-bottom: 1px solid #000000;
	padding: 0.35rem 0;
	position: sticky;
	top: 0;
	background: #000;
	z-index: 100;
}

.site-header .inner,
.site-footer .inner,
.site-main .inner,
.featured-area .inner,
.gallery-section .inner,
.latest-section .inner {
	max-width: 875px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.site-branding {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
}

.site-title a {
	color: #fff;
}

.site-description {
	font-size: 0.85rem;
	color: #aaa;
	margin-top: 0.15rem;
}

.main-navigation ul {
	list-style: none;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: max-content;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	margin: 0;
	padding: 0;
}

.main-navigation a {
	display: block;
	font-size: 0.9rem;
	font-family: Montserrat, Verdana, Geneva, Lucida, "Lucida Grande", Arial, Helvetica, sans-serif;
	text-transform: none;
	letter-spacing: normal;
	color: #ffffff;
	text-decoration: none;
	padding: 0.4rem 0.75rem;
	line-height: 1.2;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation a:active {
	background-color: #d70040;
	color: #ffffff;
	text-decoration: none;
}

.site-main {
	flex: 1;
	padding: 0.65rem 0 1.25rem;
}

.site-footer {
	border-top: 1px solid #000000;
	padding: 0.5rem 0;
	font-size: 10px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #888;
	text-align: center;
}

.site-footer p {
	font-size: 10px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* ------------------------------------------------------------------
   Front Page – Featured + Tag Cloud row
------------------------------------------------------------------ */
.featured-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	margin-bottom: 3rem;
	align-items: flex-start;
}

.featured-area {
	flex: 0 0 500px;
	max-width: 500px;
	width: 100%;
}

.featured-hero {
	position: relative;
	overflow: hidden;
	background: #111;
	width: 500px;
	max-width: 100%;
}

.featured-hero img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid #ffffff;
	object-fit: cover;
}

.featured-caption {
	margin-top: 0.75rem;
}

.featured-caption h2 {
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
}

.featured-meta {
	font-size: 0.9rem;
	color: #ccc;
}

.featured-meta a {
	color: #ccc;
}

.featured-meta a:hover {
	color: #ff0000;
}

/* Tag cloud next to featured */
.writers-cloud {
	flex: 1 1 280px;
	min-width: 260px;
}

.writers-cloud .section-title {
	margin-bottom: 1rem;
}

.tagcloud,
.writers-cloud .tag-cloud {
	line-height: 1.8;
}

.tagcloud,
.writers-cloud .tag-cloud {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 1.8;
}

.tagcloud a,
.writers-cloud a {
	display: inline-block;
	margin: 0 0.35rem 0.35rem 0;
	color: #ffffff;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px !important; /* override tag-cloud inline sizes */
	text-transform: lowercase;
}

.tagcloud a:hover,
.writers-cloud a:hover {
	color: #ff0000;
	text-decoration: underline;
}

/* ------------------------------------------------------------------
   Section titles & Latest Additions
------------------------------------------------------------------ */

.section-title {
	font-size: 1.05rem;
	text-transform: none;
	letter-spacing: 0.04em;
	margin-bottom: 1rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid #333;
}

.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
}

.photo-card {
	background: #111;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.photo-card a {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.photo-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 1px solid #ffffff;
	transition: transform 0.35s ease;
}

.photo-card:hover img {
	transform: scale(1.05);
}

.photo-card .card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0.75rem;
	background: linear-gradient(transparent, rgba(0,0,0,0.9));
	opacity: 0;
	transition: opacity 0.25s ease;
}

.photo-card:hover .card-overlay {
	opacity: 1;
}

.card-title {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 0.2rem;
}

.card-meta {
	font-size: 0.8rem;
	color: #bbb;
}

/* ------------------------------------------------------------------
   Single / Archive
------------------------------------------------------------------ */
.entry-header {
	margin-bottom: 0.5rem;
}

.entry-title {
	font-size: 2rem;
	margin-bottom: 0.25rem;
	line-height: 1.25;
}

.single .entry-content {
	margin-top: 0.5rem;
}

.entry-meta {
	font-size: 0.9rem;
	color: #aaa;
}

.entry-meta a {
	color: #aaa;
}

.entry-meta a:hover {
	color: #ff0000;
}

.entry-content {
	margin-top: 1.5rem;
}

.entry-content p {
	margin-bottom: 1rem;
}

.single-photo-image {
	margin-top: 0.35rem;
	margin-bottom: 1rem;
	background: transparent;
	text-align: left;
}

.single-photo-image img {
	width: auto;
	max-width: 100%;
	height: auto;
	border: 1px solid #ffffff;
	display: inline-block;
	vertical-align: top;
}


/* Latest Additions */
.latest-section {
	margin-bottom: 2rem;
}

.latest-section .section-title {
	text-align: left;
}

.latest-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
	align-items: flex-start;
}

.latest-card {
	background: #111;
	flex: 0 1 180px;
	width: 180px;
	max-width: 100%;
	overflow: hidden;
	line-height: 0;
	aspect-ratio: 16 / 9;
}

.latest-card a {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.latest-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 1px solid #ffffff;
	display: block;
	transition: transform 0.3s ease;
}

.latest-card:hover img {
	transform: scale(1.05);
}

/* Writers & Crews page */
.writers-list {
	list-style: none;
	columns: 3;
	column-gap: 2rem;
}

.writers-list li {
	margin-bottom: 0.5rem;
	break-inside: avoid;
}

.writers-list a {
	color: #ffffff;
}

.writers-list a:hover {
	color: #ff0000;
	text-decoration: underline;
}

.writers-list .count {
	color: #888;
	font-size: 0.85rem;
	margin-left: 0.35rem;
}

.taxonomy-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
	list-style: none;
}

.taxonomy-list a {
	display: inline-block;
	padding: 0.25rem 0.6rem;
	border: 1px solid #333;
	font-size: 0.8rem;
	text-transform: none;
	letter-spacing: 0.03em;
}

.taxonomy-list a:hover {
	border-color: #ff0000;
	text-decoration: none;
}

/* Archive header */
.archive-header {
	margin-bottom: 2rem;
}

.archive-title {
	font-size: 1.75rem;
	text-transform: none;
	letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------
   Pagination
------------------------------------------------------------------ */
.pagination,
.nav-links {
	margin-top: 2.5rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pagination a,
.pagination span,
.nav-links a {
	display: inline-block;
	padding: 0.4rem 0.8rem;
	border: 1px solid #333;
	font-size: 0.9rem;
}

.pagination .current {
	background: #222;
	border-color: #555;
}

/* ------------------------------------------------------------------
   Content + Sidebar layout (single posts)
------------------------------------------------------------------ */
.content-sidebar-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: flex-start;
}

.content-area {
	flex: 1 1 0;
	min-width: 0; /* allow shrink inside flex */
}

.widget-area {
	flex: 0 0 220px;
	width: 220px;
	max-width: 100%;
}

.widget {
	margin-bottom: 1.5rem;
}

.widget-title {
	font-size: 0.95rem;
	text-transform: none;
	letter-spacing: 0.05em;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid #333;
	padding-bottom: 0.35rem;
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget li {
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
}

.widget a {
	color: #fff;
}

.widget a:hover {
	color: #ff0000;
	text-decoration: underline;
}

@media (max-width: 700px) {
	.content-sidebar-wrap {
		flex-direction: column;
	}

	.widget-area {
		flex: 1 1 auto;
		width: 100%;
	}
}

/* ------------------------------------------------------------------
   Forms (basic)
------------------------------------------------------------------ */
input[type="text"],
input[type="search"],
input[type="email"],
textarea,
select {
	background: #111;
	border: 1px solid #333;
	color: #fff;
	padding: 0.5rem 0.75rem;
	width: 100%;
	max-width: 100%;
}

input[type="submit"],
button,
.button {
	background: #222;
	border: 1px solid #444;
	color: #fff;
	padding: 0.5rem 1rem;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0.04em;
	font-size: 0.85rem;
}

input[type="submit"]:hover,
button:hover,
.button:hover {
	background: #333;
	border-color: #ff0000;
	color: #ff0000;
}

/* ------------------------------------------------------------------
   Utilities
------------------------------------------------------------------ */
.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;
	width: 1px;
	word-wrap: normal !important;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
	margin-right: 1.5rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 900px) {
	.featured-row {
		flex-direction: column;
	}

	.featured-area {
		flex: 0 0 auto;
		max-width: 500px;
	}
}

@media (max-width: 768px) {
	.site-branding {
		flex-direction: column;
		align-items: flex-start;
	}

	.main-navigation ul {
		gap: 0.75rem;
	}

	.photo-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 0.65rem;
	}

	.featured-caption h2 {
		font-size: 1.15rem;
	}

	.entry-title {
		font-size: 1.5rem;
	}

	.writers-list {
		columns: 2;
	}
}

@media (max-width: 480px) {
	.photo-grid {
		grid-template-columns: 1fr 1fr;
	}

	

	.writers-list {
		columns: 1;
	}

	.featured-area {
		max-width: 100%;
	}

	.featured-hero {
		width: 100%;
	}
}

/* ------------------------------------------------------------------
   Front Page – Misc
------------------------------------------------------------------ */
.misc-section {
	margin-bottom: 1.5rem;
}

.misc-content {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #ddd;
}

.misc-content p {
	margin-bottom: 0.75rem;
}

.misc-content a {
	color: #fff;
}

.misc-content a:hover {
	color: #ff0000;
	text-decoration: underline;
}

.misc-widget-title {
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.writers-section {
	margin-bottom: 1.25rem;
	flex: none;
	width: 100%;
	min-width: 0;
}

/* Misc 2 – next to featured post */
.misc-2-area {
	flex: 1 1 280px;
	min-width: 240px;
}

.misc-2-area .section-title {
	margin-top: 0;
}

.misc-2-area .misc-content {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #e1e6eb;
}

.misc-2-area .misc-content p {
	margin-bottom: 0.75rem;
}


/* Site-wide top bar (optional widget area) */
.site-top-bar {
	border-bottom: 1px solid #000000;
	padding: 0.35rem 0;
	background: #000;
	font-size: 0.9rem;
	color: #e1e6eb;
}

.site-top-bar .inner {
	max-width: 875px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.site-top-bar a {
	color: #fff;
}

.site-top-bar a:hover {
	color: #d70040;
	text-decoration: underline;
}

.site-top-bar .top-bar-widget {
	margin: 0;
}

.site-top-bar .top-bar-widget p:last-child {
	margin-bottom: 0;
}

.site-top-bar .top-bar-widget-title {
	font-size: 0.95rem;
	margin: 0 0 0.35rem;
}


/* Embedded video on single posts — full content width, keep aspect ratio */
.single-video-embed {
	margin: 0.35rem 0 1.25rem;
	width: 100%;
	max-width: 100%;
	position: relative;
	aspect-ratio: 16 / 9;
	background: #111;
	overflow: hidden;
}

.single-video-embed iframe,
.single-video-embed embed,
.single-video-embed object,
.single-video-embed video {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	border: 0;
	display: block;
}

/* Some oEmbed wrappers */
.single-video-embed > * {
	width: 100% !important;
	max-width: 100%;
}

.single-video-embed .wp-block-embed__wrapper {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}


/* Site Top Bar 2 – below nav, above page content */
.site-top-bar-2 {
	border-bottom: 1px solid #000000;
	padding: 0.35rem 0;
	background: #000;
	font-size: 0.9rem;
	color: #e1e6eb;
}

.site-top-bar-2 .inner {
	max-width: 875px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.site-top-bar-2 a {
	color: #fff;
}

.site-top-bar-2 a:hover {
	color: #d70040;
	text-decoration: underline;
}

.site-top-bar-2 .top-bar-widget {
	margin: 0;
}

.site-top-bar-2 .top-bar-widget p:last-child {
	margin-bottom: 0;
}

.site-top-bar-2 .top-bar-widget-title {
	font-size: 0.95rem;
	margin: 0 0 0.35rem;
}


/* ------------------------------------------------------------------
   Portal page content only
   Design inspired by Features prototype (dark panels, red accent)
------------------------------------------------------------------ */
body.page-template-page-portal .portal-page {
	--portal-black: #050505;
	--portal-panel: #0d0d0d;
	--portal-panel-hover: #151515;
	--portal-white: #f2f2f2;
	--portal-gray: #999;
	--portal-dark-gray: #292929;
	--portal-red: #d71920;
}

body.page-template-page-portal .portal-header {
	padding: 0 0 0.75rem;
	margin-bottom: 0;
	border-bottom: 1px solid var(--portal-dark-gray);
}

body.page-template-page-portal .portal-title {
	margin: 0;
	font-size: 2.25rem;
	line-height: 1;
	letter-spacing: -1px;
	font-weight: 700;
	color: var(--portal-white);
	text-transform: none;
	font-family: Verdana, Helvetica, Arial, sans-serif;
}

body.page-template-page-portal .portal-intro {
	margin: 0.5rem 0 0;
	max-width: 40rem;
	color: var(--portal-gray);
	font-size: 13px;
	line-height: 1.5;
	font-family: Verdana, Helvetica, Arial, sans-serif;
}

body.page-template-page-portal .portal-intro a {
	color: var(--portal-white);
}

body.page-template-page-portal .portal-intro a:hover {
	color: var(--portal-red);
	text-decoration: underline;
}

body.page-template-page-portal .portal-section {
	padding: 1rem 0 1.25rem;
}

body.page-template-page-portal .portal-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 0.65rem;
}

body.page-template-page-portal .portal-section-header h2 {
	margin: 0;
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: none;
	color: var(--portal-white);
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-weight: 700;
	border: 0;
	padding: 0;
}

body.page-template-page-portal .portal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	background: var(--portal-dark-gray);
	margin-bottom: 0;
}

body.page-template-page-portal .portal-tax {
	background: var(--portal-panel);
	padding: 16px 14px 14px;
	min-height: 100%;
	transition: background-color 0.18s ease;
	font-family: Verdana, Helvetica, Arial, sans-serif;
}

body.page-template-page-portal .portal-tax:hover {
	background: #000000;
}

body.page-template-page-portal .portal-tax-title {
	margin: 0 0 4px;
	padding: 0;
	border: 0;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--portal-white);
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-weight: 700;
}

body.page-template-page-portal .portal-tax-desc {
	max-width: 240px;
	margin: 0 0 0.55rem;
	color: var(--portal-gray);
	font-size: 11px;
	line-height: 1.4;
	font-family: Verdana, Helvetica, Arial, sans-serif;
}

body.page-template-page-portal .portal-term-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--portal-dark-gray);
}

body.page-template-page-portal .portal-term-list li {
	margin: 0;
	border-bottom: 1px solid var(--portal-dark-gray);
}

body.page-template-page-portal .portal-term-list li:last-child {
	border-bottom: 0;
}

body.page-template-page-portal .portal-term-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.35rem 0;
	color: #aaa;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-decoration: none;
	font-family: Verdana, Helvetica, Arial, sans-serif;
	transition: color 0.15s ease;
}

body.page-template-page-portal .portal-term-list a:hover {
	color: var(--portal-red);
	text-decoration: underline;
}

body.page-template-page-portal .portal-arrow {
	color: #666;
	font-size: 12px;
	transition: color 0.18s ease, transform 0.18s ease;
}

body.page-template-page-portal .portal-term-list a:hover .portal-arrow {
	color: var(--portal-red);
	transform: translateX(3px);
}


body.page-template-page-portal .portal-view-all {
	color: var(--portal-gray);
	font-size: 10px;
	letter-spacing: 1px;
	text-decoration: none;
	font-family: Verdana, Helvetica, Arial, sans-serif;
	text-transform: uppercase;
}

body.page-template-page-portal .portal-view-all:hover {
	color: var(--portal-red);
	text-decoration: underline;
}

body.page-template-page-portal .portal-beyond {
	padding-top: 1rem;
	border-bottom: 1px solid var(--portal-dark-gray);
	margin-bottom: 0.25rem;
}

body.page-template-page-portal .portal-beyond-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	background: var(--portal-dark-gray);
}

body.page-template-page-portal .portal-beyond-card {
	background: var(--portal-panel);
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

body.page-template-page-portal .portal-beyond-image {
	display: grid;
	place-items: center;
	min-height: 160px;
	background: linear-gradient(135deg, #181818 0%, #0b0b0b 100%);
	overflow: hidden;
}

body.page-template-page-portal .portal-beyond-image img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	border: 0;
}

body.page-template-page-portal .portal-beyond-placeholder {
	color: #555;
	font-size: 9px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-family: Verdana, Helvetica, Arial, sans-serif;
}

body.page-template-page-portal .portal-beyond-copy {
	padding: 12px 14px 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

body.page-template-page-portal .portal-beyond-type {
	color: var(--portal-red);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-family: Verdana, Helvetica, Arial, sans-serif;
}

body.page-template-page-portal .portal-beyond-card-title {
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 1.2;
	font-weight: 700;
	font-family: Verdana, Helvetica, Arial, sans-serif;
}

body.page-template-page-portal .portal-beyond-card-title a {
	color: var(--portal-white);
	text-decoration: none;
}

body.page-template-page-portal .portal-beyond-card-title a:hover {
	color: var(--portal-red);
	text-decoration: underline;
}

body.page-template-page-portal .portal-beyond-more {
	display: inline-block;
	margin-top: 12px;
	color: var(--portal-red);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none;
	font-family: Verdana, Helvetica, Arial, sans-serif;
}

body.page-template-page-portal .portal-beyond-more:hover {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 700px) {
	body.page-template-page-portal .portal-beyond-grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 701px) and (max-width: 900px) {
	body.page-template-page-portal .portal-beyond-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

body.page-template-page-portal .portal-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 1.25rem;
	background: var(--portal-panel);
	color: var(--portal-gray);
	font-size: 13px;
}

@media (max-width: 700px) {
	body.page-template-page-portal .portal-grid {
		grid-template-columns: 1fr;
	}

	body.page-template-page-portal .portal-title {
		font-size: 2rem;
	}
}

@media (min-width: 701px) and (max-width: 900px) {
	body.page-template-page-portal .portal-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}


/* ------------------------------------------------------------------
   Front page – Featured (prototype-inspired)
------------------------------------------------------------------ */
.fp-featured-section {
	margin-bottom: 2rem;
}

.fp-section-header {
	display: block;
	width: 100%;
	margin-bottom: 0.75rem;
}

.fp-section-header .section-title {
	display: block;
	width: 100%;
	margin-bottom: 0;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid #333;
}

.fp-view-all {
	color: #999;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

.fp-view-all:hover {
	color: #d71920;
	text-decoration: underline;
}

.fp-featured {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	background: transparent;
	align-items: center;
}

.fp-featured-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
}

.fp-featured-main {
	background: #000000;
	display: flex;
	flex-direction: column;
}

.fp-featured-image {
	display: grid;
	place-items: center;
	min-height: 280px;
	background: linear-gradient(135deg, #181818 0%, #0b0b0b 100%);
	overflow: hidden;
}

.fp-featured-image img {
	width: 100%;
	height: auto;
	max-height: 360px;
	object-fit: cover;
	display: block;
	border: 1px solid #ffffff;
	box-sizing: border-box;
}

.fp-image-placeholder {
	color: #555;
	font-size: 9px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

.fp-featured-copy {
	padding: 1rem 1.15rem 1.25rem;
}

.fp-meta {
	color: #aaaaaa;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	line-height: 1.4;
}

.fp-featured-title {
	margin: 8px 0 10px;
	font-size: 1.5rem;
	line-height: 1.15;
	letter-spacing: -0.5px;
	font-weight: 700;
}

.fp-featured-title a {
	color: #f2f2f2;
	text-decoration: none;
}

.fp-featured-title a:hover {
	color: #d71920;
	text-decoration: underline;
}

.fp-featured-excerpt {
	margin: 0;
	max-width: 40rem;
	color: #999;
	font-size: 13px;
	line-height: 1.55;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

.fp-read-more {
	display: inline-block;
	margin-top: 14px;
	color: #d71920;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	text-decoration: none;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}

.fp-read-more:hover {
	color: #fff;
	text-decoration: underline;
}

.fp-featured-side {
	background: transparent;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
}

.fp-side-story {
	background: #000000;
	display: flex;
	flex-direction: column;
	width: 260px;
	max-width: 100%;
	flex: 0 0 260px;
}

.fp-side-image {
	display: block;
	position: relative;
	width: 260px;
	height: 260px;
	max-width: 100%;
	background: linear-gradient(135deg, #181818 0%, #0b0b0b 100%);
	overflow: hidden;
	text-decoration: none;
	color: inherit; /* do not inherit global link white/red */
}

/* Prevent global a:hover { color: red } from flashing on image cards */
.fp-side-image:hover,
.fp-side-image:focus,
.fp-side-image:active {
	color: inherit;
	text-decoration: none;
}

.fp-side-image img {
	width: 260px;
	height: 260px;
	max-width: 100%;
	object-fit: cover;
	display: block;
	border: 1px solid #ffffff;
	box-sizing: border-box;
}

.fp-title-overlay {
	position: absolute;
	left: 8px;
	bottom: 8px;
	right: 8px;
	max-width: calc(100% - 16px);
	display: inline-block;
	width: fit-content;
	padding: 4px 7px;
	background: #ffffff;
	color: #000000;
	/* Match previous .fp-side-title sizing */
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	word-break: break-word;
	box-sizing: border-box;
}

.fp-side-image:hover .fp-title-overlay,
.fp-side-image:focus .fp-title-overlay {
	color: #000000;
	text-decoration: underline;
}

.fp-side-copy {
	padding: 8px 0 0;
}

.fp-side-copy:empty {
	display: none;
	padding: 0;
}

.fp-side-copy {
	padding: 8px 0 0;
}

.fp-side-title {
	margin: 6px 0 0;
	font-size: 1rem;
	line-height: 1.2;
	font-weight: 700;
}

.fp-side-title a {
	color: #f2f2f2;
	text-decoration: none;
}

.fp-side-title a:hover {
	color: #d71920;
	text-decoration: underline;
}

.fp-empty {
	color: #888;
	font-size: 0.9rem;
}

.misc-2-section {
	margin-bottom: 2rem;
}

@media (max-width: 700px) {
	.fp-side-story {
		flex: 0 1 100%;
		width: 100%;
		max-width: 260px;
	}

	.fp-side-image,
	.fp-side-image img {
		width: 100%;
		max-width: 260px;
		height: auto;
		aspect-ratio: 1 / 1;
	}
}


/* Writers and Crews page */
body.page-template-page-writers-and-crews .inner,
body.page-template-page-writers-and-crews .writers-list,
body.page-template-page-writers-and-crews .entry-title,
body.page-template-page-writers-and-crews .section-title {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 15px;
}

body.page-template-page-writers-and-crews .writers-list,
body.page-template-page-writers-and-crews .writers-list a,
body.page-template-page-writers-and-crews .writers-list .count {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 15px;
}

body.page-template-page-writers-and-crews .entry-title {
	font-size: 1.5rem; /* keep page title a bit larger */
}

body.page-template-page-writers-and-crews .section-title {
	font-size: 16px;
}
