/*
 Theme Name:   evergreen
 Description:  evergreen
 Template:     betheme
 Text Domain:  evergreen
*/

@media only screen and (max-width: 1239px) {
  .series-description {
    display: none;
  }
}

.series-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f7f9fa;
}

.series-container--unloaded {
  display: none;
}

.series-container,
.series-container * {
  box-sizing: border-box;
}

#Content .series-image {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 2s;
  will-change: opacity;
}

#Content .series-image--enabled {
  display: block;
  opacity: 1;
}

.series-menu {
  z-index: 1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 24%;
  background: rgba(0, 0, 0, 0.5);
  padding: 40px 0 40px 40px;
}

.series-menu,
.series-menu li,
.series-menu-header {
  color: #fff;
}

.series-menu-header {
  font-family: "eg" !important;
  font-size: 24px;
  font-weight: 700;
}

.series-menu:after {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 40px;
  margin-right: -40px;
  content: "";
}

.series-menu-list-item {
  position: relative;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 0.6s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 3rem;
}

.series-menu-list-item:before {
  border-radius: 100%;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 16px;
  width: 16px;
  background: #d01427;
  margin-left: -26px;
  margin-top: 15px;
  opacity: 0;
  transition: opacity 0.6s;
}

.series-menu-list-item:after {
  position: absolute;
  bottom: 0;
  width: 60px;
  left: 0;
  height: 2px;
  background: #fff;
  content: "";
}

.series-menu-list-item:last-child:after {
  content: none;
}

.series-menu-list-item--enabled .series-menu-title {
  color: #c32026;
}

.series-menu-list-item--enabled:before {
  opacity: 0.8;
}

.series-menu-title {
  padding: 10px 0;
}

.series-menu-title p {
  margin-bottom: 3px;
}

.series-description {
  margin-top: 40px;
}

.series-description p {
  margin: 0;
}

.series-story {
  width: 300px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  text-align: center;
  cursor: pointer;
}

.series-story-details {
  width: 100%;
  padding: 0 30px;
}

.series-story-details--mobile {
  display: none;
  width: 100%;
  padding: 0 20px;
}

.series-story-title {
  font-family: eg-headline !important;
  font-size: 23px;
  line-height: 27px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  color: #19222b;
}

.series-story-author {
  color: #0a0a0a;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.series-story-link:hover {
  text-decoration: none;
}

.series-story-link:hover .series-story-link-label {
  text-decoration: underline;
}

.series-story-link-label,
.series-story-mobile-label {
  font-family: "eg";
}

.series-story-mobile-container {
  display: none;
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
  div.series-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media only screen and (max-width: 767px) {
  .series-story,
  .portfolio-photo .portfolio-item .portfolio-details .details {
    width: 200px !important;
  }

  .portfolio-details * {
    box-sizing: border-box;
  }
}

@media only screen and (max-width: 959px) {
  .series-story-mobile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .series-story-card {
    position: relative;
    /* Hacky but valid CSS to make square dimensions */
    /* Padding is width-based so we base vertical dimensions only on that */
    width: 100%;
    height: 0;
    padding-top: 100%;
  }

  .series-story-details--mobile {
    display: block;
  }

  .series-menu,
  .series-story {
    display: none;
  }

  .series-story-mobile-container .series-story {
    display: flex;
  }

  div.series-container {
    height: auto !important;
      background: #f7f9fa;
  }

  #Content .series-image {
    opacity: 1;
    transition: none;
    position: absolute;
    display: block;
    padding: 10px 0;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
  }
}

.portfolio-details .more {
  opacity: 0 !important;
}

.portfolio-details .details {
  opacity: 1 !important;
}
