@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Bitter&family=Questrial&display=swap");

body {
  background: #fff;
  color: #545251;
  font-size: 16px;
  font-family: "Questrial", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 3vw;
}
h1,
h2 {
  font-weight: normal;
  margin: 0;
}

/*-------- header --------*/
header {
  width: 100%;
  max-width: 1500px;
  font-weight: normal;
  margin: 0 auto;
  padding: 0 3vw;
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
  height: 200px;
}
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
nav ul {
  display: flex;
  font-size: 20px;
}
nav li {
  margin-left: 3vmin;
}
nav li a {
  color: #6d6875;
  text-decoration: none;
}
nav li a:hover {
  color: #e60000;
}

/*-------- gallery --------*/
.title h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  margin-bottom: 120px;
}
.title h2::before,
.title h2::after {
  display: block;
  content: "";
  width: 50px;
  height: 1px;
  background-color: #111;
}
.title h2::before {
  margin-right: 20px;
}
.title h2::after {
  margin-left: 20px;
}

#gallery {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(8, auto);
  grid-gap: 2vmin;
  grid-auto-flow: dense;
  -ms-display: grid;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding-bottom: 100px;
}
#gallery .image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#gallery .image img {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}
.image:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}
.w-1 {
  grid-column: span 1;
}
.w-2 {
  grid-column: span 2;
}
.w-3 {
  grid-column: span 3;
}
.w-4 {
  grid-column: span 4;
}
.h-1 {
  grid-row: span 1;
}
.h-2 {
  grid-row: span 2;
}
.h-3 {
  grid-row: span 3;
}
.h-4 {
  grid-row: span 4;
}

/*-------- pagetop --------*/
#pagetop {
  float: right;
  position: relative;
  right: 0;
  bottom: 70px;
  scroll-behavior: smooth;
}

#pagetop a {
  background-color: #eeedef;
  color: #6d6875;
  padding: 15px;
  width: 50px;
  height: 50px;
}
#pagetop a:hover {
  opacity: 0.5;
}

/*-------- footer --------*/
footer {
  max-width: 100%;
  background-color: #eeedef;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 50px 0 5px;
  text-align: center;
}
footer .txt {
  margin-bottom: 50px;
}

@media (max-width: 1023px) {
  #gallery {
    grid-template-columns: repeat(6, auto);
    grid-gap: 1vmin;
  }
  .big-img img {
    width: 100%;
    max-width: 900px;
    padding: 1vmin 3vmin;
  }
  .w-33 {
    grid-column: span 3;
  }
}

@media (max-width: 568px) {
  #gallery {
    display: block;
  }
  #gallery .image {
    margin: 0 0 2vmin;
  }
  .image:hover img {
    transform: none;
    cursor: auto;
    opacity: 1;
    pointer-events: none;
  }
}

@media screen and (max-width: 450px) {
  .header-wrap {
    height: 100px;
  }
  nav ul {
    font-size: 0.8em;
  }
  h1 {
    font-size: 1.5em;
  }
  .title h2 {
    font-size: 1.2em;
    margin-bottom: 50px;
  }
}
