/* FONTS */

@import url('https://fonts.googleapis.com/css?family=Courgette|Montserrat:500,500i,700,700i,800,800i&subset=latin-ext');

/* GENERAL STYLES */

* {
  box-sizing: border-box;
  font-family: inherit;
}
*:not(a[href]) {
  color: inherit;
}

body {
  scroll-behavior: smooth;
  overflow-X: hidden;
  margin: 0;
  padding: 0; padding: constant(safe-area-inset-top) constant(safe-area-inset-right) constant(safe-area-inset-bottom) constant(safe-area-inset-left);
  background: #fff;
  color: #2c3e50;
  font-family: Montserrat, sans-serif; font-feature-settings: "kern" 1, "liga" 1; font-size: 12pt; font-weight: 500;
  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
  -webkit-oveflow-scrolling: touch;
}

a[href] {
  transition: color .25s ease-in;
}
a[href] img {
  border: 0;
}
table {
  border-collapse: collapse;
}
tr, td, th {
  vertical-align: top;
}

/* BASIC WORDPRESS STRUCTURAL STYLES */

.alignnone {
  margin: 0;
}
.aligncenter, div.aligncenter {
  display: block;
  margin-right: auto; margin-left: auto;
}
.alignright {
  float: right;
  margin: 0 0 2rem 2rem !important;
}
.alignleft {
  float: left;
  margin: 0 0 2rem 2rem !important;
}
.clear {
  zoom: 1;
}
.clear:before, .clear:after {
  content: '';
  clear: both;
  display: block;
  width: 0; height: 0;
}

@media screen and (max-width: 800px) {
  .alignleft, .aligncenter, .alignright {
    float: none !important;
    margin: 0 auto 2rem !important;
  }
}

/* SKIP-LINK STYLES  */

a[href]#skip-link {
  position: absolute;
  top: 0; right: 100%; z-index: 9999;
  background: #fff;
  color: #00f;
}
a[href]#skip-link:focus {
  right: auto;
}

/* GENERAL STYLES */
/* Courgette is being used for headers, but inconsistently so */

main {
   background-repeat: no-repeat; background-position: 50% 0%; background-size: 100% auto;
   margin: 0; padding: .0625rem;
}
main a[href]:link, main a[href]:visited {
  color: #2a81ba;
}
main a[href]:active, main a[href]:focus, main a[href]:hover {
  color: #16a085;
}
main cite {
  display: block;
  margin-top: -1em;
  font-size: .75rem;
  text-align: right;
}
main h1 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem; font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}
main h2 {
  margin-top: 4rem;
  font-size: 1.3rem; font-weight: 700;
  line-height: 1.2;
}
main h3 {
  font-size: 1.1rem; font-style: italic; font-weight: 700;
  line-height: 1.2;
}
main h1 + *, main h2 + *, main h3 + * {
  margin-top: 0;
}
main img {
  max-width: 100%;
  height: auto;
}
main li {
  margin-bottom: .25rem;
  line-height: 1.4;
}
main p {
  line-height: 1.6;
}
main section {
  overflow: hidden;
}
main sup {
  vertical-align: top;
}

section {
  width: 100%;
  margin: 4rem auto;
}
section > *:first-child {
  margin-top: 0;
}
section > *:last-child {
  margin-bottom: 0;
}
		
section.width-full {
  padding: 0;
}
section.width-wide {
  max-width: 1640px;
  padding: 0 2rem;
}
section.width-medium {
  max-width: 1240px;
  padding: 0 2rem;
}
section.width-narrow {
  max-width: 1000px;
  padding: 0 2rem;
}
div.width-narrow {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}


@media screen and (max-width: 1240px) {
  section.width-wide {
    padding: 0 1rem;
  }
  section.width-medium {
    padding: 0 1rem;
  }
}

@media screen and (max-width: 1000px) {
  section {
    margin: 2rem auto;
    padding: 2rem 0;
  }
}

/* ANIMATION KEYFRAMES */

@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes slideUp {
  to { transform: translateY(0); }
}

/* BUTTONS */

a[href].button {
  display: inline-block;
  min-width: 180px;
  max-width: 320px;
  padding: .5em 1em;
  color: #fff !important;
  background: #2a81ba;	
  font-size: 1rem; font-weight: 700;
  line-height: 1;
  text-align: center; text-decoration: none; text-transform: uppercase;
  transition: background .25s ease-in;
}
li:nth-of-type(odd) a[href].button {
  background: #16a085;
}
a[href].button:active, a[href].button:focus, a[href].button:hover {
  background: #2c3e50 !important;
}

a[href].button.large {
  max-width: 640px;
  font-size: 1.8rem;
}
a[href].button.return-cart {
  min-width: 180px;
  margin-left: .75rem;
  padding: .5em;	
  background: #2c3e50;
}
a[href].button.return-cart img {
  display: inline-block;
  width: 1rem; height: 1rem;
  line-height: 1rem;
  vertical-align: top;
}

/* NAVIGATION: SUPPORT ELEMENTS */

ul[id*="support-elements"] {
  list-style-type: none;
  display: inline-flex; flex-flow: row nowrap;
  margin: 0;
  padding: 0;
  font-size: 1rem; font-weight: 700;
}
ul[id*="support-elements"] a[href] {
  display: block;
  min-width: 180px;
  padding: .5em;
  color: #fff !important;
  line-height: 1;
  text-align: center; text-decoration: none; text-transform: uppercase;
  transition: background .25s ease-in;
}
ul[id*="support-elements"] li:nth-child(odd) a[href]:link, ul[id*="support-elements"] li:nth-child(odd) a[href]:visited {
  background: #16a085;
}
ul[id*="support-elements"] li:nth-child(even) a[href]:link, ul[id*="support-elements"] li:nth-child(even) a[href]:visited {
  background: #2a81ba;
}
ul[id*="support-elements"] li a[href]:active, ul[id*="support-elements"] li a[href]:focus, ul[id*="support-elements"] li a[href]:hover {
  background: #2c3e50 !important;
}

@media screen and (max-width: 400px) {
  ul[id*="support-elements"] {
    flex-flow: column;
  }
  ul[id*="support-elements"] li {
    margin-top: .5em;
  }
}

/* NAVIGATION: WITHIN SECTION */

section#nav-within {
  display: flex; flex-flow: row nowrap; justify-content: space-between;
  font-size: 1.1rem; font-weight: 700;
  text-align: center; text-transform: uppercase;
}
section#nav-within a[href] {
  line-height: 1;
  text-decoration: none !important;
}
section#nav-within a[rel="prev"] {
  margin-right: auto;
}
section#nav-within a[rel="next"] {
  margin-left: auto;
}

@media screen and (max-width: 1240px) {
  section#nav-within {
    flex-flow: column; align-items: center;
  }
  section#nav-within a[href] {
    margin: 0;
  }
  section#nav-within a[href] + a[href] {
    margin-top: .5em;
  }
}

/* NAVIGATION: ABOVE SECTION */

section#nav-above {
  display: flex; flex-flow: row nowrap; justify-content: center;
  margin-top: -2rem;
  font-size: 1.1rem; font-weight: 700;
  text-align: center; text-transform: uppercase;
}
section#nav-above a[href] {
  display: block;
  line-height: 1;
  text-decoration: none !important;
}

@media screen and (max-width: 1240px) {
  section#nav-above {
    flex-flow: column; align-items: center;
  }
  section#nav-above a[href] {
    margin: 0;
  }
}

header {
  display: flex; flex-flow: column; justify-content: flex-start;
  position: relative;
  padding: 4rem 0;
  background-position: 50% 50%; background-size: cover;
}
header:after {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0; z-index: 0;
  width: 100%;
  height: 100%;
  background: #2c3e50;
  opacity: .8;
}
header a[href] {
  text-decoration: none !important;
}
header a[href]:link, header a[href]:visited {
  color: #fff;
}
header a[href]:active, header a[href]:focus, header a[href]:hover {
  color: #2a81ba;
}

header a[href]#logo {
  width: 400px;
  flex-grow: 0; flex-shrink: 1;
  text-align: center;
}
header a[href]#logo img {
  width: 100%;
  height: auto;
}
header section#navigation {
  display: flex; flex-flow: row wrap; justify-content: space-between;
  position: relative;
  z-index: 10;
  margin: 0 auto;
}
header section#navigation:after {
  content: "";
  display: block;
  width: 90%;
  height: 3px;
  margin: 2rem auto 0;
  border: 0;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 25%, rgba(255,255,255,1) 75%, rgba(255,255,255,0) 100%) center/ 100% 1px no-repeat, linear-gradient(to right, rgba(255,255,255,0) 20%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 80%) center/ 100% 3px no-repeat;
}

button#expand {
  display: inline-block;
  flex-grow: 0; flex-shrink: 0;
  overflow: visible;
  margin: 0 0 0 auto;
  padding: 15px;
  border: 0;
  background-color: transparent;
  color: inherit;
  font: inherit;
  text-transform: none;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
}
.hamburger-box {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 24px;
}
.hamburger-inner {
  display: block;
  top: 2px;
  margin-top: -2px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  position: absolute;
  width: 40px;
  height: 3px;
  border-radius: 4px;
  background-color: #fff;
  transition: transform .15s ease-in;
}
.hamburger-inner::before, .hamburger-inner::after {
  content: "";
  display: block;
}
.hamburger-inner::before {
  top: 10px;
  transition-property: transform, opacity;
  transition-timing-function: ease;
  transition-duration: 0.15s;
}
.hamburger-inner::after {
  top: 20px;
}
button#expand.is-active .hamburger-inner {
  transform: translate3d(0, 10px, 0) rotate(45deg);
}
button#expand.is-active .hamburger-inner::before {
  transform: rotate(-45deg) translate3d(-5.71429px, -6px, 0);
  opacity: 0;
}
button#expand.is-active .hamburger-inner::after {
  transform: translate3d(0, -20px, 0) rotate(-90deg);
}

header ul[id*="main-sitemap"] {
  list-style-type: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
header ul[id*="main-sitemap"] > li > a[href] {
  font-weight: 700;
  text-transform: uppercase;
}
header ul[id*="main-sitemap"] > li > ul {
  list-style-type: none;
  margin: 0;
  font-size: 80%;
}
header ul[id*="support-elements"] {
  justify-content: flex-end;
  margin-bottom: 1rem;
}
header ul[id*="support-elements"] li + li {
  margin-left: 1rem;
}

@media screen and (min-width: 1001px) {
  header {
    height: 50vh;
    max-height: 400px;
  }
  header button#expand {
    display: none;
  }
  header nav {
    flex-grow: 1; flex-shrink: 0;
    display: flex; flex-flow: column; justify-content: space-between; align-items: flex-end;
    width: calc(100% - 400px);
    padding-left: 1rem;
  }	
  header ul[id*="main-sitemap"] {
    display: flex; flex-flow: row nowrap; justify-content: flex-end;
  }
  header ul[id*="main-sitemap"] > li > a[href] {
    display: inline-block;
    padding: .5rem .75rem;
  }	
  header ul[id*="main-sitemap"] > li:hover > a[href] {
    background: #2c3e50;
  }
  header ul[id*="main-sitemap"] > li:hover > ul {
    display: block;
  }	
  header ul[id*="main-sitemap"] > li > ul {
    display: none;
    position: absolute;
    z-index: 100;
    padding: .5rem 1rem 1.5rem;
    background: #2c3e50;
    box-shadow: .25rem 1rem .75rem rgba(0,0,0,.2);
  }
  header ul[id*="main-sitemap"] > li > ul > li {
    margin-top: .5rem;
  }
}
@media screen and (min-width: 1001px) and (max-height: 800px) {
  header {
    height: 400px;
  }
}

@media screen and (min-width: 1240px) and (max-width: 1600px) {
  header ul[id*="main-sitemap"] > li:last-child > ul {
    right: 2rem;
  }
}

@media screen and (max-width: 1240px) {
  header nav {
    width: 100%;
  }
  header section#navigation {
    width: 100%;
    justify-content: center;
  }
  header ul[id*="main-sitemap"] {
    margin-top: 2rem;
    justify-content: center;
  }
  header div.support {
    margin: 2rem auto 0; text-align: center;	
  }
}

@media screen and (max-width: 1000px) {
  header {
    padding: 2rem 0;
  }
  header button#expand {
    display: block;
  }
  header section#navigation {
    flex-flow: row wrap; justify-content: space-between;
  }
  header ul[id*="main-sitemap"] {
    display: none;
  }
  header ul[id*="main-sitemap"] a[href] {
    display: block;
  }
  header ul[id*="main-sitemap"] > li > ul {
    display: none;
    padding: 0 0 1rem 1rem;
  }
}

@media screen and (max-width: 640px) {
  header a[href]#logo {
    width: calc(100% - 80px);
  }
}

/* FOOTER */

footer {
  border-top: 2rem solid #2c3e50;
  font-size: .75rem;
}
footer div#sitemap {
  display: flex; flex-flow: row nowrap; justify-content: space-between;
  margin-bottom: 8rem;
}
footer a[href] {
  text-decoration: none !important;
}
footer a[href]:link, footer a[href]:visited {
  color: #2c3e50;
}
footer a[href]:active, footer a[href]:focus, footer a[href]:hover {
  color: #2a81ba;
}
footer p#contact-info {
  flex-basis: 200px;
  margin: 0;
  padding: 0 1rem 0 0;
}
footer p#contact-info a[href], footer p#contact-info addr, footer p#contact-info strong {
  display: inline-block;
  margin-bottom: .5em;
}

footer p#copyright {
  color: #cccccc;
}
footer ul[id*="main-sitemap"] {
  list-style-type: none;
  flex-basis: 1400px;
  display: flex; flex-flow: row nowrap; justify-content: space-between;
  margin: 0;
  padding: 0;
}
footer ul[id*="main-sitemap"] > li {
  flex-basis: 200px; flex-grow: 1;
  padding-right: 1rem;
}
footer ul[id*="main-sitemap"] > li > a[href] {
  font-weight: 700;
}
footer ul[id*="main-sitemap"] > li > a[href*="cemeteries"] + ul {
  display: none;
}
footer ul[id*="main-sitemap"] > li > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
footer ul[id*="main-sitemap"] > li > ul > li {
  margin-top: .5em;
}
footer ul[id*="support-elements"] {
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4rem;
}

@media screen and (max-width: 1240px) {
  footer div#sitemap {
    margin-bottom: 4rem;
  }
  footer div#sitemap ul[id*="main-sitemap"] {
    display: none;
  }
  footer ul[id*="support-elements"] {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 1000px) {
  footer div#sitemap {
    margin-bottom: 2rem;
  }
  footer ul[id*="support-elements"] {
    margin-bottom: 1rem;
  }
}

/* HOME PAGE STYLE ADJUSTMENTS */

body.home-page main h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem; font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

@media screen and (min-width: 1001px) {
  body.home header {
    max-height: 600px;
  }
}
@media screen and (min-width: 1001px) and (max-height: 1200px) {
  body.home header {
    height: 600px;
  }
}

/* HOME PAGE QUOTES */

section#quotes {
  flex-grow: 1;
  display: flex; flex-flow: column; justify-content: center;
  position: relative;
  z-index: 5;
  color: #fff;
  text-align: center;
}
section#quotes h1 {
  font-family: Courgette,cursive; font-size: 2.4rem; font-weight: 500;
}

@media screen and (max-width: 1000px) {
  section#quotes h1 {
    font-size: 1.8rem;
  }
}

/* HOME PAGE SPOTLIGHTS */

section.spotlight {
  display: flex; flex-flow: row wrap; justify-content: center;
}
section.spotlight a[href] {
  display: block;
  position: relative;
  width: 33%; max-width: 375px;
  overflow: hidden;
  margin: .5rem;
  background: #2c3e50;
  color: #fff !important;
  text-decoration: none !important;
  opacity: 0;
}
section.spotlight.animating a[href] {
  animation: fadeIn 2s 1 forwards;
}
section.spotlight a[href] img {
  display: block;
  width: 100%;
  height: auto;
}
section.spotlight strong {
  position: absolute;
  text-align: center;
}

@media screen and (prefers-reduced-motion: reduce) {
  section.spotlight a[href] {
    opacity: 1;
    animation: none;
  }	
}

/* HOME PAGE SPOTLIGHT: TOP */

section#spotlight-top a[href] img {
  opacity: .6;
  transform: scale(1);
  transition: opacity .25s ease-in, transform .25s ease-in;
}
section#spotlight-top a[href]:active img, section#spotlight-top a[href]:focus img, section#spotlight-top a[href]:hover img {
  opacity: .8;
  transform: scale(1.2);
}
section#spotlight-top a[href] strong {
  display: flex; flex-flow: column; justify-content: center; /* align-items: center; */
  bottom: 0; left: 0;
  width: calc(100% - 5rem);
  margin: 1rem 2.5rem;
  border: 2px solid #fff; border-width: 2px 0;
  padding: .5rem 0;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  filter: drop-shadow(2px 2px 1px #2c3e50);
}
section#spotlight-top a[href] strong small {
  display: block;
  margin-top: .5rem;
  font-size: .75rem;
}

@media screen and (max-width: 1240px) {
  section#spotlight-top a[href] {
    width: 30%;
  }
}

@media screen and (max-width: 1024px) {
  section#spotlight-top a[href] {
    width: 50%;
  }
}

@media screen and (max-width: 800px) {
  section#spotlight-top a[href] {
    width: 100%;
  }
  section#spotlight-top a[href] strong {
	width: calc(100% - 2.5rem);
	margin: 1rem 1.25rem;
	padding: .25rem 0;
	font-size: 1.25rem;
  }
}

/* HOME PAGE SPOTLIGHT: BOTTOM */

section#spotlight-bottom a[href] img {
  opacity: .2;
  transition: opacity .25s ease-in;
}
section#spotlight-bottom a[href]:active img, section#spotlight-bottom a[href]:focus img, section#spotlight-bottom a[href]:hover img {
  opacity: .6;
}
section#spotlight-bottom a[href] strong {
  display: flex; flex-flow: column; justify-content: center; align-items: center;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem 2.5rem;
  text-shadow: 0 0 .25em #2c3e50;
}

@media screen and (max-width: 1240px) {
  section#spotlight-bottom a[href] {
    width: 50%;
  }
}

@media screen and (max-width: 800px) {
  section#spotlight-bottom a[href] {
    width: 100%;
  }
}

/* HOME PAGE TESTIMONIALS */

section#testimonials {
  display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: stretch;
  margin-bottom: 0rem;
  padding: 0 0 2rem !important;
  font-size: .75rem;
}
section#testimonials p {
  display: flex; flex-flow: column;
  width: calc(33.3% - .25rem);
  margin: 0;
  padding: 2rem 4rem;
  color: #fff;
  transform: translateY(200%);
}
section#testimonials.animating p {
  animation: slideUp 2s 1 forwards;
}
section#testimonials p:nth-child(3n+1) {
  background: #2c3e50;
}
section#testimonials p:nth-child(3n+2) {
  background: #16a085;
}
section#testimonials p:nth-child(3n+3) {
  background: #2a81ba;
}
section#testimonials p span {
  margin-bottom: 1rem;
}
section#testimonials p strong {
  margin-top: auto;
}

@media screen and (max-width: 1240px) {
  section#testimonials p {
    padding: 1rem 2rem;
  }
}

@media screen and (max-width: 1000px) {
  section#testimonials {
    flex-flow: column;
  }
  section#testimonials p {
    width: 100%;
    margin: 0 0 .25rem;
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  section#testimonials p {
    transform: none;
    animation: none;
  }	
}

/* CEMETERY PAGES */

section.gmap iframe {
  width: 100% !important;
}
section.gmap ul {
  list-style-type: none;
  display: flex; flex-flow: row nowrap; justify-content: flex-end; align-items: center;
  margin: 0;
  padding: .75rem 1rem;
  background: #2c3e50;
  font-size: 1rem; font-weight: 700;
}
section.gmap li {
  padding: 0 .5rem;
}
section.gmap li:first-child {
  margin-right: auto;
  color: #fff;
  font-size: 130%;
  line-height: 1;
}
section.gmap a[href] {
  display: block;
  min-width: 180px;
  padding: .5em;
  color: #fff !important;
  line-height: 1;
  text-align: center; text-decoration: none; text-transform: uppercase;
  transition: background .25s ease-in, color .25s ease-in;
}
section.gmap li:nth-child(even) a[href]:link, section.gmapli:nth-child(odd) a[href]:visited {
  background: #16a085;
}
section.gmap li:nth-child(odd) a[href]:link, section.gmapli:nth-child(even) a[href]:visited {
  background: #2a81ba;
}
section.gmap li a[href]:active, section.gmap li a[href]:focus, section.gmap li a[href]:hover {
  background: #fff !important;
  color: #2c3e50 !important;
}

@media screen and (min-width: 1001px) {
  body.page-template-template-cemetery header {
    max-height: 500px;
  }
  section.gmap iframe {
    height: 600px !important;
  }
}

@media screen and (max-width: 1080px) {
  section.gmap iframe {
    height: 400px !important;
  }
  section.gmap ul {
    flex-flow: row wrap; justify-content: center;
  }
  section.gmap li:first-child {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
  }
}

/* CONTACT FORM 7 STYLES */

div.wpcf7 div.checkboxes {
  display: block !important;
  padding: .5rem 0 1rem !important;
}
div.wpcf7 div.checkboxes span.wpcf7-list-item {
  display: block;
}
div.wpcf7 div.row {
  border: 0;
  padding: 0;
}
div.wpcf7 div.row2 {
  padding: .5rem 0 1rem;
}
div.wpcf7 div.row:not(.checkboxes) label {
  display: none;
}
div.wpcf7 span.wpcf7-not-valid-tip {
  display: none;
}
div.wpcf7 input[type="email"], div.wpcf7 input[type="tel"], div.wpcf7 input[type="text"], div.wpcf7 textarea {
  width: 100%;
  margin: 0 0 .5em;
  border: 2px solid #2c3e50;
  padding: .75rem 1rem;
  color: #2c3e50;
  font-size: 1.1rem;
  line-height: 1;
  transition: all .25s ease-in;
}
div.wpcf7 input[type="email"]::placeholder, div.wpcf7 input[type="tel"]::placeholder, div.wpcf7 input[type="text"]::placeholder, div.wpcf7 textarea::placeholder {
  color: #2c3e50;
  transition: all .25s ease-in;
}
div.wpcf7 input[type="email"]:focus, div.wpcf7 input[type="tel"]:focus, div.wpcf7 input[type="text"]:focus, div.wpcf7 textarea:focus {
  border-color: #2a81ba;
  color: #2a81ba;
  outline: none;
}
div.wpcf7 input[type="email"]:focus::placeholder, div.wpcf7 input[type="tel"]:focus::placeholder, div.wpcf7 input[type="text"]:focus::placeholder, div.wpcf7 textarea:focus::placeholder {
  color: #2a81ba;
}
div.wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  margin: 0 auto;
  border: 0;
  padding: .5rem 1rem;
  background: #2a81ba;
  color: #fff;
  font-size: 1.3em; font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: all .25s ease-in;
}
div.wpcf7 input[type="submit"]:active, div.wpcf7 input[type="submit"]:focus, div.wpcf7 input[type="submit"]:hover {
  background: #16a085;
}
div.wpcf7 input.wpcf7-not-valid {
  border-color: red;
  color: red;
}
div.wpcf7 select {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1.1em;
}

@media screen and (min-width: 720px) {
  div.wpcf7 div.row {
    display: flex; flex-flow: row nowrap; justify-content: space-between;
    border: 0;
    padding: 0;
  }
  div.wpcf7 input.fifty {
    width: 50%; width: calc(50% - .5rem);
  }
  div.wpcf7 input.thirty {
    width: 35%; width: calc(35% - .75rem);
  }
  div.wpcf7 input.ten {
    width: 15%; width: calc(15% - .75rem);
  }
}

/* PRINT STYLES */

@media print {
  body {
    color: #000;
    font-size: 10pt;
  }
  body > *:not(main) {
    display: none;
  }
  section {
    max-width: 100% !important;
    margin: 2rem 0 !important;
    padding: 0 !important;
  }
  section#nav-within, section.spotlight, section#testimonials {
    display: none;
  }
}

/* SERVICES PAGE PHOTO ROW */

section#photorow {
  display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: stretch;
  margin-bottom: 0rem;
  padding: 0 0 2rem !important;
  font-size: .75rem;
}
section#photorow img {
  display: flex; flex-flow: column;
  width: calc(33.3% - .25rem);
  height: auto;
  margin: 0;
  color: #fff;
  transform: translateY(200%);
}
section#photorow.animating img {
  animation: slideUp 2s 1 forwards;
}

@media screen and (max-width: 1000px) {
  section#photorow {
    flex-flow: column;
  }
  section#photorow img {
    width: 100%;
    margin: 0 0 .25rem;
  }
}

section#photorow img:nth-of-type(1) { animation-delay: 0s; }
section#photorow img:nth-of-type(2) { animation-delay: .5s; }
section#photorow img:nth-of-type(3) { animation-delay: 1s; }

@media screen and (min-width: 1025px) {
  div#respond, div#thanks {
    padding: 2rem;
  }
  form#commentform p.comment-form-author, form#commentform p.comment-form-email, form#commentform div.acf-fields div[data-name="relationship"], form#commentform div.acf-fields div[data-name="date_of_memory"] {
    width: 50%; width: calc(50% - .5rem);
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  section#photorow img {
    transform: none;
	animation: none;
  }	
}

/* BURIAL RECORDS */

section#record aside {
  font-size: 80%;
}
section#record aside div.thumb {
  width: 100%; text-align: center;
  margin-bottom: 2rem;	
}
section#record aside img.attachment-post-thumbnail {
  border: 3px solid #2a81ba;
}
section#record aside ul.about {
  list-style-type: none;
  margin: 0 0 2rem;
  border: 3px solid #2a81ba;
  padding: 1rem;
  background: #fff;
}
section#record aside ul.about:before {
  content: "About";
  display: block;
  margin: 0 0 1rem;
  font-size: 1.3rem; font-weight: 700;
  text-align: center;
}
section#record aside ul.about li {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}
section#record aside ul.about li span {
  padding-left: .5rem;
  text-align: right;
}
section#record aside ul.share {
  list-style-type: none;
  margin: 0 0 2rem;
  border: 3px solid #2a81ba;
  padding: 1rem;
  background: #fff;
  text-align: center;	
}
section#record aside ul.share:before {
  content: "Share";
  display: block;
  margin: 0 0 1rem;
  font-size: 1.3rem; font-weight: 700;
}
section#record aside ul.share li {
  display: inline-block;
  vertical-align: top;
}
section#record aside ul.share li + li {
  margin-left: 1rem;
}
section#record aside ul.share li a[href] img {
  transition: transform .25s ease-in;
}
section#record aside ul.share li a[href]:active img, section#record aside ul.share li a[href]:focus img, section#record aside ul.share li a[href]:hover img {
  transform: scale(1.2);
}
section#record div.order {
  margin: 0 0 2rem;
  text-align: center;
}
section#record div.order img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
section#record h1 {
  width: 100%;
  margin: 0 0 2rem;
  color: #2a81ba;
  font-size: 300%;
  text-transform: none;	
}
section#record div#obit:not(:empty) {
  margin-bottom: 4rem;
  border: 3px solid #2a81ba;
  padding: 1rem;
}

div#memories {
  max-height: 800px;
  overflow-Y: scroll;
  margin-bottom: 2rem;
  border: 3px solid #2a81ba;
  padding: 1rem;
}
div#memories:empty {
  display: none;
}
div#memories div.photos img {
  width: 75px;
  height: 75px;
  margin: 0 .5rem .5rem 0;
  border: 1px solid #cccccc;
}
div#memories h2 {
  margin-top: 0;
}
div#memories h2 small {
  font-size: 80%;
  font-weight: 500;
}
div#memories div + div {
  margin-top: 3rem;
}
div#memories p {
  font-size: 80%;
}
div#memories ul {
  list-style-type: none;
  margin-top: -1rem; margin-left: 0;
  padding-left: 0;
  color: #cccccc;
  font-size: 80%;
  text-transform: capitalize;
}

@media screen and (min-width: 1240px) {
  section#record {
    overflow: visible;
    display: flex; flex-flow: row wrap; justify-content: space-between;
  }	
  section#record aside {
    width: 20%;
    min-width: 240px;
    flex-shrink: 0;
  }
  section#record article {
    width: 60%;
    flex-grow: 1; flex-shrink: 1;
    padding-left: 4rem;
  }
  div#memories {
    padding: 2rem;
  }
}

@media screen and (min-width: 1001px) {
  body.burial-record header {
    max-height: 600px;
  }
  div#memories ul {
    display: flex;
    flex-flow: row nowrap;	
  }
  div#memories li:first-child {
    margin-right: auto;
  }
  div#memories li + li {
    margin-left: 1rem;
 }
}
@media screen and (min-width: 1001px) and (max-height: 1200px) {
  body.burial-record header {
    height: 600px;
  }
}
@media screen and (max-width: 1239px) {
  section#record aside div.order a[href].button {
    display: block;
    margin: 0 auto;
  }
}

@media screen and (max-width: 1239px) and (min-width: 800px) {
  section#record aside {
    display: flex; flex-flow: row wrap; justify-content: space-between;
  }
  section#record aside > * {
    flex-shrink: 0;
    width: 30%; max-width: 320px;
  }
  section#record aside > div.thumb {
    width: 100%; max-width: 100%;
  }
  section#record aside ul.share {
    flex-shrink: 1;
  }
  section#record aside h1 {
    width: 100%; max-width: 100%;
  }
}


/* COMMENT FORMS */

div#respond, div#thanks {
  border: 3px solid #2a81ba;
  padding: 1rem;
}
div#respond h2, div#thanks h2 {
  margin-top: 0;
}
div#thanks {
  margin-bottom: 2rem;
}
p.ajax-success {
  padding: .5rem 1rem;	
  background: #16a085;
  color: #fff;
}
form#commentform {
  display: flex; flex-flow: row wrap; justify-content: space-between;
}
form#commentform .acf-input-prepend, form#commentform .acf-input-append, form#commentform .acf-input-wrap {
  height: auto !important;
}
form#commentform label {
  font-weight: 700; color: #2c3e50;
}
form#commentform div {
  width: 100%;
}
form#commentform div.acf-field {
  margin: 0 0 .5rem;
}
form#commentform div[data-name="burial_id"] {
  height: 0;
  overflow: hidden;
}
form#commentform div[data-name="photos"] table.acf-table thead {
  display: none;
}
form#commentform p {
  width: 100%;
  margin: 0 0 .5rem;
}
form#commentform span.required {
  color: red;
}
form#commentform p.comment-notes {
  order: 1;
  margin-bottom: 1rem;
}
form#commentform p.comment-form-author {
  order: 2;
}
form#commentform p.comment-form-email {
  order: 3;
}
form#commentform div#acf-form-data {
  order: 4;
}
form#commentform div.acf-fields {
  order: 5;
  display: flex; flex-flow: row wrap; justify-content: space-between;
}
form#commentform p.comment-form-comment {
  order: 6;
}
form#commentform p.form-submit {
  order: 7;
  width: 100%;
  margin-top: 1rem;
  text-align: right;
}

form#commentform input[type="email"], form#commentform input[type="tel"], form#commentform input[type="text"], form#commentform textarea {
  width: 100%;
  height: auto !important;
  margin: 0 0 .5rem;
  border: 2px solid #2c3e50;
  padding: .75em 1em;
  color: #2c3e50;
  font-size: 1.1rem;
  line-height: 1;
  transition: all .25s ease-in;
}
form#commentform input[type="email"]::placeholder, form#commentform input[type="tel"]::placeholder, form#commentform input[type="text"]::placeholder, form#commentform textarea::placeholder {
  color: #2c3e50;
  transition: all .25s ease-in;
}
form#commentform input[type="email"]:focus, form#commentform input[type="tel"]:focus, form#commentform input[type="text"]:focus, form#commentform textarea:focus {
  border-color: #2a81ba;
  color: #2a81ba;
  outline: none;
}
form#commentform input[type="email"]:focus::placeholder, form#commentform input[type="tel"]:focus::placeholder, form#commentform input[type="text"]:focus::placeholder, form#commentform textarea:focus::placeholder {
  color: #2a81ba;
}
form#commentform input[type="submit"] {
  display: inline-block;
  min-width: 240px;
  border: 0;
  padding: .5rem 1rem;
  background: #2a81ba;
  color: #fff;
  font-size: 1.3em; font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: all .25s ease-in;
}
form#commentform input[type="submit"]:active, form#commentform input[type="submit"]:focus, form#commentform input[type="submit"]:hover {
  background: #16a085;
}

.spotlink {
  background: #2c3e50;
}
.spotlink a[href] {
  display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: center;
  width: 100%;
  padding: 1rem 2rem;
  background-color: rgba(255,255,255,0); background-size: cover;
  color: #fff !important;
  text-decoration: none !important;
  transition: background .25s ease-in;
}
.spotlink a[href]:active, .spotlink a[href]:focus, .spotlink a[href]:hover {
  background: rgba(255,255,255,.1);
}
.spotlink strong {
  font-family: Courgette, cursive; font-size: 200%; font-weight: 500;
}
.spotlink em {
  font-style: normal;
}
.spotlink.green-burial {
  background-image: url("../_images/green-burial.jpg");
}


/* WOOCOMMERCE */

.woocommerce div.product div.images img {
  max-width: 300px;
  margin: 0 auto;
}
.woocommerce table.shop_table td.product-name {
  font-weight: 700;
}
.woocommerce table.shop_table td.product-name dl.variation {
  margin: -1rem 0 0;
  font-weight: 400;
}
.woocommerce ul.products {
  display: flex; flex-flow: row wrap; align-items: stretch;
  text-align: center;
}
.woocommerce ul.products li {
  display: flex; flex-flow: column; justify-content: flex-start; align-items: center;
}
.woocommerce ul.products li a[href].button {
  margin-top: 1em; margin-top: auto;
}
.woocommerce ul.products li p {
  margin-top: auto;
  font-size: 75%;
}
.woocommerce ul.products li.product {
  margin: 0;
  padding: 2rem;
}

.woocommerce form .form-row input[type="email"], .woocommerce form .form-row input[type="tel"], .woocommerce form .form-row input[type="text"], .woocommerce form .form-row textarea {
  width: 100%;
  margin: 0 0 .5em;
  border: 2px solid #2c3e50;
  padding: .75rem 1rem;
  color: #2c3e50;
  font-size: 1.1rem;
  line-height: 1;
  transition: all .25s ease-in;
}
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; margin: 0 auto; }
.woocommerce .quantity .qty {
  padding: .375rem .25rem;
  font-size: 1.1rem;
  line-height: 1;
}
.woocommerce form input[readonly] {
  border: 0 !important;
}
.woocommerce form .form-row textarea {
  height: 5em;
}
.woocommerce form .form-row input[type="email"]::placeholder, .woocommerce form .form-row input[type="tel"]::placeholder, .woocommerce form .form-row input[type="text"]::placeholder, .woocommerce form .form-row textarea::placeholder {
  color: #2c3e50;
  transition: all .25s ease-in;
}
.woocommerce form .form-row input[type="email"]:focus, .woocommerce form .form-row input[type="tel"]:focus, .woocommerce form .form-row input[type="text"]:focus, .woocommerce form .form-row textarea:focus {
  border-color: #2a81ba;
  color: #2a81ba;
  outline: none;
}
.woocommerce form .form-row input[type="email"]:focus::placeholder, .woocommerce form .form-row input[type="tel"]:focus::placeholder, .woocommerce form .form-row input[type="text"]:focus::placeholder, .woocommerce form .form-row textarea:focus::placeholder {
  color: #2a81ba;
}
.woocommerce form .form-row input[type="submit"] {
  display: block;
  width: 100%;
  margin: 0 auto;
  border: 0;
  padding: .5rem 1rem;
  background: #2a81ba;
  color: #fff;
  font-size: 1.3em; font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: all .25s ease-in;
}
.woocommerce form .form-row input[type="submit"]:active, .woocommerce form .form-row input[type="submit"]:focus, .woocommerce form .form-row input[type="submit"]:hover {
  background: #16a085;
}
.woocommerce .select2-container--default .select2-selection--single {
  height: auto !important;
  margin: 0 0 .5rem;
  border: 2px solid #2c3e50; border-radius: 0;
  padding: .75rem  1rem;
  line-height: 1;
}
@media screen and (max-width: 768px) {
  .woocommerce ul.products li.product {
    padding: 1rem;
  }	
}

/* YOUTUBE */

figure.wp-block-embed-youtube {
  margin: 2rem 0 0;
}
figure.wp-block-embed-youtube div.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%
}
figure.wp-block-embed-youtube iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* FIND A LOVED ONE */

section#results a[href].load-more {
  display: block;
  margin: 0 auto;
}
section#results div.result {
  margin: 0 0 2rem;
  border-top: 2px solid #2a81ba;
  padding: 2rem;
  background: #cccccc;
}
section#results div.result h2 {
  margin: 0;
  color: #2a81ba;
}
section#results div.result img {
  float: left;
  max-width: 120px; height: auto;
  margin-right: 2rem;
}
section#results div.result ul {
  list-style-type: none;
  display: flex; flex-flow: row nowrap; align-items: center; justify-content: space-between;
  margin: 0; padding: 0;
}
section#results div.result ul.personal li:first-child, section#results div.result ul.location li:first-child {
  margin-right: auto;
}
section#results div.result ul.action {
  clear: both;
  justify-content: flex-end;
}
section#results div.result ul + ul {
  margin-top: 1rem;
}
section#results div.result li + li {
  margin-left: 1rem;
}

@media screen and (max-width: 800px) {
  section#results div.result {
    padding: 1rem;
  }
  section#results div.result img {
    float: right;
    margin-right: 0; margin-left: 2rem;
  }
  section#results div.result ul {
    flex-flow: column; align-items: flex-start;
  }
  section#results div.result li + li {
    margin-left: 0;
  }
}

section#search form {
  display: flex; flex-flow: column; align-items: flex-end;
}

section#search form input[type="email"], section#search form input[type="tel"], section#search form input[type="text"], section#search form textarea {
  width: 100%;
  height: auto !important;
  margin: 0 0 .5rem;
  border: 2px solid #2c3e50;
  padding: .75em 1em;
  color: #2c3e50;
  font-size: 1.1rem;
  line-height: 1;
  transition: all .25s ease-in;
}
section#search form input[type="email"]::placeholder, section#search form input[type="tel"]::placeholder, section#search form input[type="text"]::placeholder, section#search form textarea::placeholder {
  color: #2c3e50;
  transition: all .25s ease-in;
}
section#search form input[type="email"]:focus, section#search form input[type="tel"]:focus, section#search form input[type="text"]:focus, section#search form textarea:focus {
  border-color: #2a81ba;
  color: #2a81ba;
  outline: none;
}
section#search form input[type="email"]:focus::placeholder, section#search form input[type="tel"]:focus::placeholder, section#search form input[type="text"]:focus::placeholder, section#search form textarea:focus::placeholder {
  color: #2a81ba;
}
section#search form select {
  display: block;
  width: 100%;
  margin: 0 0 .5rem;
  border: 2px solid #2c3e50; border-radius: none;
  padding: .75rem 1rem;
  font-size: 1.1rem;
  line-height: 1;
}
section#search form input[type="submit"] {
  display: inline-block;
  min-width: 240px;
  border: 0;
  padding: .5rem 1rem;
  background: #2a81ba;
  color: #fff;
  font-size: 1.3em; font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: all .25s ease-in;
}
section#search form input[type="submit"]:active, section#search form input[type="submit"]:focus, section#search form input[type="submit"]:hover {
  background: #16a085;
}

/* EVENTS */

div#events {
  position: relative;
  padding-bottom: 75%;
}
div#events iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* LOADING SPINNER */

section#loading { display: none; }

.lds-spinner {
  color: official;
  display: block;
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
}
.lds-spinner div {
  transform-origin: 32px 32px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 29px;
  width: 5px;
  height: 14px;
  border-radius: 20%;
  background: #16a085;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* OWL-CAROUSEL STYLES */

.owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%}

header#owl-carousel {
  position: relative;
}
section#carousel {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  margin: 0;
  padding: 0;
}
section#carousel div.owl-item > div {
  display: flex; flex-flow: column; justify-content: center;
  position: relative;
  z-index: 0;
  width: 100%; height: 50vh;
  padding-top: 8rem;	
  background-position: 50% 50%; background-repeat: no-repeat; background-size: cover;
  text-align: center;
}
section#carousel div.owl-item > div:after {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0; z-index: -5;
  width: 100%; height: 100%;	
  background: #2c3e50;
  opacity: .6;
}
section#carousel div.owl-dots {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  text-align: center;
}
section#carousel div.owl-dots button {
  appearance: none;
  background: #fff;
  width: .75rem; height: .75rem;
  margin: 0 .25rem;
  border-radius: 100%;
}
section#carousel div.owl-dots button.active {
  background: #16a085;
}
section#carousel h1 {
  font-family: Courgette,cursive; font-size: 2.4rem; font-weight: 500;
  color: #fff;
}
@media screen and (min-width: 1001px) {
  section#carousel div.owl-item > div {
    max-height: 600px;
  }
}
@media screen and (min-width: 1001px) and (max-height: 1200px) {
  section#carousel div.owl-item > div {
    height: 600px;
  }
}
@media screen and (max-width: 1240px) {
  section#carousel div.owl-item > div {
    padding-top: 20rem;
  }
}
@media screen and (max-width: 1000px) {
  body.home header {
    padding-bottom: 0;
  }
  section#carousel {
    position: static;
    height: 400px;
  }
  section#carousel div.owl-item > div {
    height: 400px;
    padding: 2rem 0;
  }
  section#carousel h1, a[href].button.large {
    font-size: 1.25rem;
  }
}

/* TABS */

ul.advgb-tabs-panel {
  margin-bottom: 1rem !important;
}
ul.advgb-tabs-panel::after {
  display: none !important;
}
ul.advgb-tabs-panel li.advgb-tab {
  float: none;
  background: #2c3e50 url("/wp-content/uploads/2019/03/hero-mausoleum.jpg") 50% 50% no-repeat; background-size: cover;
}
ul.advgb-tabs-panel li.advgb-tab:nth-child(1) {
  background-image: url("/wp-content/uploads/2019/03/hero-mausoleum.jpg");
}
ul.advgb-tabs-panel li.advgb-tab:nth-child(2) {
  background-image: url("/wp-content/uploads/2019/03/hero-ground-burial.jpg");
}
ul.advgb-tabs-panel li.advgb-tab:nth-child(3) {
  background-image: url("/wp-content/uploads/2019/03/hero-cremation.jpg");
}
ul.advgb-tabs-panel li.advgb-tab:nth-child(4) {
  background-image: url("/wp-content/uploads/2019/05/hero-search.jpg");
}

ul.advgb-tabs-panel a[href] {
  display: block;
  position: relative;
  border: 3px solid #2c3e50;
  background: rgba(44,62,80,.8);
  color: #fff !important;
  text-decoration: none !important;
  transition: .2s ease-in  background;
}
ul.advgb-tabs-panel a[href] span {
  display: block; display: flex; flex-flow: column; justify-content: center;
  bottom: 0; left: 0;
  font-size: 1.25rem; font-weight: 700;
  line-height: 1;
  filter: drop-shadow(2px 2px 1px #2c3e50);
}

div.advgb-tab-body {
  border: 3px solid #2c3e50 !important;
  padding: 2rem;
}
ul.advgb-tabs-panel a[href]:active, ul.advgb-tabs-panel a[href]:focus, ul.advgb-tabs-panel a[href]:hover, ul.advgb-tabs-panel li.ui-state-active a[href] {
  background: rgba(44,62,80,.4);
}
ul.advgb-tabs-panel li.ui-state-active:after {
  content: "";
  display: block;
  position: absolute;
}


@media screen and (min-width: 801px) {
  ul.advgb-tabs-panel {
    display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: stretch;
    margin-bottom: 2rem !important;
  }
  ul.advgb-tabs-panel li.advgb-tab {
    display: flex; flex-flow: column; justify-content: flex-end;
    width: 22.5%; width: calc(25% - .75rem);
  }
  ul.advgb-tabs-panel li.ui-state-active:after {
    top: 100%; left: 50%;
    width: 3px;
    height: 2rem;
    background: #2c3e50;
  }
  ul.advgb-tabs-panel a[href] span {
    width: calc(100% - 2rem);
    margin: 2rem 1rem 1rem;
    border: 2px solid #fff; border-width: 2px 0;
    padding: .5rem 0;
    font-size: 1.25rem; font-weight: 700;
    text-align: center;
  }
}

@media screen and (max-width: 800px) {
  ul.advgb-tabs-panel {
    margin-bottom: 1rem !important;
  }
  ul.advgb-tabs-panel li.advgb-tab {
    margin-bottom: .5rem !important;
  }
  ul.advgb-tabs-panel li.ui-state-active:after {
    top: 50%; top: calc(50% - .5rem); right: 1rem;
    width: 1rem; height: 1rem;
    border-radius: .5rem;
    background: #fff;
  }
  ul.advgb-tabs-panel a[href] span {
    align-items: flex-start;
    width: 75%;
    padding: 0;
  }
}

/* CONTACT BAR */

div#contact-bar {
  background: #2a81ba;
  color: #fff;
  font-size: 1.5rem; font-weight: 700;
  line-height: 1;
}
div#contact-bar section {
  display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: center;
  margin: 0 auto;
  padding: 1rem 2rem;
}
div#contact-bar a[href]:first-child {
  margin-right: auto;
  font-size: 2.5rem;
  text-transform: uppercase;
}
div#contact-bar a[href]:link, div#contact-bar a[href]:visited {
  color: #fff;
  text-decoration: none;
}
div#contact-bar a[href]:active, div#contact-bar a[href]:focus, div#contact-bar a[href]:hover {
  color: #fff;
  text-decoration: underline;
}
div#contact-bar a[href] + a[href] {
  margin-left: 1rem;
}

@media screen and (max-width: 1024px) {
  div#contact-bar section {
    flex-flow: column; justify-content: center;
  }
  div#contact-bar a[href]:first-child {
    margin-right: 0; margin-bottom: .25rem;
    font-size: 2rem;
    text-align: center;
  }
}

/* BUILT-IN GALLERY OVERRIDES */

.wp-block-gallery .blocks-gallery-image figure, .wp-block-gallery .blocks-gallery-item figure { 
  padding-bottom: 1em;
}

.wp-block-gallery .blocks-gallery-image figcaption, .wp-block-gallery .blocks-gallery-item figcaption {
  position: static !important;
  padding: 0 !important;
  color: #000 !important;
  background: transparent !important;
}