:root {
  --almost-black: #111;
}

.intro-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.intro {
  background-color: #A19282;
  display: flex;
  margin: 0 30px;
  max-width: 1280px;
  padding-bottom: calc(10vh + 80px);
  width: calc(100% - 60px);
}
.intro .intro-content {
  align-items: flex-end;
  background-color: #d5dcd4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 480px;
  width: 100%;
}
.intro article {
  width: 100%;
  padding: 1.5rem;
}
@media screen and (min-width: 768px) {
  .intro article {
    max-width: 50%;
    width: 100%;
  }
}
.intro article p {
  max-width: 480px;
}

.projects {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.projects-item {
  display: flex;
  flex-direction: column;
  margin: 0 30px;
  max-width: 1280px;
  padding-bottom: calc(10vh + 80px);
  width: calc(100% - 60px);
}
.projects-item .item-main {
  background-size: cover;
  background-position: center;
  height: calc(30vw + 25vh);
  max-height: 480px;
  background-repeat: no-repeat;
  display: grid;
  align-content: center;
  gap: 0.5em;
  position: relative;
  grid-template-columns: repeat(6, 1fr);
}
.projects-item .item-main .item-image {
  background-repeat: no-repeat;
  background-size: auto calc(60vw + 25vh);
  height: 100%;
  overflow: hidden;
  position: absolute;
  width: 100%;
  z-index: 0;
}
@media screen and (min-width: 768px) and (min-height: 600px) {
  .projects-item .item-main .item-image {
    background-image: none !important;
  }
}
.projects-item .item-main .item-main-image {
  display: none;
}
@media screen and (min-width: 768px) and (min-height: 600px) {
  .projects-item .item-main .item-main-image {
    -o-object-fit: cover !important;
       object-fit: cover !important;
    -o-object-position: center !important;
       object-position: center !important;
    height: 110%;
    margin-top: -1.5%;
    width: 100%;
    display: block;
  }
}
.projects-item .item-excerpt {
  font-size: 0.8em;
  grid-column: 1/span 6;
  opacity: 0;
  padding: 0 1.25rem;
  pointer-events: none;
  position: absolute;
}
.projects-item .item-excerpt.only-mobile {
  position: relative;
  opacity: 1;
  pointer-events: all;
  padding: 1em 0 0em 0;
}
@media screen and (min-width: 640px) and (min-height: 600px) {
  .projects-item .item-excerpt {
    grid-column: 4/span 3;
    opacity: 1;
    pointer-events: all;
    position: relative;
  }
}
@media screen and (min-width: 800px) and (min-height: 600px) {
  .projects-item .item-excerpt {
    grid-column: 4/span 2;
    opacity: 1;
    pointer-events: all;
    position: relative;
  }
}
.projects-item .item-info {
  grid-column: 4/span 3;
  padding: 0.75em 1.25rem;
  position: relative;
}
.projects-item .item-info .item-info-category {
  margin-bottom: 0.5em;
  margin-top: 0.125em;
}
.projects-item .item-info .item-info-title {
  margin: 0;
}
.projects-item .item-info .item-info-title p {
  margin: 0;
}
.projects-item .item-extra {
  background-color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
@media screen and (min-width: 768px) {
  .projects-item .item-extra {
    height: 10vw;
    max-height: 120px;
  }
}
.projects-item .item-extra .extra-tile {
  background-position: center;
  background-size: cover;
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
}
.projects-item .item-extra .button {
  align-items: center;
  background-color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 100%;
}
@media screen and (min-width: 768px) {
  .projects-item .item-extra .button {
    height: unset;
    transform: scale(0.95);
    width: 50%;
  }
}
.projects-item .item-extra .button svg {
  opacity: 1;
  position: unset;
  transition: opacity 0.3s ease;
}
.projects-item .item-extra .button span {
  font-size: 0.8em;
  opacity: 0;
  position: absolute;
  transition: 0.3s ease opacity 0.2s;
  visibility: hidden;
}
.projects-item .item-extra .button:hover {
  background-color: #fff;
}
@media screen and (min-width: 768px) {
  .projects-item .item-extra .button:hover {
    transform: scale(1.1);
  }
}
.projects-item .item-extra .button:hover svg {
  opacity: 0;
  position: absolute;
  stroke: #000;
}
.projects-item .item-extra .button:hover span {
  opacity: 1;
  position: relative;
  visibility: visible;
}
.projects-item .item-extra .button.is-inactive:hover {
  background-color: #333;
}
.projects-item .item-extra .button.is-inactive:hover svg {
  opacity: 1;
  position: relative;
  stroke: #fff;
}

.video-wrapper {
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  height: 100%;
  left: 0;
  opacity: 0;
  place-items: center;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: 0.3s opacity ease;
  width: 100%;
  z-index: 200;
}
.video-wrapper.is-visible {
  opacity: 1;
  display: grid;
  pointer-events: all;
}

.video-wrapper-close {
  color: #fff;
  cursor: pointer;
  font-size: 2em;
  font-weight: 300;
  position: fixed;
  right: 34px;
  top: 34px;
}

.video {
  width: calc(100% - 60px);
  max-width: 900px;
}

.images-wrapper {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: 0.3s opacity ease;
  width: 100%;
  z-index: 200;
}
.images-wrapper.is-visible {
  opacity: 1;
  display: flex;
  pointer-events: all;
}
.images-wrapper .gallery {
  width: calc(100% - 60px);
  max-width: 900px;
  max-height: calc(100vh - 200px);
}
.images-wrapper .image {
  width: 100%;
  max-width: 900px;
  height: calc(100vh - 160px);
  margin-bottom: 20px;
  max-height: 900px;
}
.images-wrapper .image img {
  width: 100%;
  height: 100%;
  position: absolute;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
}

.images-wrapper-close {
  color: #fff;
  cursor: pointer;
  font-size: 2em;
  font-weight: 300;
  position: fixed;
  right: 34px;
  top: 20px;
}

.text-wrapper {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: 0.3s opacity ease;
  width: 100%;
  z-index: -1;
}
.text-wrapper.is-visible, .text-wrapper.is-visible * {
  opacity: 1;
  z-index: 200;
  pointer-events: all;
}
.text-wrapper.is-visible {
  display: flex;
}
.text-wrapper .text {
  -webkit-overflow-scrolling: touch;
  height: auto;
  margin-top: 60px;
  max-height: calc(100vh - 150px);
  max-width: 640px;
  overflow-y: auto !important;
  padding: 30px;
  position: relative;
  width: calc(100% - 60px);
  z-index: 200;
}

.text-wrapper-close {
  color: #fff;
  cursor: pointer;
  font-size: 2em;
  font-weight: 300;
  position: fixed;
  right: 34px;
  top: 34px;
}