@media(min-width:768px) {
  body.stick div.nav {position: fixed;padding-bottom:0;}
  body.stick div.nav div.top-content {padding-bottom: 0;}
}

@media(min-width: 768px) {
  /*body.stick .inside-nav, .inside-above-nav {
    max-width: 100%;
    width: 100%;
  }*/

  /*body.stick .brand {margin-left: 50px;}
  body.stick .brand-right {margin-right: 20px;}*/
}

.gallery-image a {cursor: zoom-in;}

.vimeo {
  position: absolute;
  top: 0;
  right: 20px;
  bottom: unset;
  left: unset;
}

.vimeo iframe {
  width: 700px;
  height: 405px;
}

.vimeo-click {cursor: pointer;}

.video-thumb {
  display: inline-block;
  width: 50px;
  height: 40px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin: 5px 5px 5px 0;
  cursor: pointer;
  background-color: #FFFFFF;
  font-size: 0;
  float: left;
  position: relative;

}

.video-thumb:after {
  content: '';
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-left: 20px solid #FFFFFF;
  border-bottom: 10px solid transparent;
  position: absolute;
  top: 10px;
  left: 15px;
}

.v-thumb {
  position: absolute;
  top:0;
  left: 0;
  right:0;
  bottom:0;
  background-color: rgba(0,0,0, 0.6);
}

.v-thumb:after {
  content: '';
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-left: 20px solid #FFFFFF;
  border-bottom: 10px solid transparent;
  position: absolute;
  top: 10px;
  left: 15px;
}

.slbOverlay, .slbWrapOuter, .slbWrap {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.slbOverlay {
  overflow: hidden;
  z-index: 2000;
  background-color: #FFFFFF;
  opacity: 1;
}

.slbWrapOuter {
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 2010;
}

.slbWrap {
  position: absolute;
  text-align: center;
}

.slbWrap:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.slbContentOuter {
  position: absolute;
  top:0;
  right: 0;
  bottom: 0;
  left:0;
  display: block;
  vertical-align: middle;
  margin: 0px auto;
  padding: 0;
  box-sizing: border-box;
  z-index: 2020;
  text-align: left;
  max-width: 100%;
  width: 100%;
}

.slbContentEl .slbContentOuter {
  padding: 5em 1em;
}

.slbContent {
  position: relative;
  height: 100%;
}

.slbContentEl .slbContent {
  background-color: #fff;
  /*box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.4);*/
}

.slbDirectionNext img {
  cursor: e-resize;
}

.slbImageWrap {
  position: relative;
  height: calc(100vh - 20px);
  box-sizing: border-box;
  max-width: 1300px;
  margin: auto;
}

.slbImageWrap:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5em;
  bottom: 5em;
  display: block;
  z-index: -1;
  /*box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.6);*/
  background-color: #FFF;
}

.slb-inner {
  /*position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: calc(100% - 150px);
  max-width: 65%;*/

  position: relative;
  width: 70%;
  height: calc(100% - 150px);
  float: right;
  margin-top: 150px;
  box-sizing: border-box;
  max-width: 1200px !important;
  /* overflow: hidden; */
  max-height: 800px !important;
}

.slbImage {
	width: 100%;
  height: 98%;
  max-height: 800px !important;
  display: block;
  line-height: 0;
  box-sizing: border-box;
  padding: 5rem 0;
  margin: 0;
  position: relative;
  top: 0;
  right: 0;
  float: right;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
  max-width: 1200px !important;
  cursor: zoom-in;
}

.caption-wrap {
  display: block;
  width: 25%;
  /*position: relative;*/
  margin: 175px 0 0 50px;
  z-index: 99999999999;
  float: left;
  box-sizing: border-box;

}

.slbCaption {
    display: block;
    position: relative;
    width: 100%;
    word-wrap: normal;
    font-style: normal;
    font-size: 16px;
    padding: 0;
    color: #777777;
    text-align: left;
    white-space: pre-line;
    margin: 5px 0 20px 0;
}

.related {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 5px;
}

.related-image {
  display: inline-block;
  width: 50px;
  height: 40px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin: 5px 5px 5px 0;
  cursor: pointer;
}

.slbArrows {}

.slbCloseBtn, .slbArrow {
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
}

.slbCloseBtn::-moz-focus-inner, .slbArrow::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.slbCloseBtn:hover, .slbArrow:hover {
  opacity: 0.5;
}

.slbCloseBtn:active, .slbArrow:active {
  opacity: 0.8;
}

.slbCloseBtn {
	font-size: 16px;
  width: auto;
  height: auto;
  line-height: normal;
  position: absolute;
  left: 50px;
  top: 140px;
  color: #000000;
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
  z-index: 4000;
  text-transform: none;
  letter-spacing: normal;
}

.slbCloseBtn:hover {
	color: #000000;
	color: rgba(0, 0, 0, 0.7);
	background-color: transparent;
}

.slbLoading .slbCloseBtn {
  display: none;
}

.slbLoadingText {
  font-size: 1.4em;
  color: #fff;
  color: rgba(255, 255, 255, 0.9);
}

.slbLoading .slbArrows {
  display: none;
}

.slbArrow {
    position: relative;
    margin-top: 0;
    width: 10%;
    height: auto;
    opacity: 0.7;
    text-indent: 0;
    overflow: hidden;
    color: #000000;
}

.slbArrow:hover {
	color: #000000;
}

.slbArrow:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -0.8em 0 0 -0.8em;
  border: 0.8em solid transparent;
}

.slbArrow.prev:before {
  border-right-color: #fff;
}

.slbArrow.next:before {
  border-left-color: #fff;
}

.slbIframeCont {
  width: 80em;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%;
  margin: 5em 0;
}

.slbIframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.6);*/
  background: #000;
}

.slbArrow.prev:before {
    content: "\2190";
    position: relative;
    font-size: 30px;
    top: unset;
    left: unset;
    margin: 0;
    border: none;
    color: #000000;
}

.slbArrow.next:before {
    content: "\2192";
    position: relative;
    font-size: 30px;
    top: unset;
    left: unset;
    margin: 0;
    border: none;
    color: #000000;
}

.slb-left {
  width: 50%;
  height: 100%;
  display: block;
  position: absolute;
  left: 0;
  right: 50%;
  bottom: 0;
  cursor: w-resize;
}

.slb-right {
  width: 50%;
  height: 100%;
  display: block;
  position: absolute;
  right: 0;
  left: 50%;
  bottom: 0;
  cursor: e-resize;
}


@-webkit-keyframes slbOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.7;
  }
}

@-moz-keyframes slbOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.7;
  }
}

@keyframes slbOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.7;
  }
}

@-webkit-keyframes slbEnter {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -1em, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
  }
}

@-moz-keyframes slbEnter {
  from {
    opacity: 0;
    -moz-transform: translate3d(0, -1em, 0);
  }
  to {
    opacity: 1;
    -moz-transform: translate3d(0, 0, 0);
  }
}

@keyframes slbEnter {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -1em, 0);
    -moz-transform: translate3d(0, -1em, 0);
    -ms-transform: translate3d(0, -1em, 0);
    -o-transform: translate3d(0, -1em, 0);
    transform: translate3d(0, -1em, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@-webkit-keyframes slbEnterNext {
  from {
    opacity: 0;
    -webkit-transform: translate3d(4em, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
  }
}

@-moz-keyframes slbEnterNext {
  from {
    opacity: 0;
    -moz-transform: translate3d(4em, 0, 0);
  }
  to {
    opacity: 1;
    -moz-transform: translate3d(0, 0, 0);
  }
}

@keyframes slbEnterNext {
  from {
    opacity: 0;
    -webkit-transform: translate3d(4em, 0, 0);
    -moz-transform: translate3d(4em, 0, 0);
    -ms-transform: translate3d(4em, 0, 0);
    -o-transform: translate3d(4em, 0, 0);
    transform: translate3d(4em, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@-webkit-keyframes slbEnterPrev {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-4em, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
  }
}

@-moz-keyframes slbEnterPrev {
  from {
    opacity: 0;
    -moz-transform: translate3d(-4em, 0, 0);
  }
  to {
    opacity: 1;
    -moz-transform: translate3d(0, 0, 0);
  }
}

@keyframes slbEnterPrev {
  from {
    opacity: 0;
    -webkit-transform: translate3d(-4em, 0, 0);
    -moz-transform: translate3d(-4em, 0, 0);
    -ms-transform: translate3d(-4em, 0, 0);
    -o-transform: translate3d(-4em, 0, 0);
    transform: translate3d(-4em, 0, 0);
  }
  to {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.att-link {
  cursor: pointer;
}

.att-link i {
  width: 35px;
  height: 35px;
}

.att-content {
  background-color: #CCCCCC;
  padding: 4px;
}

.att-content span {
  background-color: #FFFFFF;
  display: block;
  padding: 4px;
  overflow: scroll;
  line-height: 1;
  color: #222222;
}

.zoom-controls {
  position: absolute;
  bottom: 25px;
  display: flex;
  align-items: center;
  width: 70%;
}

.zoom-controls .zoom-button {
  margin-right: 10px;
  font-size: 3rem;
  cursor: pointer;
  text-align: center;
  line-height: 0;
  flex: 1;
  margin-bottom: 5px;
}

.zoom-controls .reset-button.zoom-button {
  font-size: 2rem;
  display:none;
}

input.range-input {
  margin:0;
  flex: 2;
}

@media (max-width: 768px) {

  body.stick {
    overflow: hidden;
  }

  .slbOverlay, .slbWrapOuter, .slbWrap {
    top: 50px;
    height: calc(100% - 50px);
  }

  .popped .slbOverlay, .popped .slbWrapOuter, .popped .slbWrap {
    top: 0;
    height: 100%;
  }

  .slb-inner {
    position: relative;
    width: calc(100% - 40px);
    height: auto;
    float: none;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: unset;
    max-height: unset;
  }

  .caption-wrap {
      display: block;
      width: 100%;
      position: relative;
      margin: 0;
      z-index: unset;
      float: left;
      box-sizing: border-box;
      bottom: 0;
      height: auto;
  }

  .popped .caption-wrap {
    position: absolute;
    top: 0;
  }

  .slbContentOuter {width: 100%;}
  .slbImageWrap {
    width: 100%;
    margin: 0 auto;
    height: 100%;
  }
  .slbCaption {max-width: 100%;}
  .slbArrows {top:unset;bottom:unset;}

  body:not(.popped) .related {
    margin-left: 20px;
    position: relative;
    top: 0;
    left: 0;
    z-index: 999999999999;
  }

  .popped .related {
    margin-left: 0;
    display: inline-flex !important;
    justify-content: center !important;
  }

  .popped .video-thumb {
    float:none;
  }

  .att-link {
    display: block;
    margin-left: 20px;
    position: relative;
    bottom: 0;
    float: left;
  }

  .slbCloseBtn {
    position: absolute;
    top: -10px;
    left: 20px;
  }

  .slbArrows {
    width: 100%;
    padding-top: 20px;
  }

  .slbArrow.prev {
    left:0;
    position: relative;
    bottom: 0;
    width: 50%;
  }

  .slbArrow.next {
    left: 0;
    position: relative;
    bottom: 0;
    width: 50%;
  }

  .slb-left, .slb-right {display:none;}

  .slbImage {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
    line-height: 0;
    box-sizing: border-box;
    margin: 20px 0;
    position: relative;
    right: unset;
    top: unset;
    padding: 0 0 100% 0;
    background-size: contain;
    background-position: center;
  }

  .vimeo {
    /* display: none; */
    position: unset;
    top: unset;
    left: unset;
    max-width: 100%;
    max-height: 100%;
    /* margin-left: 20px; */
  }

  .vimeo iframe {
    margin-top: 30px;
  }

  .slbCaption {
      display: block;
      width: 300px;
      overflow: visible;
      word-wrap: normal;
      font-style: normal;
      font-size: 16px;
      position: relative;
      left: unset;
      padding: 0 20px;
      color: #777777;
      text-align: left;
      margin: 0;
      z-index: 99999999999;
      float: none;
      white-space: pre-line;
  }

  .popped .slbCaption {
    z-index: 0;
  }

  .close-pop {
    top: 10px !important;
    right: 10px !important;
    background-color: white;
  }

  .zoom-controls {width: 100%;}
  input.range-input {flex:4;}

  .slbContent .tweet {
    display: block;
    position: relative;
    bottom: 0;
    float: left;
  }

}

@media (max-width: 1300px) {
  .slbImage {
    max-width: 750px !important;
  }
}

@media (min-width: 768px) {
/*   .slb-right {
    width: 100%;
    left: 0;
  } */
  .slb-left, .slb-right {
    display: none;
  }

  .slbArrows {
    position: absolute;
    bottom: 10%;
    left: 50px;
  }

  .att-link {
    position: absolute;
    width: 20px;
    bottom: 10%;
    left: 170px;
    height: 35px;
    overflow: hidden;
  }

  .att-content {
    position: absolute;
    left: 50px;
    bottom: calc(10% + 50px);
    white-space: nowrap;
/*     width: 20%; */
    overflow: scroll;
  }

  .slbContent .tweet {
    position: absolute;
    bottom: 10%;
    left: 195px;
    height: 32px;
  }

  .slbArrow {
    width: 50px;
  }

}

@media (min-width: 768px) and (max-width: 1400px) {
  .slbImage {background-size: contain;}
}

@media (min-width: 1400px) {

  .caption-wrap {
    margin: 175px 0 0 0;
  }
  .slbArrows {
    left: 0;
  }

  .the-button {
    display: block;
    position: absolute;
    left: 50px;
    top: 140px;
    width: calc(100% - 50px);
    text-align: left;
  }

  .inside-button {
    max-width: 1350px;
    margin: auto;
    display: block;
    position: relative;
  }

  .slbCloseBtn {
    font-size: 16px;
    width: auto;
    height: auto;
    line-height: normal;
    position: relative;
    left: unset;
    top: unset;
    color: #000000;
    color: rgba(0, 0, 0, 0.7);
    text-align: center;
    z-index: 4000;
    text-transform: none;
    letter-spacing: normal;
  }
}

.popped-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: white;
  z-index: 2022;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slbImage-popped {
  background-position: center;
  background-size: contain;
  width: 100%;
  height: 75vh;
  background-repeat: no-repeat;
}

.popped .related {
  margin-left: 0;
  display: inline-flex;
  justify-content: center;
}

.popped .vimeo {
  position: absolute;
  top: 50%;
  right: unset;
  bottom: unset;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-pop {
  position: absolute;
  top: 30px;
  right: 60px;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.close-pop:after {
    content: '';
    height: 40px;
    border-left: 2px solid #000000;
    position: absolute;
    transform: rotate(45deg);
    left: 20px;
}

.close-pop:before {
    content: '';
    height: 40px;
    border-left: 2px solid #000000;
    position: absolute;
    transform: rotate(-45deg);
    left: 20px;
}

.close-pop span {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  border: 0;
  overflow: hidden;
}