/*
 Theme Name:   Margo's Home
 Template:     generatepress
 Author: Community Web Development
 Author URI: http://www.comminternet.com/
 Version: 1.0
*/

/* clearfix */
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/* prevent tel clicks on desktops */
a[href^="tel"] { pointer-events: none; }

/* allow tel clicks on phones */
@media (max-width: 767px) {
	a[href^="tel"] { pointer-events: auto; }
}


/* GLOBALS */

p:empty {
	display: none;
}

.alignleft, .alignright, .aligncenter {
	margin-top: 1em;
	margin-bottom: 1em;
}

.wp-caption {
    border: 1px solid #ccc;
    padding-top: 5px;
}

.wp-caption .wp-caption-text {
	text-align: center;
	padding: 1em;
	margin: 0;
}

.copyright-bar ul.menu {
	margin-left: 0;
}

.copyright-bar ul.menu li {
	display: inline;
	margin: 0 10px;
}

.copyright-bar p.branding {
	margin-bottom: 0;
}

.social-media li.other path {
	fill: currentColor;
}

.social-media li svg {
	height: 1em;
	width: 1em;
}

/*

FIX BUG WHERE TOP LEVEL HOVER COLOR REVERTS WHEN SELECTING A DROPDOWN MENU ITEM WHICH IS A DESCENDANT OF THE CURRENT PAGE

.main-navigation .main-nav ul li[class*="current-menu-"]:hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"]:focus > a {
	color: #fff !important;
}

*/

/* Generatepress Preset Breakpoints iPad portrait*/
@media (max-width: 1024px) {

}

/* Custom iPad breakpoint */
@media (max-width: 768px) {

	
}

/* Generatepress Preset Breakpoints under iPad*/
@media (max-width: 767px) {


}


/**
 * MODERN ANIMATION EFFECTS FOR GP
 */
 
 /* Sub-menu effect */
.main-navigation ul ul {
	left: auto;
	transition: opacity 300ms ease-in-out, transform 200ms ease-in-out, height 200ms ease-in-out;
	transform: translateY(20px);
	height: auto;
}

.main-navigation:not(.toggled) ul li:hover>ul, .main-navigation:not(.toggled) ul li.sfHover>ul {
	transform: translateY(0);
}

.slideout-navigation.do-overlay .slideout-menu .sub-menu li a {
	display: block;
}


.secondary-navigation.toggled .main-nav > ul {
	max-height: 1000px;
	animation: navFadeInDown 500ms ease-in-out both;
	transition: opacity 500ms ease-in-out;
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0;
}
    
@keyframes navFadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}