.page-home {
  overflow-x: hidden;
}

.page-home .page-content {
  background: url('../images/bg-home.jpg') no-repeat center;
  background-size: cover;
}

.page-home .blocks {
  position: relative;
  height: calc(100vh - 240px);
  width: 50%;
  margin: 0 auto;
  transform-origin: left;
}

.page-home .block {
  background-color: #777;
  overflow: hidden;
}

.page-home .block .img {
  width: 100%;
  height: 100%;
  transition: filter 0.5s ease;
  background: no-repeat center;
  background-size: cover;
}

.page-home .block:hover .img {
  filter: brightness(50%);
  -webkit-filter: brightness(50%);
  -moz-filter: brightness(50%);
  -o-filter: brightness(50%);
  -ms-filter: brightness(50%);
}

.page-home .block a {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  position: absolute;
  z-index: 2;
}

.page-home .legend {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px;
  font-size: 14px;
  font-style: italic;
  line-height: 16px;
  border-right: solid 1px rgba(255, 255, 255, 0.25);
  border-bottom: solid 1px rgba(255, 255, 255, 0.25);
  color: #fff;
  opacity: 0;
  transition: opacity 0.5s ease;
  max-width: 160px;
}

.page-home .block:hover .legend {
  opacity: 1;
}

.page-home .legend h6 {
  font-size: 12px;
  font-weight: normal;
  font-style: normal;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.page-home .legend h6:before {
  content: ' ';
  position: absolute;
  left: 0;
  height: 8px;
  width: 8px;
  background-color: var(--color-secondary);
  transform: translateY(25%);
}

.page-home .legend h5 {
  font-size: 14px;
  font-style: normal;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 5px;
}

.page-home .discover {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0px;
}

.page-home .block:hover .discover {
  transform: translateY(-100%);
}

.page-home .block-map a {
  text-align: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.3s linear;
}

.page-home .block-map a:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media screen and (min-width: 800px) {
  .page-home .block {
    position: absolute;
  }
}

@media screen and (max-width: 800px) {
  .page-home .block {
    height: 200px;
    margin: 10px;
  }

  .page-home .legend {
    display: none;
  }

  .page-home .discover {
    display: none;
  }
}
