/*
Theme Name: GoGayArizona Responsive
Description: A Premium WordPress theme by Tiger Studios, Inc. Updated for modern WordPress standards and responsive layouts.
Author: Tiger Studios, Inc.
Author URI: http://www.tiger-studios.com
Version: 0.2.26
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gayarizona
*/

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

html { -webkit-text-size-adjust: 100%; font-size: 16px; }

body {
	text-align: center;
	/* Match original theme (.9em) while keeping responsive behavior */
	font-size: 0.9em;
	font-family: Arial, Helvetica, sans-serif;
	background:url(/wp-content/themes/gayarizona/images/bg.jpg) top center;
	background-color: #012942;
	color: #535353;
	margin: 0;
	padding: 0;
}

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

a { color: #457f47; }
a:hover { color: #dc802c; }

p { line-height: 160%; color: #535353; }

.notop { margin-top: 0; }
.clear { clear: both; }

/* WordPress accessibility helpers */
.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;
}
.screen-reader-text:focus {
	background-color: #fff;
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 10px 12px;
	top: 8px;
	width: auto;
	z-index: 100000;
	box-shadow: 0 0 0 2px #415fa8;
}

/* --------------------------------------------------------------------------
   Layout
-------------------------------------------------------------------------- */
#container {
	/* Desktop layout is designed for a 970px site width */
	max-width: 970px;
	width: 100%;
	margin: 0 auto;
	text-align: left;
}

#sitewidth {
	clear: both;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	background-color: #fff;
	/* Prevent fixed-width ads/iframes from expanding the page */
	overflow-x: hidden;
}

#content {
	width: 100%;
	background-color: #fff;
	padding: 0 20px 20px 20px;
}

#content .entry-content { min-height: 700px; }

/* Reduce extra vertical gap between PromoSlider banners and EDS directory output */
.entry-content center + br,
.entry-content .promo_slider_wrapper + br {
	display: none !important;
}

.entry-content center + br + .eds-directory,
.entry-content center + br + .eds-events,
.entry-content .promo_slider_wrapper + br + .eds-directory,
.entry-content .promo_slider_wrapper + br + .eds-events {
	margin-top: 0 !important;
}

#content p { margin-top: 0; }

#content .left {
	width: 440px;
	min-height: 700px;
	float: left;
	margin-top: 20px;
	padding-right: 20px;
	border-right: 1px solid #bbecf1;
}
#content .right {
	width: 440px;
	float: right;
	margin-top: 20px;
	padding-left: 20px;
}
#content .left img,
#content .right img {
	float: right;
	text-align: right;
	margin-left: 20px;
	margin-top: 10px;
}

#content .blogtextarea {
	width: 680px;
	min-height: 700px;
	padding-right: 40px;
	border-right: 1px solid #bbecf1;
}
#content .blogtextarea h2 { margin-top: 20px; }
#content .blogtextarea .date { font-weight: bold; margin: 0 0 10px 0; }

#content .blogsidebar { padding: 10px; width: 160px; }
#content .blogsidebar ul { list-style: none; margin: 0; padding: 0; }
#content .blogsidebar ul li { padding-bottom: 10px; }

.entry-meta, .entry-utility { display: none; }

/* --------------------------------------------------------------------------
   Header
-------------------------------------------------------------------------- */
#logo {
	width: 380px;
	height: 133px;
	background: url(images/logo.png) no-repeat top center;
	float: left;
}

#banners {
	width: 468px;
	max-width: 100%;
	height: auto;
	float: right;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

/* Ads / PromoSlider: prevent fixed-width sliders from overflowing, but DO NOT
   force container heights to auto (PromoSlider often uses absolutely-positioned
   panels; collapsing the container makes banners disappear). */
.promo_slider_wrapper,
.promo_slider_container,
.promo_slider_slide,
.promo_slider,
.promo_slider_background_image {
	max-width: 100% !important;
}

.promo_slider img,
.promo_slider_wrapper img,
.promo_slider_container img,
.promo_slider_background_image img {
	max-width: 100% !important;
	height: auto !important;
}

/* If ads inject fixed-width wrappers, keep them from forcing page width */
.textwidget,
.widget,
.widget_text,
.widget-area {
	overflow-x: hidden;
}

.textwidget table,
.widget table {
	max-width: 100% !important;
}

#topNav { clear: both; width: 100%; min-height: 15px; position: relative; top: 0; color: #000; padding: 0 10px 6px 10px; }
#topNav ul { list-style: none; margin: 0; padding: 0; }
#topNav li { float: left; display: block; font-size: .9em; }
#topNav a { color: #000; text-decoration: none; padding: 0 4px; }
#topNav a:hover { color: #b71e2c; text-decoration: none; }
#topNav .rightside { float: right; }
#topNav .topnav-right { white-space: nowrap; }

/* Search area (currently hidden in theme markup) */
#searchform { position: relative; float: right; margin: 15px 0 0; width: 300px; height: 20px; }
#searchform label { display: none; }
#searchsubmit {
	cursor: pointer;
	background-color: #535353;
	border: 0;
	color: #a3a3a3;
	height: 20px;
}
input#s {
	width: 200px;
	height: 18px;
	padding: 2px 3px 0 3px;
	float: left;
	text-align: left;
	font-size: .85em;
	border: 0;
	margin-right: 5px;
}

/* --------------------------------------------------------------------------
   Primary Navigation
-------------------------------------------------------------------------- */
.site-navigation {
	position: relative;
	z-index: 10000;
	background-color: #d0d8da;
}
.site-navigation::after { content: ""; display: block; clear: both; }
#nav::after { content: ""; display: block; clear: both; }

.menu-toggle {
	display: none;
	width: 100%;
	border: 0;
	background: #535353;
	color: #fff;
	padding: 12px 14px;
	font-weight: bold;
	cursor: pointer;
	text-align: left;
}

#nav, #nav ul {
	clear: both;
	margin: 0;
	padding: 0;
	width: 100%;
	list-style: none;
	position: relative;
}

#nav a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-size: 1em;
	font-weight: bold;
	text-align: center;
}
#nav > li > a {
	/* Keep region names on one line on desktop */
	white-space: nowrap;
	font-size: 0.92em;
}
#nav a:hover { color: #16253b; }

#nav > li {
	float: left;
	display: block;
	width: 16.6667%;
	min-width: 140px;
	height: 26px;
	padding-top: 5px;
}

#nav li ul {
	position: absolute;
	background: #63522a;
	margin: 0;
	padding: 0;
	width: 220px;
	left: -999em;
	opacity: 0.95;
	filter: alpha(opacity=95);
}

#nav li li { float: none; width: 100%; display: block; font-size: .85em; }

#nav li ul a {
	width: 100%;
	height: auto;
	color: #000;
	font-weight: normal;
	padding: 8px 10px;
	text-align: left;
}
#nav .top { margin-top: -4px; }
#nav .bottom { margin-bottom: 4px; }

#nav li:hover ul,
#nav li.sfhover ul { left: auto; }

#nav .red ul { background-color: #f4dde0; border: 2px solid #b71e2c; }
#nav .red { background-color: #b71e2c; }
#nav li.red ul a:hover { color: #fff; background-color: #b71e2c; }

#nav .orange ul { background-color: #faece0; border: 2px solid #dc802c; }
#nav .orange { background-color: #dc802c; }
#nav li.orange ul a:hover { color: #fff; background-color: #dc802c; }

#nav .yellow ul { background-color: #fdf9e1; border: 2px solid #f0d736; }
#nav .yellow { background-color: #f0d736; }
#nav li.yellow ul a:hover { color: #fff; background-color: #f0d736; }

#nav .green ul { background-color: #e3ece4; border: 2px solid #457f47; }
#nav .green { background-color: #457f47; }
#nav li.green ul a:hover { color: #fff; background-color: #457f47; }

#nav .blue ul { background-color: #e3e7f2; border: 2px solid #415fa8; }
#nav .blue { background-color: #415fa8; }
#nav li.blue ul a:hover { color: #fff; background-color: #415fa8; }

#nav .purple ul { background-color: #e6e4f0; border: 2px solid #58499a; width: 220px; font-size: 1.1em; margin-top: 4px; }
#nav .purple { background-color: #58499a; font-size: .9em; }
#nav li.purple ul a:hover { color: #fff; background-color: #58499a; }

/* --------------------------------------------------------------------------
   Home Page Styles
-------------------------------------------------------------------------- */
#hybrid-slideshow2 {
	width: 100%;
	max-width: 970px;
	height: 344px;
	overflow: hidden;
	margin: 0 auto;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
}

#graybox { clear: both; width: 100%; margin: 0; padding: 0; border-collapse: collapse; }
#graybox td { width: 25%; margin: 0; padding: 0; background-color: #f2f2f2; border-right: 1px solid #fff; vertical-align: top; }
#graybox td:last-child { border: 0; }

#graybox h1 { width: auto; height: 23px; color: #fff; font-size: 1.1em; background-color: #535353; text-align: center; margin: 0; padding-top: 3px; }

/* Latest Guide header injected on phone (JS). Keep it flush in the Pride Guide cell. */
#graybox #prideguide .latest-guide-title { margin: 0 !important; }

#graybox td p { padding: 0 20px; }

/* "Are You Listed?" (desktop: 180x360; mobile: alternate image) */
#graybox #advertise { text-align: center; }
#graybox #advertise .areyoulisted-wrap { margin: 10px auto 0; }
#graybox #advertise .areyoulisted-img { display: block; margin: 10px auto 0; max-width: 100%; height: auto; }
/* Default: desktop image only (avoid specificity clash with .areyoulisted-img rule) */
#graybox #advertise .areyoulisted-desktop { display: block; }
#graybox #advertise .areyoulisted-mobile { display: none; }

#graybox #partner { text-align: center; }
#graybox #partner .featured-partners { margin: 0 auto; }
.featured-mobile { display: none; }
#graybox #partner .promo_slider_wrapper {
	/* Featured Partner slider: add breathing room and keep it centered */
	margin: 10px auto 0 !important;
	display: inline-block;
}

/* Center the PromoSlider "background" image block (plugin output) */
#graybox #partner .promo_slider_background_image {
	background-position: center center !important;
	background-size: contain !important;
	margin: 0 auto !important;
}

#graybox a { color: #b71e2c; }
#graybox a:hover { color: #415fa8; }

#graybox .more a { color: #415fa8; font-size: 9pt; }
#graybox .more a:hover { color: #b71e2c; }

#happening .title { font-size: 12pt; font-weight: bold; padding: 10px 20px 0 20px; }
#happening .date { font-size: 10pt; font-weight: bold; color: #000; padding: 0 20px; }

#homepage { clear: both; width: 100%; margin: 10px 0 0; padding: 0; border-collapse: collapse; }

#newsalert { width: 304px; padding-left: 20px; font-size: .85em; padding-bottom: 20px; }
#newsalert h2 { color: #415fa8; font-size: 1.3em; text-align: center; border-bottom: 1px solid #415fa8; }
#newsalert a { color: #415fa8; }
#newsalert a:hover { color: #000; }





#prideguide .sociable { width: 250px; margin: 0; padding: 0; margin-left: 44px; }
#prideguide .prideguidecover { width: 235px; height: 366px; background: url(images/2026prideguidecover.jpg) no-repeat center center; background-size: contain; margin: 10px auto; }
#prideguide strong, #prideguide strong a { color: #b71e2c; font-size: 1.1em; text-decoration: none; }
#prideguide strong a:hover { color: #000; text-decoration: underline; }
#prideguide div { font-size: .85em; padding-top: 5px; }

#facebook { width: 324px; text-align: center; }
#facebook iframe { display: block; margin: 0 auto; }

.facebook-mobile { display: none; }

/* --------------------------------------------------------------------------
   Footer
-------------------------------------------------------------------------- */
#footer {
	clear: both;
	background: url(images/footer.png) no-repeat 0 0;
	background-size: cover;
	width: 100%;
	min-height: 160px;
	padding: 15px 10px 20px 10px;
	margin-top: 3px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: flex-start;
}

#sistersites { flex: 2 1 420px; font-size: .9em; text-align: center; }
#sistersites strong { color: #fff; margin-right: 20px; }
#sistersites .banners { clear: both; }
#sistersites .banners img { padding-top: 5px; }
#sistersites .leftside, #sistersites .rightside { width: 220px; display: inline-block; vertical-align: top; }

#islandlinks { flex: 1 1 200px; color: #fff; font-size: .85em; line-height: 160%; }
#islandlinks strong { color: #fff; }
#islandlinks div { margin-left: 10px; }

#otherlinks { flex: 1 1 220px; color: #fff; font-size: .85em; line-height: 170%; }
#otherlinks div { font-size: .8em; margin-top: 20px; line-height: 130%; }

#footer a { color: #fff; }
#footer a:hover { color: #f0d736; }

/* --------------------------------------------------------------------------
   Typography
-------------------------------------------------------------------------- */
H1 {
	color: #415fa8;
	font-size: 2.3em;
	line-height: 120%;
	margin: 10px 0 5px 0;
	padding: 0;
}

H2 {
	color: #457f47;
	font-size: 1.7em;
	line-height: 120%;
	margin: 0 0 10px 0;
}

H3 {
	color: #58499a;
	font-size: 1.5em;
	line-height: 120%;
	margin: 0 0 10px 0;
}

H4 {
	color: #000;
	font-size: 1.25em;
	line-height: 120%;
	margin: 14px 0 0 0;
	padding: 0;
}

/* --------------------------------------------------------------------------
   WordPress / content helpers
-------------------------------------------------------------------------- */
#comments { border-top: 1px solid #bbecf1; padding-top: 5px; margin-top: 30px; }
#comments textarea, #comments input { margin-left: 10px; border: 1px solid #999; }
#comments .form-allowed-tags { display: none; }

#directory { float: right; width: 300px; margin-left: 20px; background-color: #f2f2f2; }
#directory h4 { height: 23px; color: #fff; font-size: 1.1em; background-color: #535353; text-align: center; margin: 0; padding-top: 3px; }
#directory li { padding-bottom: 5px; }

.navigation { font-size: 8pt; }
.alignright { float: right; margin-left: 20px; }
.alignleft { float: left; margin-right: 20px; }
.wp-caption { font-size: 9pt; text-align: center; }
.mapiframe { float: right; margin: 0; }

/* New CSS FOR NEW SITE -MH */
.thumbs { padding: 25px 25px 0 25px; }
.az_cat_headers { display: block; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */
@media (max-width: 980px) {
	body { text-align: left; }

	#container { padding: 0 10px; }

	#logo { float: none; margin: 0 auto; }
	#banners {
		float: none;
		margin: 10px auto 0;
		width: 100%;
		max-width: 468px;
		justify-content: center;
	}

	/* Constrain common fixed-width banner containers so they scale instead of expanding the page.
	   (Exclude PromoSlider wrappers; overriding their inline widths can collapse/hide banners on mobile.) */
	table[width="728"], table[width="970"], table[width="468"],
	div[style*="width:728"]:not(.promo_slider_wrapper):not(.promo_slider):not(.promo_slider_container):not(.promo_slider_slide):not(.promo_slider_background_image), div[style*="width: 728"]:not(.promo_slider_wrapper):not(.promo_slider):not(.promo_slider_container):not(.promo_slider_slide):not(.promo_slider_background_image),
	div[style*="width:468"]:not(.promo_slider_wrapper):not(.promo_slider):not(.promo_slider_container):not(.promo_slider_slide):not(.promo_slider_background_image), div[style*="width: 468"]:not(.promo_slider_wrapper):not(.promo_slider):not(.promo_slider_container):not(.promo_slider_slide):not(.promo_slider_background_image),
	div[style*="width:970"]:not(.promo_slider_wrapper):not(.promo_slider):not(.promo_slider_container):not(.promo_slider_slide):not(.promo_slider_background_image), div[style*="width: 970"]:not(.promo_slider_wrapper):not(.promo_slider):not(.promo_slider_container):not(.promo_slider_slide):not(.promo_slider_background_image) {
		max-width: 100% !important;
		width: 100% !important;
	}
	iframe[width="728"], iframe[width="970"], iframe[width="468"] {
		max-width: 100% !important;
		width: 100% !important;
	}

	/* Stack all legacy layout tables (content/blog/columns) on smaller screens */
	#content, #content tbody, #content tr, #content td {
		display: block;
		width: 100% !important;
	}
	#content .blogtextarea {
		width: 100%;
		min-height: 0;
		padding-right: 0;
		border-right: 0;
	}
	#content .blogsidebar {
		width: 100%;
		padding: 12px 0 0;
	}

	/* Directory box: keep it from breaking mobile layout (JS also moves it to the bottom). */
	#directory {
		float: none;
		width: auto;
		max-width: 100%;
		margin: 15px auto 0;
	}
	#directory h4 { height: auto; padding: 8px 10px; }
	#directory ul { margin: 0; padding: 10px 14px; }
	#directory li { padding-bottom: 8px; }

	/* Content spacing on mobile: many legacy pages use floated images and blank "&nbsp;" paragraphs
	   for layout/spacing. Floats can squeeze text into narrow columns, and the blank paragraphs
	   can add large gaps. JS removes the blank paragraphs; these rules make images behave nicely. */
	#content .entry-content .alignleft,
	#content .entry-content .alignright {
		float: none !important;
		display: block;
		margin: 10px auto !important;
	}
	#content .entry-content img.alignleft,
	#content .entry-content img.alignright,
	#content .entry-content img {
		max-width: 100% !important;
		height: auto !important;
	}
	#content .entry-content img[style*="float:left"],
	#content .entry-content img[style*="float: left"],
	#content .entry-content img[style*="float:right"],
	#content .entry-content img[style*="float: right"] {
		float: none !important;
		display: block !important;
		margin: 10px auto !important;
	}


	/* Listing pages (eDirectory listing blocks): content often injects a small logo image into the <h4>
	   like: <h4><a><img style="margin:10px 0 0 20px; display:inline;"></a>Listing Title</h4>
	   On mobile we want that image stacked ABOVE the title and centered. */
	#content .entry-content h4 img[style*="display:inline"],
	#content .entry-content h4 img[style*="display: inline"] {
		display: block !important;
		float: none !important;
		margin: 10px auto 8px auto !important; /* override inline left margin */
		height: auto !important;
		max-width: 100% !important;
	}

	/* If the browser supports :has(), also center the title/details for these listing blocks. */
	@supports selector(h4:has(img)) {
		#content .entry-content h4:has(img[style*="display:inline"]),
		#content .entry-content h4:has(img[style*="display: inline"]) {
			text-align: center !important;
		}
		#content .entry-content h4:has(img[style*="display:inline"]) + p,
		#content .entry-content h4:has(img[style*="display: inline"]) + p {
			text-align: center !important;
		}
	}


	#content .entry-content h1,
	#content .entry-content h2,
	#content .entry-content h3,
	#content .entry-content h4,
	#content .entry-content h5,
	#content .entry-content h6 {
		margin-top: 18px;
		margin-bottom: 10px;
	}

	#topNav { top: 0; }
	#topNav ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; }
	#topNav li { float: none; }
	#topNav .rightside { float: none; }

		#topNav li.topnav-right { width: 100%; text-align: center; }
		#topNav li.topnav-right a { white-space: nowrap; }

	.menu-toggle { display: block; }

	/* Mobile nav: collapsed by default, opened by body.nav-open */
	#nav { display: none; }
	body.nav-open #nav { display: block; }

	#nav > li { float: none; width: 100%; min-width: 0; height: auto; padding: 0; }
	#nav > li > a { text-align: left; padding: 12px 14px; }

	/* Preserve the full rainbow on mobile: show the red segment before the first item
	   and the purple segment after the last item (these are empty <li> elements). */
	#nav > li.red,
	#nav > li.purple {
		height: 10px !important;
		min-height: 10px !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
	}
	#nav > li.red::before,
	#nav > li.purple::before {
		content: "";
		display: block;
		height: 10px;
	}

	#nav li ul {
		position: static;
		width: 100%;
		left: auto;
		display: none;
		border-left: 3px solid rgba(0,0,0,0.12);
		margin: 0;
	}
	#nav li.open > ul { display: block; }
	#nav li ul a { padding: 10px 14px; }

	/* Convert homepage tables into stacked blocks */
		#graybox, #graybox tbody, #graybox tr, #graybox td,
		#homepage, #homepage tbody, #homepage tr, #homepage td {
			display: block;
			width: 100% !important;
		}

/* EDS_MOBILE_ASSETS_START */
/* Use mobile assets/blocks for responsive layout (covers phone portrait + landscape + small tablets) */
.areyoulisted-desktop, .featured-desktop, .facebook-desktop { display: none !important; }
.areyoulisted-mobile, .featured-mobile, .facebook-mobile { display: block !important; }

/* "Are You Listed?" mobile image sizing (target: ~90% width of screen) */
#graybox #advertise .areyoulisted-mobile {
	width: 90% !important;
	max-width: 520px !important;
	height: auto !important;
	margin: 10px auto 0 !important;
	display: block !important;
}

/* Featured Partners: make mobile promoslider match the 900x500 "Are You Listed?" sizing */
#graybox #partner .featured-partners.featured-mobile{
	margin: 10px auto 0 !important;
	padding: 0 !important;
	text-align: center;
}

/* Hide (empty) nav strip so it doesn't reserve space */
#graybox #partner .featured-partners.featured-mobile .promo_slider_nav,
#graybox #partner .featured-partners.featured-mobile .tabbed_ps_nav,
#graybox #partner .featured-partners.featured-mobile .slider_selections{
	display: none !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Force the wrapper to the same width as the "Are You Listed?" image */
#graybox #partner .featured-partners.featured-mobile .promo_slider_wrapper{
	display: block !important;
	width: 90% !important;
	max-width: 520px !important;
	margin: 10px auto 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}

/* Override inline width/height set by the shortcode */
#graybox #partner .featured-partners.featured-mobile .promo_slider.auto_advance{
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 900 / 500;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
	line-height: 0;
}

#graybox #partner .featured-partners.featured-mobile .promo_slider.auto_advance .panel,
#graybox #partner .featured-partners.featured-mobile .promo_slider_background_image{
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

#graybox #partner .featured-partners.featured-mobile .promo_slider_background_image,
#graybox #partner .featured-partners.featured-mobile .promo_slider_background_image a,
#graybox #partner .featured-partners.featured-mobile .promo_slider_background_image img{
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

#graybox #partner .featured-partners.featured-mobile .promo_slider_background_image img{
	height: 100% !important;
	object-fit: cover;
}

/* Remove extra whitespace below slider */
#graybox #partner .featured-partners.featured-mobile .clear{
	display: none !important;
	height: 0 !important;
	line-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
/* EDS_MOBILE_ASSETS_END */


		#graybox td { border-right: 0; border-bottom: 1px solid #fff; padding-bottom: 12px; }
		#homepage td { padding-left: 0; padding-right: 0; }

		/* Mobile order: Pride Guide → Facebook → News Alert */
		#homepage tr { display: flex; flex-direction: column; }
		#prideguide { order: 1; width: 100%; padding-left: 0; padding-bottom: 18px; }
		
/* Pride Guide cell alignment + Latest Guide header */
#graybox #prideguide { text-align: center !important; }
#graybox #prideguide strong,
#graybox #prideguide div { display: block; text-align: center !important; }

/* Ensure the injected mobile header matches other #graybox h1 bars */
#graybox #prideguide .latest-guide-title {
  display: block;
  width: auto;
  height: 23px;
  line-height: 23px;
  color: #fff;
  font-size: 1.1em;
  background-color: #535353;
  text-align: center !important;
  margin: 0;
  padding: 3px 0 0 0;
  border-bottom: 1px solid #fff;
  box-sizing: border-box;
}

#facebook   { order: 2; width: 100%; padding-left: 0; margin-top: 18px; }
		#newsalert  { order: 3; width: 100%; padding-left: 0; margin-top: 18px; }

		/* Facebook likebox: keep centered and never overflow the viewport */
		#facebook .facebook-mobile {
			width: 90%;
			max-width: 340px;
			margin: 0 auto;
		}
		#facebook .facebook-mobile iframe {
			display: block;
			width: 100% !important;
			max-width: 100% !important;
		}

/* Ensure PromoSlider banners remain visible on phones/tablets */
	#banners { display: block; text-align: center; }
	#banners .promo_slider_wrapper,
	#banners .promo_slider_container,
	#banners .promo_slider {
		display: block !important;
		margin: 0 auto !important;
	}
	/* Featured Partner: keep visible + centered when homepage tables stack */
	#graybox #partner .promo_slider_wrapper {
		display: inline-block !important;
		margin: 10px auto 0 !important;
	}
	#graybox #partner .promo_slider {
		display: block !important;
		margin: 0 auto !important;
	}

	/* FeedWind / embedded iframes: center them in the News Alert block */
	#newsalert iframe { display: block; margin: 0 auto; }

	#content { padding-left: 14px; padding-right: 14px; }
	#content .left,
	#content .right {
		float: none;
		width: 100%;
		padding: 0;
		border: 0;
		margin-top: 16px;
	}

	#content .left img,
	#content .right img {
		float: none;
		margin: 10px 0;
	}

	#footer { background-position: center top; }
	#sistersites .leftside, #sistersites .rightside { width: 100%; }


/* BLOG_MOBILE_FIXES_START */
/* Blog layout: make main content fill width and prevent squished/elongated images on mobile */
table, tbody, tr, td { max-width: 100%; }
td.blogtextarea {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}
/* If the blog sidebar exists, stack it below */
td.blogside, td.blogsidebar, td.recentarticles, td.archives, td.blogright {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	margin-top: 16px;
}
/* Force media inside blog content to be responsive without distortion */
td.blogtextarea img,
td.blogtextarea iframe,
td.blogtextarea embed,
td.blogtextarea object,
td.blogtextarea video {
	max-width: 100% !important;
	height: auto !important;
}
td.blogtextarea a img { max-width: 100% !important; height: auto !important; }
/* Prevent fixed-width elements from forcing horizontal scroll */
td.blogtextarea * {
	max-width: 100%;
	box-sizing: border-box;
}
/* BLOG_MOBILE_FIXES_END */


}

@media (max-width: 520px) {
	/* Allow horizontal scroll on very narrow screens rather than clipping content */
	#sitewidth{ overflow-x:auto; -webkit-overflow-scrolling:touch; }

	H1 { font-size: 1.8em; }
	H2 { font-size: 1.4em; }
	H3 { font-size: 1.25em; }
	H4 { font-size: 1.1em; }

	/* Hybrid slideshow: remove the fixed desktop height to avoid big gaps on phones */
	#hybrid-slideshow2 {
		height: auto !important;
		aspect-ratio: 970 / 344;
	}

	/* Common fixed-size ad assets: prevent overflow on phones */
	img[width="728"], img[width="970"], img[width="468"],
	iframe[width="728"], iframe[width="970"], iframe[width="468"],
	object[width="728"], object[width="970"], object[width="468"],
	embed[width="728"], embed[width="970"], embed[width="468"] {
		max-width: 100% !important;
		width: 100% !important;
		height: auto !important;
	}
	/* If banners are wrapped in fixed-width tables, constrain them too */
	table[width="728"], table[width="970"], table[width="468"] {
		max-width: 100% !important;
		width: 100% !important;
	}
	/* Home: tighten the small FeedWind attribution spacing on phones */
	#newsalert { padding-bottom: 12px; }
	#newsalert > div[style*="font-size:10px"] { margin-top: -6px !important; }

	/* Home: use mobile-specific images/slider + wider Facebook likebox */
	.areyoulisted-desktop,
	.featured-desktop,
	.facebook-desktop {
		display: none !important;
	}
	.areyoulisted-mobile,
	.featured-mobile,
	.facebook-mobile {
		display: block !important;
	}

	#graybox #advertise .areyoulisted-mobile {
		width: 90%;
		max-width: 520px;
		height: auto;
		margin: 10px auto 0;
	}

	#graybox #partner .featured-mobile .promo_slider_wrapper {
		display: block !important;
		margin: 10px auto 0 !important;
	}
	#graybox #partner .featured-mobile .promo_slider_wrapper,
	#graybox #partner .featured-mobile .promo_slider_container,
	#graybox #partner .featured-mobile .promo_slider {
		width: 90% !important;
		max-width: 520px !important;
		/* Keep the mobile featured slider proportional (900x500 assets scaled down) */
		aspect-ratio: 900 / 500;
		height: auto !important;
	}

	/* Facebook likebox: tighten the max width slightly on smaller phones */
	#facebook .facebook-mobile { max-width: 340px; }

	/* Make the Pride Guide cover image larger on phones */
	#prideguide .prideguidecover {
		width: 90% !important;
		max-width: 420px;
		height: auto !important;
		aspect-ratio: 235 / 366;
		background-size: contain !important;
		background-position: center center !important;
	}

	/* Make the "Menu" label more readable on phones */
	.menu-toggle__label { font-size: 20px; }



/* === Mobile: Featured Partners (mobile-featured promoslider) match 900x500 "Are You Listed?" sizing === */
.featured-partners.featured-mobile{
    margin: 10px auto 0 !important;
    padding: 0 !important;
    text-align: center;
}

/* Hide the (empty) nav strip so it doesn't reserve vertical space */
.featured-partners.featured-mobile .promo_slider_nav,
.featured-partners.featured-mobile .tabbed_ps_nav,
.featured-partners.featured-mobile .slider_selections{
    display:none !important;
    height:0 !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
}

/* Constrain the overall slider wrapper to ~90% width like the "Are You Listed?" image */
.featured-partners.featured-mobile .promo_slider_wrapper{
    width: 90% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Override inline width/height on the slider element */
.featured-partners.featured-mobile .promo_slider.auto_advance{
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 900 / 500;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.featured-partners.featured-mobile .promo_slider.auto_advance .panel,
.featured-partners.featured-mobile .promo_slider_background_image{
    width:100% !important;
    height:100% !important;
}

.featured-partners.featured-mobile .promo_slider_background_image,
.featured-partners.featured-mobile .promo_slider_background_image a,
.featured-partners.featured-mobile .promo_slider_background_image img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
}

.featured-partners.featured-mobile .promo_slider_background_image img{
    height:100% !important;
    object-fit:cover;
}

/* Remove extra whitespace under the slider */
.featured-partners.featured-mobile .clear{
    height:0 !important;
    line-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    display:block;
}

/* --- Mobile: keep wide page-builder tables from clipping --- */
#content .entry-content table.alignleft{
    width:100% !important;
    float:none !important;
    margin:0 auto !important;
}
#content .entry-content table.alignleft,
#content .entry-content table.alignleft tbody,
#content .entry-content table.alignleft tr,
#content .entry-content table.alignleft td,
#content .entry-content table.alignleft th{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box;
}

/* --- Mobile: Gravity Forms container safety --- */
.gform_wrapper, .gform_wrapper form{
    max-width:100% !important;
    box-sizing:border-box;
}



/* Phone-only: show 'Our Latest Guide' header and let existing #graybox h1 styles apply */
#graybox #prideguide { padding-top: 0 !important; }
#graybox #prideguide .latest-guide-title { display: block !important; }


/* PRIDEGUIDE_PHONE_ALIGN_START */
#graybox #prideguide { padding-top: 0 !important; }
/* PRIDEGUIDE_PHONE_ALIGN_END */
}