/**
Theme Name: Dayton History (Astra Child)
Author: OmniSpear
Author URI: https://omnispear.com
Description: Theme for Dayton History built off of the Astra theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/*
 * Colors
*/
/* Use these to match the Astra colors in the customize settings
--ast-global-color-0: #003050;
--ast-global-color-1: #002a46;
--ast-global-color-2: #333333;
--ast-global-color-3: #6e5636;
--ast-global-color-4: #896c44;
--ast-global-color-5: #bc955c;
--ast-global-color-6: #ffffff;
--ast-global-color-7: #f2f2f2;
--ast-global-color-8: #cccccc;
*/

/*
 * Helpers
*/
.flex-1 {
	flex: 1 !important;
}

/*
 * Header
*/
.site-header {
	position: absolute;
	top: 0;
	width: 100%;
}

.site-header .astra-search-shortcode {
	padding: 0;
}

.site-header .ast-search-menu-icon .astra-search-icon {
	color: #fff;
	font-size: 22px;
	margin-top: 4px;
}

.site-header .ast-search-menu-icon.slide-search.ast-dropdown-active .astra-search-icon {
	color: var(--ast-global-color-5);
}

.site-header .dropdown-menu-toggle {
	display: none;
}

.site-header .site-above-header-wrap {
	min-height: 0;
}

.site-header .textwidget {
	font-family: "Nunito Sans", sans-serif;
}

.site-header .textwidget a {
	background-color: var(--ast-global-color-5);
	color: #fff;
	padding: 10px 20px;
	white-space: nowrap;
}

.site-header .textwidget a:hover {
	background-color: var(--ast-global-color-4);
}

.site-header .textwidget a:after {
	content: "\f178";
	font-family: "Font Awesome 6 Pro";
	font-weight: 400;
	margin-left: 10px;
}

.site-header .ast-builder-menu-1 .main-navigation > ul > li.astra-megamenu-li:hover > a:after {
	bottom: 0;
	color: #fff;
	content: "\f0d8" !important;
	font-family: "Font Awesome 6 Pro";
	font-weight: 600;
	left: 0;
	line-height: 0 !important;
	position: absolute;
	right: 0;
	text-align: center;
}

.site-header .astra-full-megamenu-wrapper {
	border-top: 0 !important;
	box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
}

.site-header .ast-builder-menu-2 a {
	line-height: 1 !important;
}

.site-header .ast-builder-menu-2 ul li:not(:last-child) a {
	border-right: 2px solid #fff;
}

.site-header .ast-above-header-bar .wp-block-button {
	white-space: nowrap;
}

.site-header .submenu-with-border .sub-menu a.menu-link {
	padding: 5px 10px;
}

.site-header .submenu-with-border .sub-menu span.menu-link,
.site-header .submenu-with-border .sub-menu li.menu-item-heading > a.menu-link{
	padding: 10px;
}

.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:hover .astra-megamenu .astra-nested-sub-menu .menu-item .menu-link {
	padding-left: 10px;
}

.site-header .mega-block-title {
	margin-bottom: 10px;
}

.menu-link .ast-icon.icon-arrow {
	display: none !important;
}

#secondary_menu-site-navigation-desktop {
	height: 24px;
}

.site-header .header-widget-area[data-section="sidebar-widgets-header-widget-3"] {
	height: 35px;
}

/* Hides empty p tags from search shortcode */
.site-header aside[data-section="sidebar-widgets-header-widget-3"] p {
	display: none;
}

.secondary-header-title {
	width: auto !important;
}

.secondary-header-title h1 {
	line-height: 1.25 !important;
}

/*
 * Custom Blocks & Block Overwrites
*/
/* Prevents text from wrapping in buttons */
.uagb-button__link {
	white-space: nowrap;
}

/* Adds arrow icon to all uagb buttons */
.uagb-button__link:after {
	content: "\f178";
	font-family: "Font Awesome 6 Pro";
	font-weight: 400;
	margin-left: 10px;
}

.dayton-history-outline-box {
	position: relative;
}

.dayton-history-outline-box img {
	aspect-ratio: 41/25;
	object-fit: cover;
	width: 100%;
}

/* Force buttons in outline box to overlap at the bottom */
.dayton-history-outline-box-buttons {
	bottom: -20px;
	margin-top: 0;
	position: absolute;
}

.list-inline {
	display: flex;
	flex-wrap: wrap;
}

.list-inline li:not(:last-child) {
	margin-right: 40px;
}

/* Gravity Forms */
.gform_button {
	background-color: var(--ast-global-color-5) !important;
	color: var(--ast-global-color-6) !important;
	font-weight: 700 !important;
}

.ginput_container_fileupload input[type="file"]::file-selector-button {
	background-color: var(--ast-global-color-5);
	border: 0 !important;
	color: var(--ast-global-color-6);
	font-weight: 700 !important;
	height: 47px !important;
}

.ginput_container input,
.ginput_container select,
.ginput_container textarea {
	background-color: var(--ast-global-color-7) !important;
	border-color: var(--ast-global-color-8) !important;
	color: var(--ast-global-color-2) !important;
}

.ginput_container input:not([type="checkbox"]):not([type="radio"]),
.ginput_container select,
.ginput_container textarea {
	height: 47px !important;
}

.ginput_container textarea {
	min-height: 190px !important;
}

.ginput_container select {
	line-height: 47px;
}

/* Make gallery blocks only show first item to appear as an album */
.gallery-album .spectra-image-gallery {
	grid-template-columns: none !important;
}

.gallery-album .spectra-image-gallery .spectra-image-gallery__media-wrapper:not(:first-child) {
	display: none;
}

.gallery-album .spectra-image-gallery .spectra-image-gallery__media {
	aspect-ratio: 4/3;
}

/*
 * Events
*/
.upcoming-events {
	display: flex;
	margin-top: -30px;
	position: relative;
	z-index: 1;
}

/* Upcoming events are wrapped in WP column classes to keep resizing consistent */
.upcoming-events .wp-block-columns {
	gap: 2em 30px !important;
	width: 100%;
}

.event-main {
	align-items: center;
	background-color: var(--ast-global-color-6);
	box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
	display: flex;
	height: 100%;
	padding: 20px;
}

.event-main .image-link {
	flex: 0 0 auto;
	margin-right: 60px;
	max-width: 50%;
	width: 520px;
}

.event-main img {
/* 	aspect-ratio: 65/41; */
	aspect-ratio: 1/1;
	object-fit: cover;
	max-width: 100%;
}

.event-main h3 {
	margin-bottom: 10px;
}

.event-main p {
	margin-bottom: 20px;
}

.event-main .uagb-buttons-layout-wrap {
	gap: 20px;
}

.events-secondary {
	background-color: var(--ast-global-color-6);
	box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
	height: 100%;
	padding: 20px;
}

.events-secondary h3 {
	font-size: 24px;
	margin-bottom: 20px;
}

.events-secondary .event {
	align-items: center;
	display: flex;
}

.events-secondary .event:not(:last-child) {
	border-bottom: 2px solid var(--ast-global-color-7);
	margin-bottom: 30px;
	padding-bottom: 30px;
}

.events-secondary .event .image-link {
	flex: 0 0 auto;
	margin-right: 20px;
	width: 100px;
}

.events-secondary .event h5 {
	font-size: 18px;
	margin-bottom: 5px;
}

.events-secondary .event h6 {
	font-size: 14px;
	margin-bottom: 5px;
}

.events-secondary .event p {
	font-size: 14px;
	line-height: 1.25;
	margin-bottom: 0;
}

.hotspots-placeholder {
	padding: 0 40px 0 0 !important;
}

.hotspot-title {
	text-align: left !important;
}

.upcoming-events-list .events {
	display: flex;
	flex-wrap: wrap;
}

.upcoming-events-list .events .event {
	align-items: center;
	display: flex;
	flex-basis: 100%;
}

.upcoming-events-list .events .event:not(:last-child) {
	border-bottom: 2px solid var(--ast-global-color-7);
	margin-bottom: 20px;
	padding-bottom: 20px;
}

.upcoming-events-list .events .event .image-link {
	flex: 0 0 auto;
	margin-right: 30px;
	max-width: 400px;
}


.upcoming-events-list .events .event img {
	max-width: 100%;
}

.upcoming-events-list .events .event .title {
	font-size: 26px;
	margin-bottom: 5px;
}

.upcoming-events-list .events .event .date {
	font-size: 20px;
	margin-bottom: 10px;
}

.upcoming-events-list .events .event .details {
	display: flex;
}

.upcoming-events-list .events .event .price {
	font-size: 16px;
	margin-bottom: 10px;
}

.upcoming-events-list .events .event .description {
	margin-bottom: 0;
}

.upcoming-events-list .events .event .buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 15px;
}

.upcoming-events-list .pagination {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.upcoming-events-list .pagination .page-numbers {
	align-items: center;
	border-radius: 15px;
	color: var(--ast-global-color-1);
	display: flex;
	font-weight: 600;
	height: 30px;
	justify-content: center;
	line-height: 1;
	width: 30px;
}

.upcoming-events-list .pagination .page-numbers:hover {
	background-color: var(--ast-global-color-7);
}

.upcoming-events-list .pagination .page-numbers.current {
	color: var(--ast-global-color-5);
}

.upcoming-events-list .pagination .page-numbers i {
	font-size: 14px;
}

/*
 * Tables
*/
.custom-table thead {
	background-color: var(--ast-global-color-1);
	border: 0;
	color: var(--ast-global-color-7);
	overflow: hidden;
	text-align: left;
}

.custom-table thead tr th:first-child {
	border-top-left-radius: 3px;
}

.custom-table thead tr th:last-child {
	border-top-right-radius: 3px;
}

.custom-table th,
.custom-table td {
	padding: 15px;
}

.custom-table strong {
	color: var(--ast-global-color-1);
}

/*
 * Footer
*/
.ast-custom-footer ul {
	list-style: none;
	margin-left: 0;
}

.ast-custom-footer ul li {
	font-weight: 600;
}

.ast-custom-footer ul li:not(:last-child) {
	margin-bottom: 10px;
}

.site-footer,
.site-footer a {
	color: var(--ast-global-color-6);
	font-weight: 600;
}

.site-footer .widget-title,
.site-footer .widget-title h2 {
	color: var(--ast-global-color-6);
	font-size: 24px;
	margin-bottom: 20px;
}

.site-footer ul li:not(:last-child) {
	margin-bottom: 10px;
}

.site-footer .ast-footer-copyright {
	color: var(--ast-global-color-6);
	font-size: 14px;
	font-weight: 400;
}

.site-footer .ast-footer-copyright a {
	color: var(--ast-global-color-5);
	font-weight: 600;
}

.site-footer .ast-footer-copyright span {
	display: inline-block;
	margin: 0 5px;
}

/* Search */
#search-primary {
	margin-top: 0 !important
}

#search-primary .search-header {
	margin-left: -60px;
	width: calc(100% + 120px); /* Compensates for padding on primary */
}

/*
 * Media Queries
*/
/* Change Columns breakpoint */
@media (max-width: 1335px){
	.site-header img {
		height: auto !important;
		max-width: 250px;
	}

	.site-header .ast-builder-menu-1 .menu-item > .menu-link {
		font-size: 1.2rem;
	}

	.site-header .ast-builder-menu-2 .menu-item > .menu-link {
		font-size: 1.1rem;
	}

	.event-main .image-link {
		margin-right: 30px;
		max-width: 40%;
	}
}

@media(max-width: 1199px) {
	.ast-builder-grid-row-container.ast-builder-grid-row-tablet-6-equal .ast-builder-grid-row {
		grid-template-columns: repeat(3, 1fr);
	}

	.site-header .sub-menu .menu-link {
		padding: 10px 10px 10px 30px !important
	}

	.site-header .sub-menu .sub-menu .menu-link {
		padding: 10px 10px 10px 60px !important
	}

	.menu-item-object-custom .ast-mm-custom-content {
		padding: 10px 30px;
	}

	#ast-hf-mobile-menu > li > a {
		font-size: 16px;
		font-weight: 600;
	}

	.site-header .mega-block-title {
		margin: 10px 0;
	}
}

@media (max-width: 991px){
	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
	}

	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}

	.event-main img {
		aspect-ratio: 1/1;
	}

	.event-main h5 {
		margin-bottom: 20px;
	}

	.dayton-history-outline-box .wp-block-uagb-image__figure {
		width: 100%;
	}

	.dayton-history-outline-box-column {
		margin: 40px 0 20px !important;
	}

	.list-inline {
		display: block;
	}

	.list-inline li:not(:last-child) {
		margin-right: 0;
	}

	.upcoming-events-list .events .event {
		flex-wrap: wrap;
	}

	.upcoming-events-list .events .event .image-link {
		margin-bottom: 20px;
		margin-right: 0;
	}

	.upcoming-events-list .events .event .event-content {
		width: 100%;
	}

	.upcoming-events-list .events .event .details {
		flex-wrap: wrap;
	}

	.upcoming-events-list .events .event .price {
		width: 100%;
	}

	.columns-no-space-mobile {
		gap: 0 !important;
	}

	.columns-no-space-mobile .wp-block-column {
		margin: 0 !important;
	}
}

@media(max-width: 767px) {
	.header-alert-bar {
		padding: 10px 0 !important;
	}

	.header-alert-bar p {
		font-size: 14px;
		line-height: 1.25;
	}

	.table-mobile-stacked table {
		display: flex;
		flex-direction: column;
	}

	.table-mobile-stacked table thead {
		display: none;
	}

	.table-mobile-stacked table tbody tr {
		display: flex;
		flex-direction: column;
		padding: 15px;
	}

	.table-mobile-stacked td {
		padding: 0;
	}

	.wrap-mobile {
		flex: 0 0 auto !important;
		width: 100%;
	}
}

@media(max-width: 650px) {
	.ast-builder-grid-row-container.ast-builder-grid-row-tablet-6-equal .ast-builder-grid-row {
		grid-template-columns: repeat(1, 1fr);
	}

	.upcoming-events .wp-block-columns {
		gap: 0 !important;
	}

	.event-main {
		align-items: flex-start;
		flex-direction: column;
		padding: 20px;
	}

	.event-main .image-link {
		margin-bottom: 20px;
		max-width: 100%;
		width: 100%;
	}

	.event-main img {
		aspect-ratio: 16/9;
		max-width: 100%;
		width: 100%;
	}

	.event-main h5 {
		margin-bottom: 10px;
	}

	.events-secondary {
		padding: 20px;
	}

	.upcoming-events-list .events .event .image-link {
		max-width: 100%;
		width: 100%;
	}

	.upcoming-events-list .events .event img {
		width: 100%;
	}

	.site-footer .site-footer-section:not(:last-child) {
		margin-bottom: 40px !important;
	}

	.ginput_container input,
	.ginput_container select,
	.ginput_container textarea {
		inline-size: 100% !important;
		width: 100% !important;
	}
}















