/* subpage-text */
.subpage-box a.subpage-text {
  height: 100%;
  -webkit-transform: translate(-50%, 50%);
  -ms-transform: translate(-50%, 50%);
  transform: translate(-50%, 50%);
  left: 50%;
  top: inherit;
  bottom: 150%;
  right: inherit;
  text-transform: capitalize;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
          align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
          justify-content: center;
  text-decoration: none;
  -webkit-transition: bottom 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  transition: bottom 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  -o-transition: transform 0.6s ease-in-out, bottom 0.6s ease-in-out;
  transition: transform 0.6s ease-in-out, bottom 0.6s ease-in-out;
  transition: transform 0.6s ease-in-out, bottom 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
  -webkit-animation-name: subpage-box-2;
  animation-name: subpage-box-2;
  -webkit-animation-duration: 0.6s;
  animation-duration: 0.6s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  text-shadow: none;
}

/* Keyframes for the first animation: move text up */
@-webkit-keyframes subpage-box-moveUp {
  from {
    bottom: 50%;
    -webkit-transform: translate(-50%, 50%);
    transform: translate(-50%, 50%);
  }
  to {
    bottom: 150%;
    -webkit-transform: translate(-50%, -100%);
    transform: translate(-50%, -100%);
  }
}
@keyframes subpage-box-moveUp {
  from {
    bottom: 50%;
    -webkit-transform: translate(-50%, 50%);
    transform: translate(-50%, 50%);
  }
  to {
    bottom: 150%;
    -webkit-transform: translate(-50%, -100%);
    transform: translate(-50%, -100%);
  }
}
@-webkit-keyframes subpage-box {
  0% {
    opacity: 1;
    bottom: -50%;
    font-size: 16px;
    height: auto;
  }
  100% {
    opacity: 1;
    bottom: 0;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    font-size: 16px;
    height: auto;
  }
}
@keyframes subpage-box {
  0% {
    opacity: 1;
    bottom: -50%;
    font-size: 16px;
    height: auto;
  }
  100% {
    opacity: 1;
    bottom: 0;
    -webkit-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    font-size: 16px;
    height: auto;
  }
}
@-webkit-keyframes subpage-box-2 {
  from {
    bottom: 150%;
    font-size: 16px;
    font-size: 25px;
  }
  to {
    bottom: 50%;
    font-size: 25px;
  }
}
@keyframes subpage-box-2 {
  from {
    bottom: 150%;
    font-size: 16px;
    font-size: 25px;
  }
  to {
    bottom: 50%;
    font-size: 25px;
  }
}
.subpage-box {
  background: transparent;
  height: 350px;
  -webkit-box-shadow: none;
          box-shadow: none;
  overflow: hidden;
}

.subpage-box img {
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.subpage-box:hover {
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
}

.subpage-box:hover img {
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
}

.subpage-box a.subpage-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-1-pb);
  -webkit-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  z-index: -1;
}

/* subpage-text */
.subpage-box a:not(.subpage-text) {
  height: 100%;
  display: block;
  position: relative;
}

.subpage-box img {
  margin-bottom: 0 !important;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
  -o-object-position: top;
  object-position: top;
}