/*
Theme Name: Desolate Metropolis
Theme URI: https://www.desolatemetropolis.com
Description: Custom Beaver Builder child theme for Desolate Metropolis with a dark, atmospheric aesthetic for abandoned photography.
Author: Dave O. (Developed by pluginslab)
Author URI: https://www.desolatemetropolis.com
Template: bb-theme
Version: 1.2.0
*/

/* ==========================================
   CSS Variables for Shared Values
========================================== */
:root {
	/* --- Official Desolate Metropolis Style Guide 2026 --- */

	/* Backgrounds */
	--dm-bg-base: #2A3F44;     /* Background */
	--dm-bg-lighter: #455155;  /* Fade */
	--dm-bg-darker: #1e2f33;   /* Deeper shade for header/footer */

	/* Palette */
	--dm-medium: #317D89;      /* Medium teal */
	--dm-light: #AAB2B4;       /* Light grey */
	--dm-highlight: #D2F3F9;   /* Highlight / ice blue */

	/* Accent */
	--dm-accent: #9E7E26;      /* Gold */
	--dm-accent-hover: #b89330; /* Gold hover */

	/* Text */
	--dm-text-main: #D2F3F9;   /* Highlight colour for main text */
	--dm-text-muted: #AAB2B4;  /* Light grey for muted text */

	/* Layout */
	--dm-content-width: 1200px;
}


/* ==========================================
   Post Cards — background only
   (text/link colours follow Customizer values)
========================================== */
.fl-post-grid-post,
.fl-post-grid-post .fl-post-grid-content {
	background-color: #455155 !important;
	border: none !important;
}

/* ==========================================
   Header & Navigation
========================================== */
/* Red accent border — not available in Customizer */
.fl-page-header {
	border-bottom: 2px solid var(--dm-accent);
}

/* Megamenu dropdown background */
.fl-menu .sub-menu,
.fl-menu .children {
	background-color: #455155 !important;
}

/* Keep submenu chevron as > at all levels — prevent rotate flip */
button.fl-menu-toggle {
	transform: none !important;
}

/* ==========================================
   Helper Classes
========================================== */
/* Force full-width for panorama images */
.pano-full-width {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

/* External Links Box */
.external-links-box {
	background: var(--dm-bg-darker);
	border-left: 4px solid var(--dm-accent);
	padding: 20px;
	margin: 30px 0;
	border-radius: 0 4px 4px 0;
}

.external-links-box h3 {
	margin-top: 0;
	font-size: 18px;
	margin-bottom: 15px;
}

.external-links-box ul {
	margin: 0;
	padding-left: 20px;
}

.external-links-box li {
	margin-bottom: 10px;
}

/* ==========================================
   Single Post — Panorama Breakout
========================================== */
/* Full-viewport panoramas, escaping the 60% column */
.single-post .pano-full-width {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: none;
}

.single-post .pano-full-width img {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================
   Single Post — Meow Gallery Dark Overrides
========================================== */
.single-post .dm-custom-gallery {
	margin-bottom: 0;
}

/* Ensure gallery tiles blend with the dark bg */
.single-post .mgl-gallery {
	background: transparent !important;
}

.single-post .mgl-gallery .mgl-item {
	border: 2px solid rgba(255,255,255,0.05);
	transition: border-color 0.3s;
}

.single-post .mgl-gallery .mgl-item:hover {
	border-color: var(--dm-accent);
}

/* Captions inside gallery */
.single-post .mgl-gallery figcaption {
	background: rgba(0,0,0,0.75);
	color: var(--dm-text-muted);
	font-size: 13px;
	font-family: 'Slabo 27px', serif;
	padding: 6px 10px;
}


/* ==========================================
   Single Post — Body Text Readability
========================================== */
.single-post .fl-post-content {
	line-height: 1.8;
	color: var(--dm-text-main);
}

.single-post .fl-post-content p {
	margin-bottom: 1.5em;
}

.single-post .fl-post-content a {
	color: var(--dm-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.single-post .fl-post-content a:hover {
	opacity: 0.8;
}

/* ==========================================
   Single Post — Content Splitting
   Apply these classes to BB Post Content modules
   to show only text or only images per column.
========================================== */
/* Hide all images/galleries — text column */
.pl-hide-images img,
.pl-hide-images figure,
.pl-hide-images .mgl-root,
.pl-hide-images .pano-full-width {
	display: none !important;
}

/* Hide all text — images column */
.pl-hide-description p,
.pl-hide-description h1,
.pl-hide-description h2,
.pl-hide-description h3,
.pl-hide-description h4,
.pl-hide-description h5,
.pl-hide-description h6,
.pl-hide-description ul,
.pl-hide-description ol,
.pl-hide-description blockquote,
.pl-hide-description table {
	display: none !important;
}

/* Keep paragraphs that contain images */
.pl-hide-description p:has(img),
.pl-hide-description p:has(picture) {
	display: block !important;
}
