@font-face {
  font-family: Inconsolata;
  src: url(fonts/Inconsolata-Regular.ttf) format("truetype");
}

@font-face {
  font-family: Carlito;
  src: url(fonts/Carlito-Regular.ttf) format("truetype");
}

:root {
  --swiper-theme-color: #000 !important;
}

body {
  font-family: Carlito, sans-serif;
  background-color: #e8e8e8;
}

div p:last-child {
  padding-bottom: 32px;
}

.hero-section {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
  background: 
  linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.3) 100%),
  linear-gradient(90deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0) 270px),
  url('img/Header002Wulf-Bestattung.jpg');
  background-size: cover;
  background-position: left;
}

@media (min-width: 768px) {
  .hero-section {
    height: 75vh;
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  .hero-section {
    height: 85vh;
    overflow: hidden;
  }
}

.logo {
  top: 20px;
  left: 20px;
  position: absolute;
  width: 70px;
  height: auto;
}

.logo-text {
  position: absolute;
  bottom: 20px;
  /* left: 50%; */
  right: 0;
  /* transform: translate(-50%); */
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .logo {
    width: 150px;
  }

  .logo-text {
    width: 75%;
  }
}

.hero-img {
  object-fit: cover;
  object-position: left;
  width: 100%;
  height: 100%;
}

a {
  color: rgb(33, 37, 41);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.menu {
  font-size: 1.5rem;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .menu {
    font-size: 2rem;
  }
}

.contact {
  font-size: 1.5rem;
  position: relative;
  text-decoration: underline;
  bottom: 16px;
}

@media (min-width: 768px) {
  .contact {
    font-size: 2rem;
    position: absolute;
  }
}

.space {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 992px) {
  .space {
    margin-top: 8rem;
    margin-bottom: 8rem;
  }
}

.placeholder {
  height: 10vh;
}

.bg-gray {
  background-color: #bdbdbd;
}

.bg-lightgray {
  background-color: #cfcfcf;
}

.section {
  border-top: solid;
  border-color: #e8e8e8;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, auto);
  grid-column-gap: 16px;
  grid-row-gap: 16px;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  
.grid-image-1 { grid-area: 1 / 2 / 4 / 4; }
.grid-image-2 { grid-area: 4 / 3 / 7 / 5; }
.grid-image-3 { grid-area: 2 / 5 / 5 / 7; }

.grid-image-4 { grid-area: 1 / 5 / 4 / 7; }
.grid-image-5 { grid-area: 4 / 4 / 7 / 6; }
.grid-image-6 { grid-area: 2 / 2 / 5 / 4; }

.grid-image-7 { grid-area: 1 / 2 / 3 / 4; }
.grid-image-8 { grid-area: 3 / 3 / 6 / 5; }
.grid-image-9 { grid-area: 2 / 5 / 5 / 7; }

@media screen and (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(5, 1fr);
    margin: 8px;
  }
    
  .grid-image-1 { grid-area: 1 / 1 / 4 / 3; }
  .grid-image-2 { grid-area: 4 / 2 / 7 / 4; }
  .grid-image-3 { grid-area: 2 / 4 / 5 / 6; }

  .grid-image-4 { grid-area: 1 / 4 / 4 / 6; }
  .grid-image-5 { grid-area: 4 / 3 / 7 / 5; }
  .grid-image-6 { grid-area: 2 / 1 / 5 / 3; }

  .grid-image-7 { grid-area: 1 / 1 / 3 / 3; }
  .grid-image-8 { grid-area: 3 / 2 / 6 / 4; }
  .grid-image-9 { grid-area: 2 / 4 / 5 / 6; }
}

.image-grid-2 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-column-gap: 16px;
  grid-row-gap: 16px;
}

@media screen and (max-width: 768px) {
  .image-grid-2 {
    grid-template-columns: repeat(5, 1fr);
    margin: 8px;
  }
}

/* .row>* {
  padding-left: 0px;
  padding-right: 0px;
} */

.filler {
  width: 75%;
}

@media (min-width: 768px) {
  .filler {
    width: 50%;
  }
}

.headline {
  color: black;
  font-size: smaller;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-align: center;
  background-color: #e8e8e8;
  padding-bottom: 8px;
}

@media (min-width: 768px) {
  .headline {
    color: #8c8c8c;
    text-align: start;
    font-size: 1.5rem;
    background-color: initial;
    padding-bottom: 0px;
  }
}

.swiper {
  height: 480px !important;
}

@media (min-width: 768px) {
  .swiper {
    height: 700px !important;
  }
}

.swiper-pagination, .swiper-pagination-2, .swiper-pagination-3 {
  visibility: hidden;
  position:  relative !important;
  margin: 16px 0;
  text-align: center;
  transition: .3s opacity;
  transform: translate3d(0,0,0);
  z-index: 10;
} 

@media (min-width: 768px) {
  .swiper-pagination, .swiper-pagination-2, .swiper-pagination-3 {
    visibility: visible;
  }
}

.swiper-container {
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
  margin-top: -32px;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

.swiper-wrapper .swiper-slide, .swiper-wrapper img {
  height: 480px;
  width: auto;
}

@media (min-width: 768px) {
  .swiper-wrapper .swiper-slide, .swiper-wrapper img {
    height: 700px;
  }
}

.first-slide {
  padding-left: 2rem;
  padding-right: 2rem;
  width: 40vw !important;
}

@media (min-width: 992px) {
  .first-slide {
    padding-left: 4rem;
    padding-right: 5rem;
  }
}

@media (min-width: 1200px) {
  .first-slide {
    padding-left: 5rem;
    padding-right: 9rem;
  }
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.swiper-slide div {
  overflow: hidden;
  width: 100%;
}

.swiper-slide img {
  height: 480px;
  width: auto;
}

@media (min-width: 768px) {
  .swiper-slide img {
    height: 700px;
  }
}

#backToTop {
  visibility: hidden;
  position: fixed;
  bottom: 40px;
  justify-self: center;
  z-index: 99;
  font-size: 2.25rem;
  cursor: pointer;
  height: 40px;
}

#contact {
  position: fixed;
  right: 0px;
  bottom: 20px;
  z-index: 99;
  background-color: #a7a9a6;
  padding: 4px;
  text-align: center;
  text-decoration: none;
  border-radius: 25px 0 0 25px;
  display: flex;
  align-items: center;
  padding-left: 15px;
  padding-right: 10px;
}

@media (min-width: 576px) {
  #contact {
    bottom: 35px;
  }
}

#contactText {
  padding-left: 10px;
  padding-right: 10px;
}

#contactText:hover {
  text-decoration: underline;
}

.hideText #contactText {
  opacity: 0;
  visibility: hidden;
  width: 0;
  padding: 0;
  margin: 0;
}

#map {
  height: 400px;
  width: 90%;
  position: relative;
  margin: 0 auto 3rem;
  z-index: 50;
}

@media (min-width: 576px) {
  #map {
    width: 70%;
  }
}

.leaflet-layer {
  filter: grayscale(0.5);
}

.caption {
  position: absolute;
  bottom: 0px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 10px;
  font-size: 18px;
}