#content.portfolio {
  padding-top: 115px !important;
  padding-bottom: 100px !important;
}
#content.portfolio h1 {
  margin-top: 10px;
  font-size: 36px;
}
#content.portfolio .wrap {
  position: relative;
}
#content.portfolio .breadcrumb {
  margin-top: 50px;
}
#content.portfolio .taglist {
  position: absolute;
  right: 80px;
  padding-right: 20px;
  top: 50px;
}
@media screen and (max-width: 968px) {
  #content.portfolio .taglist {
    display: none;
  }
}
#content.portfolio .taglist a:hover {
  color: #38619c;
}

.market-toggle {
  text-decoration: none;
  color: #333;
  font-family: "Open Sans";
}
@media screen and (max-width: 968px) {
  .market-toggle {
    display: none;
  }
}

#markets {
  position: absolute;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.4);
  right: 0;
  top: 35px;
  margin-right: 0;
  padding: 5px 20px 5px 30px;
  width: auto;
  min-width: 300px;
}
#markets ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
#markets ul li {
  margin: 0;
  width: auto;
  position: relative;
  border-bottom: 1px dotted #999;
}
#markets ul li:last-of-type {
  border: none;
}
@media screen and (max-width: 1280px) {
  #markets ul li {
    width: 100%;
    margin: 0;
  }
}
#markets ul li a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0 5px 20px;
  text-align: right;
  color: #333;
  font-family: "Open Sans";
  -webkit-transition: transition-prefix(background, 1s ease, webkit);
  transition: background 1s ease;
}
#markets ul li a:hover, #markets ul li a:focus {
  color: #38619c;
}

#portfolio-tag-index, #portfolio-piece-list {
  margin: 30px 0;
  list-style: none;
}
#portfolio-tag-index li, #portfolio-piece-list li {
  max-width: 33%;
}
#portfolio-tag-index li a, #portfolio-piece-list li a {
  display: block;
  position: relative;
  transition: all 0.5s ease;
  border-right: 1px solid white;
  border-bottom: 1px solid white;
}
#portfolio-tag-index li a img, #portfolio-piece-list li a img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(50%) grayscale(100%);
  transition: all 0.5s ease;
}
#portfolio-tag-index li a h2, #portfolio-piece-list li a h2 {
  position: absolute;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
  text-align: left;
  padding: 20px;
  font-weight: 300;
  text-transform: uppercase;
  transition: all 0.5s ease;
  color: #38619c;
  font-size: 18px;
  margin-bottom: 0 !important;
}
#portfolio-tag-index li a:hover img, #portfolio-piece-list li a:hover img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(85%) grayscale(0%);
}
#portfolio-tag-index li a:hover h4, #portfolio-piece-list li a:hover h4 {
  color: #fae818;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

#project-intro {
  position: relative;
  max-height: 80vh;
  overflow: hidden;
}
#project-intro img {
  display: block;
  width: 100%;
  height: auto;
}
#project-intro #intro-text {
  position: absolute;
  width: 50%;
  height: auto;
  padding: 50px 100px 50px 50px;
  right: 0;
  bottom: 10%;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 14px;
  line-height: 18px;
  text-align: left;
}
@media screen and (max-width: 1000px) {
  #project-intro #intro-text {
    position: static;
    width: 100%;
    padding: 30px;
  }
}
#project-intro #intro-text h2 {
  color: #38619c;
  text-transform: uppercase;
  font-size: 20px;
}
#project-intro #intro-text p {
  font-size: 16px;
  line-height: 1.5em;
}
#project-intro #intro-text .button-block {
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  height: 100%;
  right: 0;
  top: 0;
  width: 80px;
}
@media screen and (max-width: 1000px) {
  #project-intro #intro-text .button-block {
    display: none;
  }
}
#project-intro #intro-text .button-block .button {
  background: #38619c;
  position: absolute;
  bottom: 0;
  right: 0;
  font-weight: 800;
  border-radius: 0;
  border: none;
  padding: 30px;
  width: 80px;
  font-size: 18px;
  font-family: "Icons";
}

#page {
  padding-top: 0 !important;
}

#project-body {
  padding: 0;
  margin-top: 50px;
}
#project-body.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-column-gap: 1px;
  grid-row-gap: 1px;
}
#project-body .detail-1 {
  margin-bottom: 1px;
}
#project-body .detail-2 img {
  display: block;
  width: 100%;
  height: auto;
}
#project-body #project-description {
  padding: 20px;
}
@media screen and (max-width: 1000px) {
  #project-body #project-description {
    width: 100% !important;
  }
}
#project-body .flexslider {
  border: none;
  border-radius: 0;
  max-height: 800px;
  height: auto;
  margin: 0;
  overflow: hidden;
}
#project-body .flexslider .slides li {
  max-height: 800px;
  height: auto;
  position: relative;
}

#project-nav {
  background: #000;
  color: white;
  padding: 10px 80px;
}
@media screen and (max-width: 1000px) {
  #project-nav {
    background: none;
    color: #333;
    padding: 10px 30px;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
  }
}
#project-nav a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  vertical-align: middle;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.6;
  transition: all 0.3s ease;
}
#project-nav a span {
  text-transform: none;
}
#project-nav a:hover {
  opacity: 1;
}
#project-nav a.disabled {
  color: #999;
}
#project-nav a.disabled:hover {
  opacity: 0.6;
  cursor: default;
}
@media screen and (max-width: 1000px) {
  #project-nav a {
    color: #333;
  }
}
#project-nav .next {
  text-align: right;
}

#tags {
  margin: 30px 0;
}
#tags .tag {
  display: inline-block;
  border-radius: 20px;
  background: #999;
  text-decoration: none;
  font-weight: 300;
  font-size: 12px;
  color: #fff;
  padding: 5px 10px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
#tags .tag:hover {
  background: #38619c;
}

#project {
  margin-top: 85px;
}
@media (max-width: 1200px) {
  #project {
    margin-top: 90px;
  }
}
#project #project-label {
  padding-right: 20px;
}
@media (max-width: 1400px) {
  #project #project-label p {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  #project #project-label {
    padding: 25px;
  }
}
@media (max-width: 768px) {
  #project #project-label #details {
    display: block !important;
  }
}
#project #project-label h2 {
  color: #333;
}
#project #project-label h3, #project #project-label h4 {
  color: #999;
}
#project #project-label .button.outline {
  color: white;
  background: #333;
  border-color: #333;
}

/* customisation to counteract Kube default style */
.flex-direction-nav a {
  text-shadow: none;
  height: 50px;
  padding-top: 0px;
  color: white;
}
.flex-direction-nav a:before {
  box-sizing: content-box;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  color: white;
}
