/* * {
  background: #000 !important;
  color: #0f0 !important;
  outline: solid #f00 1px !important;
} */

#app {
  background: radial-gradient(#ccc, #999);
}

#app img {
  display: block;
}

svg {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  stroke: #00584c;
}

#headlines {
  overflow-x: hidden;
  max-width: 800px;
  min-width: 450px;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
}

@media screen and (max-width: 520px) {
  #headlines {
    top: 50%;
    min-width: 350px;
  }
}

@media screen and (max-width: 290px) {
  #headlines {
    min-width: 280px;
  }
}

/* ============================================== Image Gride ============================================= */

.gallery-heading {
  overflow: visible;
  position: relative;
  top: -80vh;
  text-align: center;
  width: 100%;
}

.gallery-heading > h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1900%;
  color: #007a69;
  /* border-bottom: 0.5px solid #007a69; */
  padding-bottom: 30px;
  margin: 30px;
}

.gallery {
  height: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -70vh;
}

.gallery-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  width: 90%;
  max-width: 1200px;
}

@media only screen and (max-width: 1100px) {
  .gallery-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
    grid-auto-rows: 200px;
  }
}

@media only screen and (max-width: 900px) {
  .gallery-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(33.33%, 1fr));
    grid-auto-rows: 175;
  }

  .gallery {
    margin-top: -80vh;
  }

  .gallery-heading > h1 {
    margin: 60px;
    font-size: 6rem;
    border-bottom: 0.5px solid #007a69;
    text-align: left;
  }
}

@media only screen and (max-width: 700px) {
  .gallery-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(33.33%, 1fr));
    grid-auto-rows: 150px;
  }
}

@media only screen and (max-width: 550px) {
  .gallery-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
    grid-auto-rows: 150px;
  }

  .gallery-wrapper .wide {
    grid-column: span 2 !important;
  }
  .gallery-wrapper .xl-wide {
    grid-column: span 2 !important;
  }
  .gallery-wrapper .tall {
    grid-row: span 2 !important;
  }
  .gallery-wrapper .big {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
  }

  .gallery-wrapper .xl-big {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
  }
}

@media only screen and (max-width: 400px) {
  .gallery-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
    grid-auto-rows: 100px;
  }
}

.gallery-wrapper > div {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  transition: 0.25s all;
}

.gallery-wrapper > div:hover {
  padding: 4px;
  transition: 0.25s all;
  filter: brightness(1.1);
  cursor: pointer;
}

.gallery-wrapper > div > img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-sizing: border-box;
}

.gallery-wrapper .wide {
  grid-column: span 2;
}
.gallery-wrapper .xl-wide {
  grid-column: span 3;
}
.gallery-wrapper .tall {
  grid-row: span 2;
}
.gallery-wrapper .big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-wrapper .xl-big {
  grid-column: span 3;
  grid-row: span 2;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  border: 2px solid white;
  border-radius: 16px;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}
