#stories h1 {
  font-size: 4.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 6rem;
}
.bg-blue .hollow-button {
  color: rgb(13, 50, 77);
  background-color: rgb(244, 233, 205);
}

#stories h2 {
  font-weight: 600;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  #stories h2 {
    font-size: 4.5rem;
  }
}

.tile {
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}
.tile:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.tile a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.tile .quote {
  align-items: center;
  color: #c5c3b1;
  display: flex;
  justify-content: center;
  opacity: 1;
  overflow: hidden;
  position: absolute;
  top: 0;
  transition: 0.25s opacity;

  left: 15px;
  width: calc(100% - 30px);
  height: 75%;
  font: 1.75rem / 1 Druk;
}

.tile .quote p {
  padding: 2rem;
  text-indent: -5px;
}
.tile.blue1 .quote {
  background-color: #35484f;
}
.tile .quote {
  background-color: #425760;
}
.tile.blue3 .quote {
  background-color: #56727e;
}

.tile:hover .quote {
  opacity: 0;
}
.tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rollover {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: rgb(237, 174, 73);
  color: rgb(13, 50, 77);
  width: calc(100% - 30px);
  height: 25%;
  position: absolute;
  bottom: 0;
}
#stories .rollover h2 {
  font-size: 3rem;
  margin-bottom: 0;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .tile {
    height: 50vw;
  }
  .tile .quote {
    font: 2rem / 1 Druk;
  }
  .tile:after {
    padding: none;
  }
}
@media (min-width: 992px) {
  .tile {
    margin: 0;
    padding: 0;
    height: 25vw;
  }

  .tile .quote {
    height: 100%;
    z-index: 1;
    width: 100%;
    left: 0px;
  }
  .rollover {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 0;
  }
  #stories .rollover h2 {
    text-transform: none;
  }
}

/* previous projects */

.previous-tile {
  position: relative;
  min-height: 550px;
  display: flex;
  overflow: hidden;
}
.previous-tile .previous-tile-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  padding: 3rem;
  z-index: 1;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 1s opacity;
}
.previous-tile h2 {
  text-transform: uppercase;
}
.previous-tile a {
  text-decoration: none;
}

.previous-tile video {
  position: absolute;
  z-index: 0;
  left: 0;
  min-height: 100%;
  min-width: 100%;
  transition: 1s top;
  background-color: #000;
}
.previous-tile video.up {
  top: 100%;
}
.previous-tile video.down {
  top: -100%;
}
.previous-tile.in-frame video {
  top: 0;
  bottom: 0;
}
.previous-tile.in-frame .previous-tile-content {
  opacity: 1;
}

.explore .link-text {
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(244, 233, 205, 1);
  transition: 0.25s border;
}
.explore svg {
  margin-left: 10px;
  transition: 0.25s margin;
}

.explore a:hover .link-text {
  border-bottom: 2px solid rgba(244, 233, 205, 0);
}
.explore a:hover svg {
  margin-left: 15px;
}

/* pane */

.closer {
  background: #ecaf4a;
}
.closer span {
  color: #0c324d;
}
.closer:hover {
  background: rgb(244, 233, 205);
}

#pane h1 {
  line-height: 0.9;
  margin-bottom: 24px;
}

#pane {
  background-color: #0c324d;
  border-left: 1px solid rgb(244, 233, 205);
  min-height: 100vh;
}

.profile {
  padding: 10px 40px;
}

.profile a {
  color: #ecaf4a;
  text-decoration: none;
}
.profile a:hover {
  text-decoration: underline;
}

h2.section-title {
  color: #ecaf4a;
  text-transform: uppercase;
  font-size: 44px;
  margin-top: 24px;
}

.profile-introduction {
  font: 20px/1.4 "Work Sans";
  font-weight: 600;
}

a.btn-yellow {
  display: block;
  text-align: center;
  padding: 5px;
  text-decoration: none;
  font-family: Druk;
  text-transform: uppercase;
  font-size: 35px;
  background-color: #ecaf4a;
  color: #0c324d;
  letter-spacing: 0.1px;
  transition: 0.25s color, 0.25s background-color;
}
a.btn-yellow:hover {
  color: #0c324d;
  background: rgb(244, 233, 205);
  text-decoration: none;
}

/* put image modal above content modal */

#modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}
#modal img {
  max-width: 100%;
}
#modal .close {
  color: #ecaf4a;
  position: absolute;
  top: 0px;
  right: -45px;
  background: rgb(13, 50, 77);
  width: 45px;
  height: 45px;
  z-index: 2010;
  opacity: 1;
  text-shadow: none;
  font-weight: bold;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

#modal .modal-download {
  position: absolute;
  top: 55px;
  right: -45px;
  background: rgb(13, 50, 77);
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 1;
  border: none;
  z-index: 2010;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
#modal .modal-download:hover {
  opacity: 1;
}

#modal .modal-content {
  max-width: calc(100% - 45px);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Slider */

.slick-slide {
  position: relative;
  margin: 0px 15px;
  overflow: hidden;
}

.slick-list {
  margin: 0 -15px;
}

.slick-slide .caption,
.slick-slide img {
  width: 100%;
}

.slick-slide .picture-frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.slick-slide .caption {
  margin-top: 12px;
}

@media (min-width: 992px) {
  .slick-slide img {
    object-fit: cover;
    transform: scale(1);
    transition: 0.2s transform;
  }

  .slick-slide .caption {
    position: absolute;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    opacity: 0;
    transition: 0.2s opacity;
    z-index: 1;
    background-color: rgba(220, 173, 82, 0.8);
    font-size: 34px;
    line-height: 1;
    text-transform: uppercase;
    margin: 0px;
    font-family: Druk;
    color: #22354d;
    padding: 1rem;
    cursor: pointer;
  }
  .slick-slide:hover img {
    transform: scale(1.1);
    cursor: pointer;
  }
  .slick-slide:hover .caption {
    opacity: 1;
  }
}

.slick-track {
  margin-left: 0;
  margin-right: 0;
}

/* Arrows */
.slick-prev,
.slick-next {
  font-size: 0;
  line-height: 0;

  position: absolute;
  top: 50%;

  display: block;

  width: 45px;
  height: 45px;
  padding: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);

  cursor: pointer;
  background-color: #ecaf4a;
  transition: 0.2s background-color;
}

.audio .slick-prev,
.audio .slick-next {
  top: 29px;
}

.slick-prev {
  left: -80px;
  background-image: url("/static/img/slick-prev.svg");
  background-position: center;
  border: none;
}
.slick-next {
  right: -80px;
  background-image: url("/static/img/slick-next.svg");
  background-position: center;
  border: none;
}

.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
  background-color: rgb(244, 233, 205);
}
