/*
 * Theme Name: Newport Folk Festival
 * Template: Divi
 * Author: subLoft
 */

@font-face {
    font-family: 'EFCO Fairley';
    src: url('fonts/EFCO-Fairley.woff2') format('woff2'),
         url('fonts/EFCO-Fairley.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

.efco-fairley {
	font-family: "EFCO Fairley", sans-serif !important;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "EFCO Fairley", sans-serif !important; 
	text-transform:uppercase!important;
	font-weight:normal;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1 {font-size:42px;}
h2 {font-size:36px;}
h3 {font-size:30px;}
h4 {font-size:27px;}
h5 {font-size:24px;}
h6 {font-size:21px;}

a, p a {font-weight:700!important;}

ul, ol {padding-left:21px!important; list-style-position:outside !important;}

.fw-300 {font-weight:300!important;}
.fw-400 {font-weight:400!important;}
.fw-500 {font-weight:500!important;}
.fw-600 {font-weight:600!important;}
.fw-700 {font-weight:700!important;}
.fw-800 {font-weight:800!important;}

.npf-heading h2 {
  overflow-wrap: break-word;
  text-align: center; 
  padding-bottom:0;
}

@media(max-width:767px){
    .npf-heading h2 {
    font-size: 9vw;
  }
}

@media(min-width:768px){
    .npf-heading h2 {
    font-size: 4rem;
  }
}

@media(min-width:980px){
    .npf-heading h2 {
    font-size: 2.8vw;
  }
}

@media(min-width:1280px){
    .npf-heading h2 {
    font-size: 2.3rem;
  }
}

/* top line */
.top-line {
	position: relative;
    margin-top: 28px;
    padding-top: 22px;
}

.top-line::before {
  content:'';
  position: absolute;
  background-color: #919191;
  width: 12%;
  height: 2px;
  top: 0;
  left:0;
}

.gtc-menu li {
  padding-left:15px!important;
  padding-right:15px!important;
}

/* left line before text*/
.gtc-menu li.left-line {padding-left:35px!important;}

.left-line::before {
  content:'';
  position: absolute;
  background-color: #919191;
  width: 1px;
  height: 100%;
  bottom: 0;
  left:10px; 
}
.gtc-mobile-menu .et_mobile_menu {
	top:60px!important;
}

.gtc-mobile-menu .mobile_nav.opened .mobile_menu_bar{
	position: relative;
    top: 8vh;
    left: 80vw;
    z-index: 99999;
}

/*reverse the menu module logo and navigation*/
.inverted-menu.et_pb_menu--style-left_aligned .et_pb_menu_inner_container {
	flex-direction: row-reverse;
}

/*move the navigation completely to the left*/
.inverted-menu.et_pb_menu--style-left_aligned.et_pb_text_align_center .et_pb_menu__wrap {
	justify-content: flex-start;
	align-content: center;
}

/*move the logo completely to the right*/
.inverted-menu.et_pb_menu--style-left_aligned .et_pb_menu__logo {
	margin-right: 0px;
	margin-left: 30px;
}

/*changing the Divi hamburger menu to X*/
.mobile_nav.opened .mobile_menu_bar:before {
    content: '\4d';
}

/*rotating the Divi Menu icon*/
.mobile_menu_bar:before {
    transition: all .4s ease;
    transform: rotate(0deg);
    display: block;
}

/*rotate the Divi Menu icon on click*/
.mobile_nav.opened .mobile_menu_bar::before {
    transition: all .4s ease;
    transform: rotate(90deg);
    display: block;
}

/* Remove the top line in the mobile menu*/
.et_mobile_menu {
	border-top:1px solid #919191;
}

/*making the Divi Menu full width*/
.et_pb_menu .et_mobile_menu{
    min-width: 105vw;
	padding-top: 5%!important;
    padding-left: 7%;
	margin-left: -4vw;
    padding-bottom: 100vh!important;
	text-align:left;
    transition: transform 0.4s ease, opacity 0.05s ease;
    transform: translateY(-100%);
    opacity: 0;
}

/* Visible state of the menu */
.mobile_nav.opened .et_mobile_menu {
    transform: translateY(0);
    opacity: 1;
}

/*removing the line from the menu items and adding line height*/
.et_mobile_menu li a {
	padding:10px 10px!important;
	border-bottom: none!important;
}

.gtc-mobile-menu li a {
	padding:8px 0px!important;
	border-bottom: none!important;
}

/*removing padding of the social media icons*/
.et_mobile_menu li li {
    padding-left:0%!important;
}

.gtc-menu .menu-item a {padding:0px !important;}
.gtc-menu .npf-dropdown.menu-item a {padding-right:20px !important;}
.gtc-menu .sub-menu {
	padding:15px 0px !important;
	border-top:none!important;
}
.gtc-menu .npf-dropdown.menu-item .sub-menu li a {
	padding-right:0px !important;
	font-size:18px !important;
}

/*set the Divi menu dropdown auto width*/
@media only screen and (min-width: 981px) {
	.nav li ul {
		width: fit-content;
		display: flex;
		flex-direction: column;
	}

	.nav li li {
		white-space: nowrap;
	}

	.nav li li a {
		width: auto !important;
	}
}

/* CUSTOM NAVIGATION */
@media(min-width:768px){
	.custom-navigation .row {
		display: flex;
		justify-content: space-between;
	}
	.custom-navigation .column {
		flex: 1;
	}
	.custom-navigation .column.empty {
		flex: 1;
	}	
}
.custom-navigation a {
    text-decoration: none;
    color: inherit;
}
.custom-navigation h5{color:#222;font-size:24px;line-height:1em;padding:0 0 10px;}
.custom-navigation h4{color:#222;font-size:27px;line-height:1em;padding:10px 0 0;}


.single-post .npf-active-blog.menu-item a {color: #97A26C !important;}

.gform_button,
.newport-btn.et_pb_button,
.newport-btn-sm.et_pb_button {
    line-height: 1em !important;
    padding: 15px 4% !important;
    display: block;
    text-align: center;
    box-sizing: border-box;
    font-family: "EFCO Fairley", sans-serif;
    font-size: 28px;
    border-width: 0px !important;
    border-radius: 0px;
    font-weight: normal;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: normal;
    text-decoration: none;
    color: #ffffff;
    border: 2px solid transparent;
    transition: background-color 300ms ease 0ms;
    background-image: initial;
    background-color: #97A26C !important;
}

.gform_button,
.newport-btn.et_pb_button {
    width: 100%;
    height: auto !important;
}

.newport-btn-sm.et_pb_button {
	width:fit-content !important;
    height: auto !important;
	margin:0 auto;
}

.gform_button:hover,
.newport-btn-sm.et_pb_button:hover,
.newport-btn.et_pb_button:hover {
    padding: 15px 4% !important;
    background-color:#484d29 !important;
	cursor:pointer;
}

.newport-toggle-active.et_pb_button{
    background-color:#484d29 !important;
}
@media(max-width:768px){
.newport-btn-sm.et_pb_button {
	width:100% !important;
    height: auto !important;
	margin:0 auto;
}
}

.gform_footer .gform_button {line-height: 20px !important;}

.gform_required_legend {display:none;}

.gfield_label.gform-field-label {
	display: inline-block;
	color:#222 !important;
	font-size: 16px !important;
	line-height: 1.4em !important;
	font-weight: 400 !important;
	margin-bottom: 8px;
	padding: 0;
}

.gfield input[type=text],
.gfield input[type=email],
.gfield textarea,
.gfield select {
	text-indent: 0% !important;
    font-size: inherit;
    font-family: inherit;
    letter-spacing: normal;
    box-sizing: border-box;
    border: 1px solid #e7ecef;
    margin: 0;
    -webkit-appearance: none;
    padding: 14px !important;
    font-size: 16px;
    line-height: 22px;
    width: 100%;
    font-weight: 400;
    border-radius: 0px;
    background-color: #e7ecef;
    color: #222 !important;
}
.gfield_html p {
	clear: both;
    text-align: center !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400;
    letter-spacing: normal !important;
    line-height: 1.4em;
    padding: 5px 20px 0px;
    width: 100%;
    color: #222;
}

.folktales-blog-list .et_pb_post {margin-bottom:50px!important;}
.folktales-blog-list .et_pb_post:after {
    content: "" !important;
    display: block !important;
    height: 40px !important;
    background-image: url(https://newportfolk.org/wp-content/uploads/divider-3.jpg) !important;
    background-repeat: no-repeat !important;
    background-position: center bottom !important;
    visibility: visible !important;
}