.gallery_main {
  background-color: #19191cda;
  min-height: 100vh;
  padding: 160px 5%;
  position: relative;
}

.gallery_main .academyTitle {
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.gallery_main .academyTitle a {
  position: absolute;
  left: 0;
}

.gallery_selection {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 80px;
}
.gallery_selection li {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: fit-content;
}

.gallery_selection li .linkBtn {
  padding: 16px 34px;
  background-color: #222;
  border: 1px solid #9f8d58;
  color: #9f8d58;
  border-radius: 5px;
  transition: 0.2s ease-in-out;
  width: 100%;
  text-align: center;
}

.gallery_selection li .linkBtn:hover {
  background-color: #9f8d58;
  border: 1px solid #222;
  color: #222;
  filter: brightness(1.1);
}
.gallery_pick {
  width: 100%;
  overflow: hidden;
  display: flex;
  position: relative;
  border-radius: 20px;
  height: 500px;
}

.gallery_pick img {
  width: 100%;
  border-radius: 20px;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery_pick p {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Electrolize', Arial, Helvetica, sans-serif;
}

@media (min-width: 768px) {
  .gallery_selection {
    justify-content: center;
  }
  .gallery_selection li {
    width: 45%;
  }

  .gallery_selection li .linkBtn {
    font-size: 1.2rem;
    width: fit-content;
  }

  .gallery_main .academyTitle {
    font-size: 2.5rem;
  }
}

/* SOLO PAGE */

.grid-wrapper {
  padding-top: 80px;
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 400px;
  grid-auto-flow: dense;
}

.grid-wrapper img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.grid-wrapper figure {
  display: flex;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition: 0.1s ease-in;
}

.grid-wrapper figure:hover {
  filter: brightness(0.6);
}

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

.grid-wrapper .wide {
  grid-column: span 2;
}

.grid-wrapper .tall {
  grid-row: span 2;
}

/* MODAL */

/* The Modal (background) */
.modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999999999999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-height: 100%;
}

/* Caption of Modal Image */
.modal-content {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* The Close Button */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.grid-wrapper figure {
  opacity: 0;
  animation: fadeInAnimation 0.8s forwards;
}
.modal-content {
  width: 90%;
}

@keyframes fadeInAnimation {
  to {
    opacity: 1;
  }
}
