@import "./reset.css";

.gallery {
  flex: 0 0 auto;
  width: 100%;
  height: fit-content;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
}

.gallery-img {
  flex: 0 0 20.1%;
  height: 11.30625vw;
  margin: 2vw 0;
  justify-content: center;
  position: relative;
}

.gallery-img img {
  position: absolute;
  width: 100%;
  height: 100%;
}

.cover {
  position: absolute;
  background-image: linear-gradient(to top, black 19%, rgb(0, 0, 0, 0) 50%);
  width: 100%;
  height: 100%;
  color: rgb(200, 200, 200);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  border: rgb(200, 200, 200) 1px solid;
}

.cover2 {
  position: absolute;
  background-color: white;
  opacity: 0;
  width: 100%;
  color: black;
  height: 100%;
  transition: all 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cover2:hover {
  opacity: 0.9;
}

h1 {
  font-size: x-large;
}

h2 {
  font-size: large;
}

h3 {
  font-size: medium;
}

@media all and (max-width: 1280px) {
}

@media all and (max-width: 1080px) {
  .gallery {
  }
  .gallery-img {
    flex: 0 0 30.1%;
    height: 16.93125vw;
    position: relative;
  }
  .gallery-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    box-shadow: rgb(177, 177, 177) 0px 0px 5px;
    border: rgb(255, 255, 255) 1px solid;
  }
  .cover {
    position: absolute;
    background-image: linear-gradient(to top, black 25%, rgb(0, 0, 0, 0) 50%);
    width: 100%;
    height: 100%;
    color: rgb(238, 238, 238);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
  }
}

@media all and (max-width: 640px) {
  .content {
    margin-bottom: 100px;
  }
  .gallery {
    flex: 0 0 auto;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
  }
  .gallery-img {
    flex: auto;
    margin-top: 50px;
    width: 80vw;
    height: 45vw;
    position: relative;
  }
  .gallery-img img {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  .cover {
    position: absolute;
    background-image: linear-gradient(to top, black 25%, rgb(0, 0, 0, 0) 50%);
    width: 100%;
    height: 100%;
    color: rgb(240, 238, 235);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
  }
  h1 {
    font-size: 4vh;
  }
}
