:root {
  --light-grey: #eeece9;
  --medium-grey: #aaa;
  --text: #6f6f6f;
  --dark-grey: #555;
  --almost-black: #000105;
  --green: #00ff00;
}

.is-smooth {
  transition: transform 0.2s ease-out;
}

.add-shadow {
  box-shadow: 0px 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.add-shadow-inset {
  box-shadow: inset 0px 6px 6px rgba(0, 0, 0, 0.3);
}

.is-green {
  color: var(--green);
}

.is-small {
  font-size: 0.875em;
}

.is-smaller {
  font-size: 0.625em;
}

.is-uppercase {
  text-transform: uppercase;
}

.is-hidden {
  opacity: 0;
  pointer-events: none;
}

section.portfolio .header {
  opacity: 1;
}
section.portfolio html,
section.portfolio body {
  overflow: hidden;
}
section.portfolio .gallery {
  height: 100%;
  overflow: hidden;
  position: absolute;
  width: 100%;
}
section.portfolio .gallery .open-captions {
  align-items: center;
  bottom: 10px;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  left: calc(50% - 20px);
  position: absolute;
  transition: transform 0.2s ease;
  width: 40px;
  z-index: 10;
}
section.portfolio .gallery .open-captions.is-active {
  transform: translate(0, -50px) !important;
}
section.portfolio .gallery .open-captions.is-active:before {
  background-color: transparent;
}
section.portfolio .gallery .open-captions:before {
  background-color: var(--green);
  border: 1px solid var(--green);
  content: "";
  display: block;
  height: 6px;
  transition: 0.2s ease background-color;
  width: 6px;
}
section.portfolio .gallery .flickity-viewport,
section.portfolio .gallery .flickity-slider {
  height: 100%;
  width: 100%;
}
section.portfolio .gallery .gallery-item {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}
section.portfolio .gallery .gallery-item.is-selected {
  z-index: -1;
}
section.portfolio .gallery .gallery-item.is-selected figure {
  margin-top: 0 !important;
  margin-left: 0 !important;
}
section.portfolio .gallery .gallery-item.is-selected figure img {
  -o-object-position: center center;
     object-position: center center;
}
section.portfolio .gallery .gallery-item.is-selected img {
  transform: translate(0);
  margin: 0 !important;
}
section.portfolio .gallery .gallery-item.show-caption img {
  height: calc(100% - 50px);
}
section.portfolio .gallery .gallery-item figure {
  height: calc(100vh - 200px);
  max-height: 820px;
  max-width: 125vh;
  padding: 20px 0 0 0;
  position: relative;
  transition: transform 0.2s ease, padding 0.2s ease, margin 0.75s ease 0.25s;
  width: calc(100% - 80px);
  will-change: auto;
  z-index: 10;
}
@media screen and (min-width: 800px) {
  section.portfolio .gallery .gallery-item figure {
    transition: transform 0.2s ease, padding 0.2s ease, margin 1s ease 0.25s;
  }
}
section.portfolio .gallery .gallery-item figure.is-vertical {
  height: calc(100vh - 200px);
  max-height: 820px;
}
@media screen and (min-width: 800px) {
  section.portfolio .gallery .gallery-item figure.is-vertical {
    height: calc(100vh - 120px);
    max-height: 860px;
  }
}
@media screen and (min-width: 640px) {
  section.portfolio .gallery .gallery-item figure {
    padding: 40px 0 0 0;
  }
}
section.portfolio .gallery .gallery-item img {
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  transition: height 0.2s ease, transform 0.35s ease;
  width: 100%;
  will-change: transform;
}
section.portfolio .gallery .gallery-item .gallery-item-content {
  background-color: #e4e4e4;
  height: 100%;
  position: absolute;
  transition: transform 0.2s ease;
  width: 100%;
  z-index: 1;
}
section.portfolio .gallery .gallery-item .gallery-item-content:after {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 100%);
  bottom: -50px;
  content: "";
  height: 50px;
  position: absolute;
  width: 100%;
}
section.portfolio .gallery .gallery-item .gallery-item-content.show-caption {
  transform: translate(0, -50px) !important;
}
section.portfolio .gallery .gallery-item .dida {
  align-items: center;
  background-color: #333;
  bottom: 0;
  color: #fff;
  display: flex;
  font-size: 0.875em;
  height: 50px;
  justify-content: center;
  padding: 0 20px;
  position: fixed;
  text-align: center;
  width: 100%;
  z-index: -1;
}
@media screen and (min-width: 640px) {
  section.portfolio .gallery .gallery-item .dida {
    font-size: 1em;
  }
}
section.portfolio .gallery .gallery-item.is-multiple figure {
  position: absolute;
}
section.portfolio .flickity-button {
  background: transparent !important;
  box-shadow: none;
  outline: none;
}
section.portfolio .flickity-button:before {
  background-color: var(--green);
  content: "";
  display: block;
  height: 7px;
  position: absolute;
  width: 7px;
}
section.portfolio .flickity-button.previous, section.portfolio .flickity-button.next {
  border-radius: 0;
  height: 100%;
  width: 50px;
}
section.portfolio .flickity-button.previous {
  left: 0;
}
section.portfolio .flickity-button.previous:before {
  left: 20px;
}
section.portfolio .flickity-button.next {
  right: 0;
}
section.portfolio .flickity-button.next:before {
  right: 20px;
}
section.portfolio .flickity-button .flickity-button-icon {
  display: none;
}
@media (pointer: coarse) {
  section.portfolio .flickity-button {
    display: none;
  }
}

* {
  margin: 0;
}

body:not(.is-validated) .header {
  display: none;
}
