/*
Theme Name: Elliotts Funerals
Template: generatepress
Theme URI: https://elliottsfunerals.co.nz
Author: Weave Digital Studio
Author URI: https://weave.co.nz/
Description: Website for Elliotts Funerals
Version: 1.6 for Oneroom
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gpc
*/

html, body {
  overflow-x: hidden;
}

body {
  position: relative;
}
.owl-next {
    width: 40px;
}


/*/////////////////////////////////////////////////////*/
/* GLOBAL */
/*/////////////////////////////////////////////////////*/

.overlaid img {
    z-index: 51;
    position: relative;
}

.menu .pp-has-submenu .sub-menu,
.menu .pp-has-submenu .sub-menu li{
    z-index: 52 !important;
}

.site-content {
    flex-flow: column;
}

/* ---------------------- */
/* PRE-HEADER */
/* ---------------------- */

@media screen and (max-width: 768px) {
.ef-pre-header .fl-row-content {
 max-width: 100% !important;   
}
}
.ef-pre-header .ef-pre-header-phone span {
    display: inline-block;
}
.ef-pre-header .ef-pre-header-phone .ef-separator {
    margin: 0 .5em;;
}
.ef-pre-header .ef-pre-header-buttons .fl-col-content {
    flex-direction: row;
    justify-content: flex-end;
}

.ef-pre-header .ef-pre-header-buttons.left .fl-col-content {
    justify-content: flex-start;
}

.ef-pre-header .ef-pre-header-buttons .fl-module {
    width: auto;
}
.ef-pre-header .ef-pre-header-buttons .fl-module, 
.ef-pre-header .ef-pre-header-buttons .fl-module-content, 
.ef-pre-header .ef-pre-header-buttons .pp-button-wrap, 
.ef-pre-header .ef-pre-header-buttons .pp-button { 
    height: 100%;
}
.ef-pre-header .ef-pre-header-buttons .fl-module a {
    display: flex;
    align-items: center;
}
.pp-search-form--lightbox-close {
    top: 38px;
    right: 5px;
}
[pseudo="-webkit-input-placeholder"], 
input[type="search" i]::-webkit-search-cancel-button {
    display: none;
}

/* Hidden PP Search module for mobile search */

body:not(.fl-builder-edit) .ef-hide {
    position: absolute;
    bottom: 0;
    /* z-index: -1; */
}
body:not(.fl-builder-edit) .ef-hide .pp-search-form__toggle {
    visibility: hidden;
}


/* ---------------------- */
/* MAIN NAVIGATION */
/* ---------------------- */

.pp-advanced-menu.full-screen .pp-menu-overlay ul.menu {
    width: 100% !important;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}

@media screen and (min-width: 1026px) {
    .fl-module-pp-smart-button.topbar-phone {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .fl-module-pp-smart-button.topbar-phone {
        display: none;
    }
}

/*.pp-advanced-menu-horizontal.pp-toggle-arrows .pp-menu-toggle {*/
/*    left: 0;*/
/*}*/

/* @media screen and (min-width: 992px) {
.home header:not(.fl-builder-content-editing),
.home header:not(.fl-theme-builder-header-scrolled){
    position: absolute;
    width: 100%;
    z-index: 100;
}

.home header.fl-theme-builder-header-scrolled {
    background: #faf5f1;
}

.home #logo-header .fl-row-content-wrap {
    background: #0000;
}

.home header:not(.fl-theme-builder-header-scrolled) .pp-advanced-menu .menu > li > a,
.home header:not(.fl-theme-builder-header-scrolled) .pp-advanced-menu .menu > li > .pp-has-submenu-container > a {
    color: #f9f5f1;
}

.home header:not(.fl-theme-builder-header-scrolled) .pp-advanced-menu .pp-toggle-arrows .pp-menu-toggle:before,
.home header:not(.fl-theme-builder-header-scrolled) .pp-advanced-menu .pp-toggle-none .pp-menu-toggle:before {
    border-color: #f9f5f1;
}   
}

.home header:not(.fl-theme-builder-header-scrolled) .home-shrink-logo {
    display: none;
}

.home header.fl-theme-builder-header-scrolled .home-logo {
    display: none;
}

header.fl-theme-builder-header-scrolled .home-shrink-logo img {
    width: 170px;
}

header.fl-theme-builder-header-scrolled .home-shrink-logo .fl-node-content {
    margin-top: 20px;
    margin-bottom: 20px;
} */

@media screen and (max-width: 768px){
    #logo-header .fl-row-content-wrap {
    background: #ffffff;
    }
}

/* @media screen and (min-width: 769px) and (max-width: 1027px) {
.home header:not(.fl-theme-builder-header-scrolled) .pp-advanced-menu-mobile-toggle {
        color: #fff;
    }
    
    .home header:not(.fl-theme-builder-header-scrolled) .pp-advanced-menu-mobile-toggle .pp-hamburger .pp-hamburger-box .pp-hamburger-inner,
    .home header:not(.fl-theme-builder-header-scrolled) .pp-advanced-menu-mobile-toggle .pp-hamburger .pp-hamburger-box .pp-hamburger-inner::before,
    .home header:not(.fl-theme-builder-header-scrolled) .pp-advanced-menu-mobile-toggle .pp-hamburger .pp-hamburger-box .pp-hamburger-inner::after {
        background-color: #ffffff;
    }
    
    .page-id-67697 .fl-module-heading .fl-heading {
        font-size: 54px;
    }
} */

@media screen and (max-width: 1026px){
.pp-advanced-menu .sub-menu {
    background-color: #001e4e1a !important;
}
}

.pp-menu-overlay li.nav-button a {
    color: #fff !important;
}

li.nav-button a {
    background: #fff;
    line-height: 14px;
    color: #001e4e !important;
    padding: 12px 20px !important;
    border-radius: 5px;
}

li.nav-button a:hover {
    color: #baa898 !important;
}

.pp-advanced-menu .sub-menu > li > a,
.pp-advanced-menu .sub-menu > li > .pp-has-submenu-container > a {
    text-transform: capitalize !important;
}

.mobile-phone svg {
  width: 12px;
  margin-right: 8px;
  margin-bottom: -4px;
}

/* FIXES */

/* Fix last p tag child issue */
.fl-rich-text p:last-child {
  margin-bottom: 0;
}

/* Apply consistent padding on rows */
div.fl-row-content-wrap {
  padding-left: 5%;
  padding-right: 5%;
}
@media (max-width: 768px) {
  .fl-row-content {
    max-width: 540px !important;
  }
}

/* NAV */

/* @media (min-width:1191px) {
  .main-navigation .main-nav ul li.nav-button a {
    background-color: #fff;
    border-radius: 5px;
    color: #BAA899 !important;
    line-height: 35px; 
  }
  .main-navigation .main-nav ul li.nav-button a:hover {
    background-color: transparent;
  }
  .home .main-navigation .main-nav ul li.nav-button a:hover {
    color: #eee0cb !important;
  }
}
.main-navigation .main-nav ul ul li a {
  text-align: center !important;
  text-transform: none;
}
.main-nav#mobile-menu ul li a,
.main-nav#mobile-menu ul ul li a {
  text-align: left !important;
} */

/* HOMEPAGE HEADER */
/* .home .inside-header {
  padding: 0px 40px 0 40px;
} */

.mobile-logo {
  text-align: center;
}

.mobile-logo.left {
  text-align: left;
}

.mobile-logo svg {
  width: 200px;
  max-width: 200px;
  height: auto;
}

/* ACCORDION */

.fl-accordion-content {
  width: 95%;
}

.fl-accordion-item:last-child {
  border-bottom-width: 2px !important;
}

/* CLICKABLE COLUMNS */

.clickable-col .fl-col-content {
  transition: all .4s ease-in-out;
}
.clickable-col:hover .fl-col-content {
  opacity: 90%;
}

/* BOXES */

/* Box spacing */
@media(min-width: 769px) and (max-width: 1100px) {
  .box_top-left h3,
  .box_bottom-right h3,
  .box_top-right h3 {
    min-height: 50px;
  }
}
@media(min-width: 769px) and (max-width:939px) {
  .box_top-left p,
  .box_bottom-right p,
  .box_top-right p {
    min-height: 145px;
  }
}
@media(min-width: 940px) and (max-width:1024px) {
  .box_top-left p,
  .box_bottom-right p,
  .box_top-right p {
    min-height: 125px;
  }
}
@media(min-width: 1140px) {
  .box_top-left p,
  .box_bottom-right p,
  .box_top-right p {
    min-height: 100px;
  }
}

/* Left */
.box_top-left .fl-photo-content {
  position: absolute;
  top: -90px;
  left: -70px;
}
@media(max-width: 992px) {
  .box_top-left .fl-photo-content {
    position: absolute;
    top: -70px;
    left: -50px;
  }
}
@media(max-width: 768px) {
  .box_top-left .fl-photo-content {
    position: absolute;
    top: -50px;
    left: -60px;
  }
}

/* Left with numbers*/
.box_top-left.box_top-left-number .fl-photo-content {
  top: -35px;
  left: -25px;
}
@media(max-width: 992px) {
  .box_top-left.box_top-left-number .fl-photo-content {
    top: -45px;
    left: -15px;
  }
}
@media(max-width: 768px) {
  .box_top-left.box_top-left-number .fl-photo-content {
    top: -45px;
    left: -25px;
  }
}

/* Middle */
.box_bottom-right .fl-photo-content {
  position: absolute;
  bottom: -45px;
  right: -70px;
}
@media(max-width: 992px) {
  .box_bottom-right .fl-photo-content {
    position: absolute;
    bottom: -30px;
    right: -50px;
  }
}
@media(max-width: 768px) {
  .box_bottom-right .fl-photo-content {
    position: absolute;
    bottom: -30px;
    right: -60px;
  }
}

/* Right */
.box_top-right .fl-photo-content {
  position: absolute;
  top: -40px;
  right: -65px;
}
@media(max-width: 992px) {
  .box_top-right .fl-photo-content {
    position: absolute;
    top: -40px;
    right: -45px;
  }
}
@media(max-width: 768px) {
  .box_top-right .fl-photo-content {
    position: absolute;
    top: -40px;
    right: -55px;
  }
}

/* BLUE CALL TO ACTION */

.cta-blue h3 span span {
  color: #EEDFCB !important;
  font-style: italic;
}

/* TIMELINE */
.pp-timeline-item:nth-child(odd) img {
  margin: -45px -30px 0 30px;
  width: 140px;
}
.pp-timeline-item:nth-child(even) img {
  margin: -45px 30px 0 -30px;
  width: 140px;
}
.pp-timeline-item:nth-child(even) .pp-timeline-title {
  margin-left: 140px;
}

@media(max-width: 980px) {
  .pp-timeline-item:nth-child(odd) img {
    margin: -20px -15px 0 15px;
    width: 100px;
  }
  .pp-timeline-item:nth-child(even) img {
    margin: -20px 15px 0 -15px;
    width: 100px;
  }
  .pp-timeline-item:nth-child(even) .pp-timeline-title {
    margin-left: 100px;
  }
  .pp-timeline-item .pp-timeline-title {
    font-size: 14px !important;;
  }
  .pp-timeline-item .pp-timeline-text {
    margin-top: -15px;
  }
}

@media(max-width:768px) {
  .pp-timeline-text-wrapper {
    padding-bottom: 0 !important;
  }
  .pp-timeline-item:nth-child(odd) img {
    margin: 0 0 0 0;
    width: 150px;
  }
  .pp-timeline-item:nth-child(even) img {
    margin: 0 0 0 0;
    width: 150px;
  }
  .pp-timeline-item:nth-child(even) .pp-timeline-title {
    margin-left: 0px;
  }
  .pp-timeline-item .pp-timeline-title {
    font-size: 14px !important;;
  }
  .pp-timeline-item .pp-timeline-text {
    margin-top: 10px;
  }
}

/* GALLERIES */
.fl-module-gallery .fl-photo-caption-below {
  color: #001E4E;
  font-size: 20px;
  font-weight: 600;
  margin-top: 10px;
}
@media(max-width: 768px) {
  .fl-module-gallery .fl-photo-caption-below {
    font-size: 14px;
  }  
}


.price-detail em {
  font-size: 14px !important;
  font-style: normal;
}



/* TEAM */

.fl-post-grid-post {
  border: none;
  border-bottom: 5px solid #fff;
  box-shadow: 0px 5px 30px #00000029;
  transition: 0.5s ease;
}
.fl-post-grid-post:hover {
  border-bottom: 5px solid #B9A899;
}

.team {
  position: relative;
  cursor: pointer;
  padding: 30px 10px 5px 10px;
}

.team > .fl-post-image {
  margin: 0 auto;
  border-radius: 100%;
  width: 122px;
  height: 122px;
  text-align: center;
  position: relative;
}


.team > .fl-post-image img {
  border-radius: 100%;
  width: 122px;
  height: 122px;
  object-fit: cover;
  object-position: center;
  padding: 5px;
  transform: scale(1);
  transition: 0.5s ease;
}

.team h4 {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin: 0 !important;
  padding: 20px 0;
}
.team h5 {
  color: #BAA898;
  font-size: 14px;
  text-align: center;
}
.team span.team-more {
  text-align: center;
  color: #BAA898;
  display: block;
  font-size: 13px;
  font-weight: 400;
}
.team .read-more {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 2;
  top: 0;
  left: 0;
}

.team .modal {
  display: none;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 99;
  background-color: rgba(162, 143, 143, 0.4);
}
.team .modal.active {
  display: block;
  z-index: 100;
}
.team .modal.active .people-list {
  animation: activeModal 0.5s ease-in-out 1;
}
.team .modal .people-list {
  padding: 60px;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 600px;
  transition: 0.3s;
  text-align: left;
}
.team .modal .people-list .fl-post-image {
  height: 140px !important;
  width: 140px !important;
}
.team .modal .people-list .fl-post-image img {
  border-radius: 100%;
  width: 140px;
  height: 140px;
  object-fit: cover;
  position: center;
}
@media(min-width: 601px) {
  .team .modal .people-list .fl-post-text h2 {
    margin-top: 0px;
    position: absolute;
    left: 230px;
    top: 110px;
  }
  .team .modal .people-list .fl-post-text h3 {
    margin-top: 0px;
    position: absolute;
    left: 230px;
    top: 140px;
  }
}
.team .modal .people-list .fl-post-text {
  font-size: 17px;
  margin-top: 20px;
  padding: 0;
}
.team .modal .people-list .fl-post-text p {
  margin-bottom: 0;
}

.modal h5.job {
    text-align: left;
}

@media only screen and (max-width: 600px) {
  .team .modal .people-list {
    padding: 30px;
  }
  .team .modal .people-list .fl-post-text h2 {
    margin-top: 0px;
  }
}
.team .modal .people-list .fl-post-text h2, .team .modal .people-list .fl-post-text h3, .team .modal .people-list .fl-post-text h4 {
  text-align: left;
}
@media only screen and (max-width: 600px) {
  .team .modal .people-list {
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .team .modal .people-list .fl-post-text {
    width: 100%;
    padding: 20px 0 0 !important;
  }
}
.team .modal .people-list .close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #37354d;
}
.team .modal.modalScrollable .people-list .fl-post-text {
  overflow-y: scroll;
}
@keyframes activeModal {
  0% {
    top: 150%;
    transform: translate(-50%, -50%);
  }
  100% {
    top: 50%;
    transform: translate(-50%, -50%);
  }
}


/* CAROUSEL */

.owl-item {
  border: none;
  border-bottom: 5px solid #fff;
  box-shadow: 0px 5px 30px #efefef;
  transition: 0.5s ease;
  margin-right: 30px; 
}
.owl-item:hover {
  border-bottom: 5px solid #B9A899;
}
.owl-item .pp-content-post {
  margin: 0 auto !important;
  width: 100%;
}
.team {
  position: relative;
  cursor: pointer;
  padding: 30px 10px 5px 10px;
}
.owl-item .team h2 {
  padding-bottom: 5px !important;
}

@media all and (max-width: 768px) {
  .post-carousel {
    overflow: hidden !important;
  }
}
.post-carousel .pp-content-posts-inner {
  overflow: visible;
  clip-path: inset(-100vw -100vw -100vw 0%);
}
.post-carousel .owl-nav button {
  top: auto;
  left: 235px;
  bottom: 160px;
  padding: 0;
  background: #FAF5F1 !important;
}
.post-carousel .owl-nav button:hover {
  background: #BAA899 !important;
}
.post-carousel .owl-nav button:hover svg {
  color: #fff !important;
}
.post-carousel .owl-nav button svg {
  color: #BAA899 !important;
  width: 40px !important;
  height: 40px !important;
  padding: 5px !important;
}
.post-carousel .owl-nav button.owl-prev {
  left: 180px !important;
}
.post-carousel .owl-nav button.owl-next {
  right: 30px !important;
}

@media only screen and (max-width: 768px) {
  .post-carousel .owl-nav button.owl-prev {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50px);
  }
  .post-carousel .owl-nav button.owl-next {
    left: auto !important;
    right: 50% !important;
    transform: translateX(50px);
  }
}

/* GRAVITY FORM MARGIN FIX */
.gform_wrapper .ginput_complex input {
  margin-bottom: 0 !important;
}
.gform_wrapper .ginput_complex span {
  margin-bottom: 0 !important;
}
.ginput_container_textarea {
    line-height: 0 !important;
}
@media(max-width:768px) {
    .name_first {
        padding-bottom: 10px;
    }
}

/*Info pack form*/
#input_7_8_1, #input_7_8_2, #input_7_8_3, #input_7_8_5 {
	margin-bottom: 10px !important;
}

/* Landing Pages */

.gsection_title {
  margin-bottom: 0px;
}
#field_9_15 {
  margin-top: 20px;
}

.gptos_terms_container {
  width: 100% !important;
}

#input_9_8_1_container,
#input_9_8_3_container {
  margin-bottom: 13px !important;
}

/* ---------------------- */
/* FUNERAL NOTICES - Site Colours */
/* ---------------------- */

.fn_table th {
	background: #001e4e !important;
}

@media screen and (min-width: 993px) {
	tr.parent:nth-child(4n+1) {
		background: #f9f5f1 !important;
	}
}

@media screen and (max-width: 992px) {
		td.fn_name {
		background-color: #001e4e !important;
		color: #fff;
	}
}

span.fn_icon-down.toggle {
color: #baa898;
}

tr.parent:nth-child(4n+1) {
  /* background: #f1f1f1; */
}

td.fn_stream_link {
  color: #162779;
}

td table td.fn_stream_link a {
  color: #162779 !important;
}

.fn_icon-streaming {
  color: #baa898;
}

.fn_icon-streaming:hover {
  color: #162779;
}

.streaming .fn_icon-streaming:hover {
  color: #baa898;
}

td.fn_location a,
td.fn_streaming a {
	color: #595959;
}

.fn_send_tribute .btn.wpbf-button{
	padding: 10px 25px;
	background: #baa898;
	font-size: 1.0em !important;
	font-weight: 600 !important;
	letter-spacing: 1px;
	text-transform: capitalize!important;
	color: #ffffff;
	border-radius: 5px;
}

.fn_send_tribute .btn.wpbf-button:hover {
	background-color: #001e4e;
	color: #ffffff;
}

.fl-rich-text .fn_icon-streaming:hover {
	color: #baa898;
}

.acf-button {
  background: #001e4e !important;
  text-transform: uppercase;
  color: #fff !important;
  letter-spacing: 1.5px;
}

.acf-radio-list li label,
.acf-checkbox-list span {
  font-size: 1.2em;
}

#menu-funeral-notices li.current-menu-item a {
  border-bottom-color: #001e4e !important;
}

/* End Funeral Notices */


.parent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}

.child {
  padding: 10px;
}

.number {
    font-size: 30px;
    font-family: ;
}

/*Responsive*/
@media only screen 
  and (min-width: 768px) 
  and (max-width: 1024px)  {
      .parent {
    grid-template-columns: repeat(3, 1fr);
      }
}

@media only screen and (max-width: 767px){
    .parent {
     grid-template-columns: repeat(1, 1fr);
    }
}
