/**
Theme Name: Dan Devine Studio Theme
Author: Matter Storm Design
Author URI: https://matterstorm.design
Description: A custom theme for Dan Devine Studio based on the Astra Theme.
Version: 1.0.0.0
License: 
License URI: 
Text Domain: dan-devine-studio-theme
Template: astra
*/


/*--------------- NAVIGATION ----------------*/
/*-- Align navigation menus to the right when wrapping onto multiple lines --*/
.ast-builder-menu .main-navigation > ul {
	justify-content: flex-end;
}
/*-- Set active/current page link to be underlined --*/
.menu-item.current_page_item a .menu-text {
	border-bottom: solid 1px;
}
.ast-builder-menu-1 .menu-item a .menu-text {
	border-bottom-color: transparent;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	transition: all 0.2s linear;
}
.ast-builder-menu-1 .menu-item a:hover .menu-text, .ast-builder-menu-1 .menu-item.current-menu-item a .menu-text {
	border-bottom-color: #000;
}
.ast-builder-menu-2 .menu-item a .menu-text {
	border-bottom-color: transparent;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	transition: all 0.2s linear;
}
.ast-builder-menu-2 .menu-item a:hover .menu-text, .ast-builder-menu-2 .menu-item.current-menu-item a .menu-text {
	border-bottom-color: #575757;
}
.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close {
	height: 60px;
}
.menu-toggle-close .ahfb-svg-iconset svg {
	width: 30px;
	height: 30px;
}
/*-- Hide, but still include Home page title for accessibility --*/
.home header.entry-header {
	display: none;
}


/*--------------- ALL PAGES ----------------*/
/*-- Make all page titles uppercase --*/
.ast-single-post .entry-title, .page-title {
	text-transform: uppercase;
	letter-spacing: 2px;
}


/*---------------- HOME PAGE ---------------*/
/*-- Fix styling of Home page main category image block row --*/
.homeimagecat > .wp-block-group__inner-container {
	display: flex;
	gap: 1.5em;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}
.homeimagecat .wp-block-group__inner-container .wp-block-group, .homeimagecat.wp-block-group {
	padding-top: 1em;
	padding-bottom: 1em;
}
.homeimagecat a {
	text-decoration: none !important;
	border-bottom-width: 1px;
	border-bottom-color: transparent;
	border-bottom-style: solid;
}
.homeimagecat a:hover, .homeimagecat a:active, .homeimagecat a:focus {
	border-bottom-color: #000;
}
.homeimagecat a:hover > img {
	opacity: 0.8;
}
@media (max-width: 1200px) {
	.homeimagecat.wp-block-group .wp-block-group {padding: 0.5em;}
}


/*--------------- NINJA FORMS STYLING ---------------*/
.nf-form-cont input[type="button"] {
	transition: background-color .3s ease;
}
.nf-form-cont input[type="button"]:hover {
	color: #fff;
}


/*--------------- GRID GALLERY PAGES ----------------*/
.dd_gridgallery.dd_gridgallery_atlviews {
	display: none;
}
.gridgallerycontainer, .gridcategorycontainer {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 70px;
}
.gridgalleryitem a .gridgalleryimage img {
	transition: opacity .2s linear;
}
.gridgalleryitem a:hover .gridgalleryimage img {
	opacity: 0.8;
}
.gridcategoryitem a .gridcategoryimage img {
	transition: opacity .2s linear;
}
.gridcategoryitem a:hover .gridcategoryimage img {
	opacity: 0.8;
}
.gridgallerytitle, .gridcategorytitle {
	padding-top: 10px;
}
.gridgallerytitle h2, .gridcategorytitle h2 {
	font-size: .9em;
	text-align: center;
}
.gridgalleryitem .gridgallerytitle a, .gridcategoryitem .gridcategorytitle a {
	text-decoration: none;
}
@media (max-width: 768px) {
	.gridgallerycontainer, .gridcategorycontainer { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
	.gridgallerycontainer, .gridcategorycontainer { grid-template-columns: repeat(1, 1fr); gap: 30px; }
}


/*--------------- FOOTER -----------------*/
/*-- Restyle menu to be horizontal --*/
.footermenu-mainmenu, .footermenu-projectcat, .footermenu-legal {
	list-style: none;
	margin: 0;
	padding-left: 0;
	padding-bottom: 5px;
	position: relative;
	align-self: center;
	display: inline-flex;
	font-size: .87em;
	flex-wrap: wrap;
	justify-content: center;
}
.footermenu-mainmenu .menu-item, .footermenu-projectcat .menu-item, .footermenu-legal .menu-item {
    -js-display: flex;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
/*-- Space out footer menu items --*/
.footermenu-mainmenu .menu-item .menu-link, .footermenu-projectcat .menu-item .menu-link, .footermenu-legal .menu-item .menu-link {
	margin: 0 .75em;
}
/*-- Footer menu items hover underline --*/
.footermenu-mainmenu .menu-item a, .footermenu-projectcat .menu-item a, .footermenu-legal .menu-item a {
	border-bottom-color: transparent;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	transition: all 0.2s linear;
}
.footermenu-mainmenu .menu-item a:hover, .footermenu-projectcat .menu-item a:hover, .footermenu-legal .menu-item a:hover { 
	border-bottom-color: #505050;
}
/*-- Remove automatically added p tag from footer --*/
.site-footer-primary-section-1 .ast-footer-html-3 .ast-header-html .ast-builder-html-element p:first-child {
	display:none;
}
/*-- Style footer credit and link --*/
.footermsdcredit {
	color: #646464;
}
.footermsdcredit a {
	color: #646464;
	border-bottom-color: transparent;
	border-bottom-width: 1px;
	border-bottom-style: solid;
}
.footermsdcredit a:hover, .footermsdcredit a:active {
	color: #000;
	border-bottom-color: #000;
}
.menu-legal-menu-container {
	margin-top: 10px;
}
.menu-legal-menu-container .footermenu-legal {
	font-size: 1em;
	line-height: 1.5em;
	padding-bottom: 0px;
}
.footermenu-legal .menu-item {
	padding-bottom: 0.8em;
}


/*-------------- GDPR -------------*/
.gdpr_messagebar_detail .gdprmodal-dialog .gdprmodal-content .gdprmodal-header .close {
	color: #000 !important;
}
.gdpr_messagebar_detail .gdprmodal-header .close .dashicons {
	width: 28px;
	height: 28px;
	font-size: 28px;
}
/*-- Header spacing with close button --*/
.gdpr_messagebar_detail .gdprmodal-dialog .gdprmodal-content .gdprmodal-header {
	padding: 1rem;
}
.gdpr_messagebar_detail.layout-classic .category-group .toggle-group .always-active {
	color: #333 !important;
}
.gdpr_messagebar_detail .category-group .category-item .description-container .group-toggle .checkbox input:checked + label:after, .gdpr_messagebar_detail.layout-classic .category-group .toggle-group .checkbox input:checked + label:after {
	background: #yellow !important;
}
#gdpr-cookie-consent-bar, #gdpr-cookie-consent-show-again {
	box-shadow: none !important;
}
#cookie_action_accept {
	background-color: #e0e0e0!important;
}
#cookie_action_accept:hover {
	background-color: rgb(179, 179, 179)!important;
}

