/* Mobile hamburger button (hidden on desktop) */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	padding: 6px 12px;
	line-height: 1;
}

/* ============================================================
   TABLET: 480px – 999px
   ============================================================ */
@media only screen and (max-width: 999px) {

	/* --- Grid reset --- */
	.container_16 {
		min-width: 0 !important;
		width: 100% !important;
		margin-left: 0;
		margin-right: 0;
		padding: 0;
		box-sizing: border-box;
	}

	.grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6,
	.grid_8, .grid_9, .grid_10, .grid_11, .grid_12,
	.grid_13, .grid_14, .grid_15, .grid_16 {
		float: none;
		display: block;
		width: 100% !important;
	}

	/* --- Header --- */
	#head_wrap {
		padding: 0;
		border-radius: 0;
	}

	#header {
		padding: 10px;
		text-align: center;
	}

	#logo {
		text-align: center;
		float: none;
	}

	img.branding {
		float: none;
		padding: 0;
		max-width: 100%;
		height: auto;
	}

	#header_ad {
		display: none;
	}

	/* --- Navigation --- */
	.mobile-menu-toggle {
		display: block;
		width: 100%;
		text-align: left;
		padding: 8px 15px;
	}

	#navigation {
		border-radius: 0;
	}

	ul.menu {
		display: none;
		float: none;
	}

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

	.menu li {
		float: none;
		border-right: none;
		border-bottom: 1px solid #435664;
		padding: 10px 15px;
	}

	.menu li:hover {
		background-image: none;
	}

	/* Hide submenus on mobile */
	.menu ul {
		position: static;
		top: auto;
		width: 100%;
	}

	/* --- Featured boxes --- */
	.boxgrid.caption {
		width: 48% !important;
		margin: 0 1% 10px 1%;
		float: left;
	}

	.featured_box, .last_box {
		height: 140px;
	}

	.boxcaption {
		height: 140px;
	}

	.caption .boxcaption {
		top: 140px;
	}

	/* --- Main content layout: undo 3-column float trick --- */
	.main_wrap {
		padding: 10px;
		margin-top: 10px;
		border-radius: 0;
	}

	#content_left_wrapper {
		float: none;
		width: 100%;
	}

	#content_right_wrapper {
		float: none;
		width: 100% !important;
		margin-left: 0 !important;
	}

	.content_left {
		margin-right: 0 !important;
	}

	.content_center {
		float: none;
		width: 100% !important;
		margin-right: 0;
	}

	.content_right {
		float: none;
		width: 100% !important;
	}

	/* --- Footer --- */
	#footer_wrap {
		border-radius: 0;
	}

	#footer {
		padding: 15px 10px;
	}

	#footer p {
		font-size: 12px;
	}

	/* --- Misc --- */
	.box {
		border-radius: 4px;
	}

	.article img,
	.entry-content img,
	.wp-caption {
		max-width: 100%;
		height: auto;
	}

	/* Age gate */
	#age-verification-overlay .age-gate-content {
		width: 90%;
		max-width: 400px;
	}

	/* GDPR banner */
	#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container {
		padding: 10px;
	}

	.moove-gdpr-button-holder {
		flex-wrap: wrap;
		gap: 5px;
	}

	/* Search form */
	#search_form input {
		width: 100% !important;
		box-sizing: border-box;
	}
}


/* ============================================================
   PHONE: < 480px
   ============================================================ */
@media only screen and (max-width: 479px) {

	/* Featured boxes: 1 per row */
	.boxgrid.caption {
		width: 100% !important;
		margin: 0 0 10px 0;
		float: none;
	}

	.featured_box, .last_box {
		height: 150px;
		margin-right: 0;
	}

	.boxcaption {
		height: 150px;
	}

	.caption .boxcaption {
		top: 150px;
	}

	/* Post meta: stack vertically */
	.meta span {
		display: block;
		margin-bottom: 4px;
		padding-left: 22px;
	}

	/* Pagination */
	.pagination {
		text-align: center;
		word-spacing: 5px;
	}

	/* Ads grid: 1 column on narrow screens */
	.box > div[style*="grid-template-columns"] {
		grid-template-columns: 1fr !important;
	}

	/* Breadcrumb text */
	.box h2 {
		font-size: 12px;
		line-height: 1.4;
	}

	/* Post title */
	.article h1 {
		font-size: 18px;
	}

	/* Widget sidebar images */
	.widget img {
		max-width: 100%;
		height: auto;
	}

	/* Footer text smaller */
	#footer p {
		font-size: 11px;
		line-height: 1.5;
	}
}
