/*
 * Obsidian Gallery — main stylesheet.
 * Design: framed prints on a dark wood board. Cards carry a hairline light
 * border and deep shadow; captions sit on near-black strips, like museum
 * labels. Color/spacing/typography values come from CSS custom properties
 * generated by the Customizer (inc/dynamic-css.php).
 */

/* ------------------------------------------------------------------ */
/* Base & reset                                                        */
/* ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	/* Fallbacks; real values are injected from the Customizer. */
	--og-bg-color: #0b0b0d;
	--og-overlay: rgba(0, 0, 0, 0.35);
	--og-text: #fff;
	--og-text-muted: #b9bcc2;
	--og-heading: #fff;
	--og-link: #7db4ec;
	--og-link-hover: #fff;
	--og-accent: #0066cc;
	--og-button-text: #fff;
	--og-border: #3a3d42;
	--og-card: rgba(10, 10, 12, 0.85);
	--og-header-bg: rgba(0, 0, 0, 0.35);
	--og-hero-overlay: rgba(0, 0, 0, 0.4);
	--og-radius: 10px;
	--og-radius-sm: 6px;
	--og-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
	--og-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--og-font-heading: var(--og-font-body);
	--og-font-size: 16px;
	--og-heading-scale: 1;
	--og-heading-weight: 700;
	--og-heading-tt: none;
	--og-heading-ls: 0;
	--og-content-width: 1240px;
	--og-reading-width: 820px;
	--og-space: 56px;
	--og-header-pad: 14px;
	--og-logo-height: 48px;
	--og-hero-height: 55vh;
	--og-blog-cols: 3;
	--og-shop-cols: 3;
	--og-card-border: rgba(255, 255, 255, 0.09);
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--og-font-body);
	font-size: var(--og-font-size);
	line-height: 1.65;
	color: var(--og-text);
	background-color: var(--og-bg-color);
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	-webkit-font-smoothing: antialiased;
}

/* Readability overlay above the wood texture, below content. */
.og-bg-overlay {
	position: fixed;
	inset: 0;
	background: var(--og-overlay);
	pointer-events: none;
	z-index: 0;
}

#page {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

#content {
	flex: 1 0 auto;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: middle;
}

figure {
	margin: 0 0 1.5em;
}

hr {
	border: 0;
	border-top: 1px solid var(--og-border);
	margin: 2em 0;
}

pre,
code,
kbd,
samp {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.92em;
}

pre {
	overflow: auto;
	padding: 1em;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid var(--og-border);
	border-radius: var(--og-radius-sm);
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
}

th,
td {
	padding: 0.6em 0.8em;
	border: 1px solid var(--og-border);
	text-align: left;
}

blockquote {
	margin: 1.5em 0;
	padding: 0.5em 1.2em;
	border-left: 3px solid var(--og-accent);
	color: var(--og-text-muted);
	font-style: italic;
}

/* ------------------------------------------------------------------ */
/* Typography                                                          */
/* ------------------------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-family: var(--og-font-heading);
	font-weight: var(--og-heading-weight);
	color: var(--og-heading);
	line-height: 1.25;
	text-transform: var(--og-heading-tt);
	letter-spacing: var(--og-heading-ls);
	overflow-wrap: break-word;
}

h1 { font-size: calc(2.1rem * var(--og-heading-scale)); }
h2 { font-size: calc(1.6rem * var(--og-heading-scale)); }
h3 { font-size: calc(1.3rem * var(--og-heading-scale)); }
h4 { font-size: calc(1.12rem * var(--og-heading-scale)); }
h5 { font-size: calc(1rem * var(--og-heading-scale)); }
h6 { font-size: calc(0.9rem * var(--og-heading-scale)); }

p {
	margin: 0 0 1.4em;
}

a {
	color: var(--og-link);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover,
a:focus {
	color: var(--og-link-hover);
}

::selection {
	background: var(--og-accent);
	color: var(--og-button-text);
}

/* ------------------------------------------------------------------ */
/* Layout helpers                                                      */
/* ------------------------------------------------------------------ */

.content-wrap {
	width: 100%;
	max-width: var(--og-content-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.site-main {
	padding-top: var(--og-space);
	padding-bottom: var(--og-space);
}

.og-front-page {
	padding-top: 0;
}

/* Sidebar split */
.content-with-sidebar {
	display: grid;
	gap: 36px;
}

.has-sidebar .content-with-sidebar {
	grid-template-columns: minmax(0, 1fr) 300px;
}

@media (max-width: 920px) {
	.has-sidebar .content-with-sidebar {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* Accessibility                                                       */
/* ------------------------------------------------------------------ */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}

.screen-reader-text:focus {
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	left: 8px;
	top: 8px;
	padding: 12px 18px;
	background: var(--og-accent);
	color: var(--og-button-text);
	z-index: 100000;
	border-radius: var(--og-radius-sm);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--og-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001s !important;
		transition-duration: 0.001s !important;
	}
}

/* ------------------------------------------------------------------ */
/* Buttons & forms                                                     */
/* ------------------------------------------------------------------ */

.button,
button,
input[type="submit"],
input[type="button"] {
	display: inline-block;
	background: var(--og-accent);
	color: var(--og-button-text);
	border: 0;
	border-radius: var(--og-radius-sm);
	padding: 0.65em 1.5em;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	text-align: center;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
	filter: brightness(1.18);
	color: var(--og-button-text);
}

.button:active {
	transform: translateY(1px);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 0.6em 0.9em;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid var(--og-border);
	border-radius: var(--og-radius-sm);
	color: var(--og-text);
	font-family: inherit;
	font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
	color: var(--og-text-muted);
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
}

.search-form .search-field {
	flex: 1;
}

.search-form .search-submit {
	flex: none;
	width: auto;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
	position: relative;
	z-index: 50;
	background: var(--og-header-bg);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.og-header-blur .site-header {
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.og-sticky-header .site-header {
	position: sticky;
	top: 0;
}

.og-header-transparent .site-header {
	position: absolute;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom-color: transparent;
}

.og-header-transparent.og-sticky-header .site-header.is-stuck {
	position: fixed;
	background: var(--og-header-bg);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-top: var(--og-header-pad);
	padding-bottom: var(--og-header-pad);
}

.site-branding {
	flex: none;
	min-width: 0;
}

.custom-logo {
	max-height: var(--og-logo-height);
	width: auto;
}

.site-title {
	font-family: var(--og-font-heading);
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--og-heading);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.site-title:hover {
	color: var(--og-link-hover);
}

.main-navigation {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	min-width: 0;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	display: block;
	padding: 8px 14px;
	color: var(--og-text);
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: var(--og-radius-sm);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	background: rgba(255, 255, 255, 0.1);
	color: var(--og-link-hover);
}

/* Submenus */
.primary-menu ul {
	display: none;
	position: absolute;
	min-width: 200px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: rgba(8, 8, 10, 0.96);
	border: 1px solid var(--og-card-border);
	border-radius: var(--og-radius-sm);
	box-shadow: var(--og-shadow);
	z-index: 60;
}

.primary-menu li {
	position: relative;
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
	display: block;
}

.primary-menu ul ul {
	left: 100%;
	top: 0;
}

/* Header layout: centered */
.og-header-center .header-inner {
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
}

.og-header-center .site-branding {
	flex-basis: 100%;
	display: flex;
	justify-content: center;
}

.og-header-center .main-navigation {
	justify-content: center;
}

.og-header-center .header-actions {
	position: absolute;
	right: 20px;
	top: var(--og-header-pad);
}

.og-header-center .site-header {
	position: relative;
}

.og-header-center.og-sticky-header .site-header {
	position: sticky;
}

/* Header actions / Woo links */
.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.og-header-shop {
	display: flex;
	align-items: center;
	gap: 4px;
}

.og-account-link,
.og-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: var(--og-text);
	border-radius: var(--og-radius-sm);
}

.og-account-link:hover,
.og-cart-link:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--og-link-hover);
}

.og-cart-count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	background: var(--og-accent);
	color: var(--og-button-text);
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	border-radius: 8px;
}

/* Mobile toggle */
.menu-toggle {
	display: none;
	background: transparent;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-toggle-bars {
	display: block;
	width: 20px;
}

.menu-toggle-bars span {
	display: block;
	height: 2px;
	margin: 4px 0;
	background: var(--og-text);
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
	display: none;
}

.mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 16px 20px;
}

.mobile-menu ul ul {
	padding: 0 0 0 16px;
}

.mobile-menu a {
	display: block;
	padding: 12px 4px;
	color: var(--og-text);
	font-size: 1.05rem;
	font-weight: 700;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 920px) {
	.main-navigation {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.mobile-menu.is-open {
		display: block;
	}

	/* Slide-in drawer */
	.og-menu-slide .mobile-menu {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(320px, 85vw);
		background: rgba(8, 8, 10, 0.97);
		border-left: 1px solid var(--og-card-border);
		box-shadow: var(--og-shadow);
		overflow-y: auto;
		padding-top: 64px;
		z-index: 90;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		display: block;
		visibility: hidden;
	}

	.og-menu-slide .mobile-menu.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	/* Full-screen overlay */
	.og-menu-full .mobile-menu {
		position: fixed;
		inset: 0;
		background: rgba(5, 5, 7, 0.97);
		z-index: 90;
		overflow-y: auto;
		padding-top: 80px;
		text-align: center;
		display: none;
	}

	.og-menu-full .mobile-menu.is-open {
		display: block;
	}

	.og-menu-full .mobile-menu a {
		border-bottom: 0;
		font-size: 1.3rem;
	}

	.menu-toggle[aria-expanded="true"] {
		position: relative;
		z-index: 95;
	}
}

/* Minimal header layout: hamburger everywhere */
.og-header-minimal .main-navigation {
	display: none;
}

.og-header-minimal .menu-toggle {
	display: inline-flex;
}

@media (min-width: 921px) {
	.og-header-minimal .mobile-menu {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: 360px;
		background: rgba(8, 8, 10, 0.97);
		border-left: 1px solid var(--og-card-border);
		overflow-y: auto;
		padding-top: 72px;
		z-index: 90;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		display: block;
		visibility: hidden;
	}

	.og-header-minimal .mobile-menu.is-open {
		transform: translateX(0);
		visibility: visible;
	}
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.og-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--og-hero-height);
	background-size: var(--og-hero-bg-size, cover);
	background-position: var(--og-hero-bg-position, center);
	background-repeat: no-repeat;
	background-attachment: scroll; /* fixed breaks on iOS */
	overflow: hidden;
	text-align: center;
}

@media (max-width: 768px) {
	.og-hero {
		min-height: max(240px, 45vw);
		background-size: cover;
		background-position: center top;
	}
}

.og-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.og-hero-overlay {
	position: absolute;
	inset: 0;
	background: var(--og-hero-overlay);
}

.og-hero-inner {
	position: relative;
	z-index: 2;
	padding-top: 48px;
	padding-bottom: 48px;
}

.og-hero-title {
	font-size: clamp(2rem, 5vw, 3.6rem);
	margin-bottom: 0.3em;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.og-hero-subtitle {
	font-size: clamp(1rem, 2vw, 1.3rem);
	color: var(--og-text-muted);
	max-width: 640px;
	margin: 0 auto 1.4em;
}

.og-hero-button {
	font-size: 1.05rem;
	padding: 0.8em 2.2em;
}

/* ------------------------------------------------------------------ */
/* Homepage sections                                                   */
/* ------------------------------------------------------------------ */

.og-home-section {
	padding: calc(var(--og-space) * 0.75) 0;
}

.og-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	padding-bottom: 12px;
}

.og-section-title {
	margin: 0;
}

.og-section-more {
	flex: none;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--og-text-muted);
}

.og-section-more:hover {
	color: var(--og-link-hover);
}

/* ------------------------------------------------------------------ */
/* Grids: uniform, masonry, list                                       */
/* ------------------------------------------------------------------ */

.og-grid {
	display: grid;
	gap: var(--og-blog-gap, 26px);
	grid-template-columns: repeat(var(--og-blog-cols, 3), minmax(0, 1fr));
}

/* og-cols-N: kept for backward compatibility; grid sections now use inline styles */
.og-cols-1  { --og-blog-cols: 1; }
.og-cols-2  { --og-blog-cols: 2; }
.og-cols-3  { --og-blog-cols: 3; }
.og-cols-4  { --og-blog-cols: 4; }
.og-cols-5  { --og-blog-cols: 5; }
.og-cols-6  { --og-blog-cols: 6; }
.og-cols-7  { --og-blog-cols: 7; }
.og-cols-8  { --og-blog-cols: 8; }
.og-cols-9  { --og-blog-cols: 9; }
.og-cols-10 { --og-blog-cols: 10; }

@media (max-width: 1100px) {
	.og-grid { grid-template-columns: repeat(min(var(--og-blog-cols, 3), 3), minmax(0, 1fr)); }
	.og-home-grid { grid-template-columns: repeat(min(var(--og-section-cols, 3), 3), minmax(0, 1fr)) !important; }
}

@media (max-width: 860px) {
	.og-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.og-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.og-home-product-card { max-width: 100% !important; }
}

@media (max-width: 560px) {
	.og-grid { grid-template-columns: 1fr; }
	.og-home-grid { grid-template-columns: 1fr !important; }
	.og-home-products-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* og-home-grid: homepage section grids (galleries/videos/posts). Grid defined
   via inline style in template so Customizer changes apply instantly. */
.og-home-grid {
	display: grid; /* fallback if inline style fails */
	gap: 26px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.og-home-card {
	display: flex;
	flex-direction: column;
	background: var(--og-card);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: var(--og-radius);
	overflow: hidden;
	box-shadow: var(--og-shadow);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.og-home-card:hover {
	border-color: rgba(255, 255, 255, 0.22);
}

.og-home-card .card-media img {
	width: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.og-home-card:hover .card-media img {
	transform: scale(1.04);
}

/* Masonry via CSS columns: light, no JS */
.og-layout-masonry {
	display: block;
	columns: var(--og-blog-cols);
	column-gap: 26px;
}

.og-layout-masonry > article {
	break-inside: avoid;
	margin-bottom: 26px;
}

.og-layout-masonry .card-media img {
	aspect-ratio: auto;
}

@media (max-width: 1100px) {
	.og-layout-masonry { columns: min(var(--og-blog-cols), 3); }
}

@media (max-width: 860px) {
	.og-layout-masonry { columns: 2; }
}

@media (max-width: 560px) {
	.og-layout-masonry { columns: 1; }
}

/* List layout */
.og-layout-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
}

.og-card-list {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
}

.og-card-list .card-media img {
	height: 100%;
	object-fit: cover;
}

@media (max-width: 700px) {
	.og-card-list {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* Cards — the framed-print signature                                  */
/* ------------------------------------------------------------------ */

.entry-card {
	background: var(--og-card);
	border: 1px solid var(--og-card-border);
	border-radius: var(--og-radius);
	box-shadow: var(--og-shadow);
	/* overflow is on .card-media so lift/shadow hover effects work */
}

.og-card {
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-media {
	position: relative;
	overflow: hidden;
	background: #000;
	border-radius: var(--og-radius) var(--og-radius) 0 0;
}

.card-media a {
	display: block;
}

.card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.35s ease, opacity 0.3s ease;
}

/* Image ratio options (archive-wide via body class) */
.og-ratio-square .og-archive-grid .card-media img { aspect-ratio: 1 / 1; }
.og-ratio-portrait .og-archive-grid .card-media img { aspect-ratio: 3 / 4; }
.og-ratio-portrait45 .og-archive-grid .card-media img { aspect-ratio: 4 / 5; }
.og-ratio-tall .og-archive-grid .card-media img { aspect-ratio: 9 / 16; }
.og-ratio-natural .og-archive-grid .card-media img { aspect-ratio: auto; }

.card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.entry-title {
	font-size: calc(1.18rem * var(--og-heading-scale));
	margin: 0;
}

.entry-title a {
	color: var(--og-heading);
}

.entry-title a:hover {
	color: var(--og-link);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 0.84rem;
	color: var(--og-text-muted);
}

.entry-meta a {
	color: var(--og-text-muted);
}

.entry-meta a:hover {
	color: var(--og-link-hover);
}

.meta-sep {
	opacity: 0.6;
}

.entry-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.cat-chip {
	display: inline-block;
	padding: 3px 10px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--og-text);
	background: rgba(255, 255, 255, 0.1);
	border-radius: 99px;
}

.cat-chip:hover {
	background: var(--og-accent);
	color: var(--og-button-text);
}

.entry-summary {
	font-size: 0.94rem;
	color: var(--og-text-muted);
}

.entry-summary p {
	margin: 0;
}

.read-more {
	margin-top: auto;
	font-weight: 700;
	font-size: 0.92rem;
}

/* Play badge for video posts */
.play-badge {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.6);
	border: 2px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	pointer-events: none;
}

.play-badge::after {
	content: "";
	position: absolute;
	left: 55%;
	top: 50%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff;
}

/* Hover effects (body class og-hover-*)
   Selectors target article.entry-card.og-card — both classes on the same element. */
.og-hover-zoom .entry-card:hover .card-media img,
.og-hover-zoom .og-card:hover .card-media img {
	transform: scale(1.06);
}

.og-hover-lift .entry-card:hover,
.og-hover-lift .og-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
	border-color: rgba(255, 255, 255, 0.22);
}

.og-hover-reveal .card-body {
	transition: background 0.22s ease;
}

.og-hover-reveal .entry-card:hover .card-body,
.og-hover-reveal .og-card:hover .card-body {
	background: rgba(255, 255, 255, 0.05);
}

.og-hover-dim .og-grid:hover .entry-card,
.og-hover-dim .og-grid:hover .og-card {
	opacity: 0.55;
	transition: opacity 0.25s ease;
}

.og-hover-dim .og-grid:hover .entry-card:hover,
.og-hover-dim .og-grid:hover .og-card:hover {
	opacity: 1;
}

/* ------------------------------------------------------------------ */
/* Archive headers & pagination                                        */
/* ------------------------------------------------------------------ */

.archive-header {
	margin-bottom: 32px;
}

.archive-header .page-title {
	margin-bottom: 0.2em;
}

.archive-header .page-title span {
	color: var(--og-link);
}

.archive-description {
	color: var(--og-text-muted);
	max-width: 720px;
}

.pagination,
.navigation.pagination {
	margin-top: var(--og-space);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.nav-links .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 9px 14px;
	text-align: center;
	background: rgba(74, 74, 74, 0.9);
	color: #fff;
	font-weight: 700;
	border-radius: var(--og-radius-sm);
}

.nav-links .page-numbers:hover {
	background: rgba(110, 110, 110, 0.9);
	color: #fff;
}

.nav-links .page-numbers.current {
	background: var(--og-accent);
	color: var(--og-button-text);
}

.nav-links .page-numbers.dots {
	background: transparent;
}

.og-loadmore-wrap {
	margin-top: var(--og-space);
	text-align: center;
}

.og-loadmore {
	min-width: 220px;
}

.og-loadmore.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.og-home-pagination {
	margin: 24px 0 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.og-home-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 12px;
	background: #4a4a4a;
	color: #fff;
	border-radius: var(--og-radius-sm);
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease;
}

.og-home-pagination .page-numbers.current {
	background: var(--og-accent);
	color: var(--og-button-text);
}

.og-home-pagination .page-numbers:hover:not(.current) {
	background: #5d5d5d;
}

.og-home-pagination .page-numbers.dots {
	background: transparent;
}

/* Post navigation (prev/next) */
.post-navigation {
	margin-top: 36px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	background: var(--og-card);
	border: 1px solid var(--og-card-border);
	border-radius: var(--og-radius);
	padding: 16px 20px;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--og-text-muted);
}

.post-navigation .nav-title {
	font-weight: 700;
	color: var(--og-heading);
}

@media (max-width: 640px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}
	.post-navigation .nav-next {
		text-align: left;
	}
}

/* ------------------------------------------------------------------ */
/* Single posts & pages                                                */
/* ------------------------------------------------------------------ */

.single-entry,
.page-entry {
	margin: 0 auto;
	max-width: var(--og-reading-width);
}

.single-entry.entry-card,
.page-entry.entry-card {
	padding: clamp(24px, 5vw, 48px);
}

.entry-open {
	max-width: var(--og-reading-width);
}

.single-entry .entry-header,
.page-entry .entry-header {
	margin-bottom: 24px;
}

.single-entry .entry-title,
.page-entry .entry-title {
	font-size: calc(2rem * var(--og-heading-scale));
}

.entry-featured {
	margin: 0 0 28px;
}

.entry-featured img {
	width: var(--og-single-image-scale, 100%);
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: var(--og-radius-sm);
}

.entry-content {
	font-size: 1.02rem;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: rgba(125, 180, 236, 0.45);
	text-underline-offset: 2px;
}

.entry-content img {
	border-radius: var(--og-radius-sm);
}

/* Wide/full alignment support */
.entry-content .alignwide {
	margin-left: calc(50% - min(50vw, var(--og-content-width) / 2) + 20px);
	margin-right: calc(50% - min(50vw, var(--og-content-width) / 2) + 20px);
	width: auto;
	max-width: none;
}

.entry-content .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: auto;
	max-width: none;
}

.single-entry.entry-card .alignwide,
.single-entry.entry-card .alignfull,
.page-entry.entry-card .alignwide,
.page-entry.entry-card .alignfull {
	margin-left: 0;
	margin-right: 0;
}

/* Galleries inside content */
.wp-block-gallery,
.gallery {
	margin-bottom: 1.6em;
}

.gallery {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }

.gallery-item {
	margin: 0;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--og-radius-sm);
}

.wp-block-image figcaption,
.gallery-caption,
.wp-element-caption {
	font-size: 0.85rem;
	color: var(--og-text-muted);
	text-align: center;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-tags a {
	display: inline-block;
	padding: 4px 12px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--og-text);
	background: rgba(255, 255, 255, 0.08);
	border-radius: 99px;
}

.entry-tags a:hover {
	background: var(--og-accent);
	color: var(--og-button-text);
}

.page-links {
	margin: 24px 0;
}

.page-links a,
.page-links > span {
	display: inline-block;
	min-width: 36px;
	margin: 0 4px;
	padding: 6px 10px;
	text-align: center;
	background: rgba(74, 74, 74, 0.9);
	color: #fff;
	border-radius: var(--og-radius-sm);
}

/* ------------------------------------------------------------------ */
/* Comments                                                            */
/* ------------------------------------------------------------------ */

.comments-area {
	max-width: var(--og-reading-width);
	margin: 36px auto 0;
	padding: clamp(20px, 4vw, 36px);
}

.comment-list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.comment-list .comment {
	padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-list .children {
	list-style: none;
	margin: 12px 0 0;
	padding-left: 24px;
	border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.comment-author .avatar {
	border-radius: 50%;
	margin-right: 10px;
	vertical-align: middle;
}

.comment-metadata {
	font-size: 0.82rem;
}

.comment-metadata a {
	color: var(--og-text-muted);
}

.comment-content {
	margin-top: 8px;
}

.reply a {
	font-size: 0.85rem;
	font-weight: 700;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.9rem;
	color: var(--og-text-muted);
}

.comment-form p {
	margin-bottom: 1em;
}

/* ------------------------------------------------------------------ */
/* Widgets & sidebar                                                   */
/* ------------------------------------------------------------------ */

.widget-area .widget,
.footer-column .widget {
	margin-bottom: 28px;
}

.widget-area .widget {
	background: var(--og-card);
	border: 1px solid var(--og-card-border);
	border-radius: var(--og-radius);
	padding: 20px 22px;
}

.widget-title {
	font-size: 1.05rem;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.widget li {
	padding: 6px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget li:last-child {
	border-bottom: 0;
}

.widget a {
	color: var(--og-text);
}

.widget a:hover {
	color: var(--og-link);
}

.tagcloud,
.wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tagcloud a,
.wp-block-tag-cloud a {
	display: inline-block;
	padding: 4px 12px;
	font-size: 0.82rem !important;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 99px;
}

.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
	background: var(--og-accent);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
	margin-top: auto;
	background: rgba(0, 0, 0, 0.6);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 40px 0 28px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-bottom: 28px;
}

@media (max-width: 860px) {
	.footer-widgets {
		grid-template-columns: 1fr;
	}
}

.footer-navigation {
	margin-bottom: 18px;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: var(--og-text-muted);
	font-size: 0.92rem;
	font-weight: 700;
}

.footer-menu a:hover {
	color: var(--og-link-hover);
}

.site-info {
	text-align: center;
	font-size: 0.88rem;
	color: var(--og-text-muted);
}

.site-info a {
	color: var(--og-text);
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Lightbox                                                            */
/* ------------------------------------------------------------------ */

.og-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none; /* JS sets to flex on open */
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	padding: 24px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.og-lightbox.is-visible {
	opacity: 1;
}

.og-lightbox img {
	max-width: 95vw;
	max-height: 84vh;
	object-fit: contain;
	border-radius: var(--og-radius-sm);
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8);
}

.og-lightbox-caption {
	margin-top: 14px;
	max-width: 760px;
	text-align: center;
	color: var(--og-text-muted);
	font-size: 0.92rem;
}

.og-lightbox-close,
.og-lightbox-prev,
.og-lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	font-size: 1.3rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.og-lightbox-close:hover,
.og-lightbox-prev:hover,
.og-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.25);
}

.og-lightbox-close {
	top: 18px;
	right: 18px;
}

.og-lightbox-prev {
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.og-lightbox-next {
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

/* ------------------------------------------------------------------ */
/* WordPress core classes                                              */
/* ------------------------------------------------------------------ */

.alignleft {
	float: left;
	margin: 0.5em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.5em 0 1em 1.5em;
}

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

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.85rem;
	color: var(--og-text-muted);
	text-align: center;
}

.sticky {
	/* required class; sticky posts get an accent edge */
	border-left: 3px solid var(--og-accent);
}

.bypostauthor {
	/* required class */
	position: relative;
}

/* ------------------------------------------------------------------ */
/* Small screens                                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 560px) {
	:root {
		--og-space: 36px;
	}

	.content-wrap {
		padding-left: 14px;
		padding-right: 14px;
	}

	.card-body {
		padding: 14px 16px 16px;
	}

	.single-entry.entry-card,
	.page-entry.entry-card {
		padding: 18px;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile submenu toggles (buttons injected by main.js)                */
/* ------------------------------------------------------------------ */

.submenu-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--og-radius-sm);
	color: var(--og-text);
	width: 34px;
	height: 34px;
	padding: 0;
	margin-left: 10px;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	vertical-align: middle;
}

.mobile-menu .menu-item-has-children {
	position: relative;
}

.mobile-menu .menu-item-has-children > .submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 0;
	top: 6px;
}

.mobile-menu .menu-item-has-children > ul {
	display: none;
}

.mobile-menu .menu-item-has-children.submenu-open > ul {
	display: block;
}

body.og-menu-open {
	overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* AJAX pagination loading state                                       */
/* ------------------------------------------------------------------ */

.og-ajax-loading {
	position: relative;
}

.og-ajax-loading .og-ajax-grid {
	opacity: 0.45;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.og-ajax-loading::after {
	content: "";
	position: absolute;
	top: 40%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: var(--og-accent);
	border-radius: 50%;
	animation: og-spin 0.7s linear infinite;
	z-index: 5;
}

@keyframes og-spin {
	to {
		transform: rotate(360deg);
	}
}
