:root {
  --bg-z-index: 0;
  --over-z-index: 1;

  --text-color: #FFF;
  --dark-bg-color: #2B2B2B;
  --medium-bg-color: #434041;

  --slider-transition-duration: 1s;
  --slider-effect-duration: 1.6s;
  --slider-effect-delay: .8s;
}

@keyframes news {
  from {opacity:.2;}
  to {opacity:1;}
}
/* uncomment to blink 'news' icon */
.fa-newspaper {
  /* animation-name: news; */
  /* animation-iteration-count: infinite; */
  /* animation-direction: alternate; */
  /* animation-duration:.5s; */
}

body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--medium-bg-color);
}

b {
  font-weight: bold;
}

a, u {
  text-decoration: none;
  border-bottom: 1px solid;
  color: var(--text-color);
}

/* Slider wrapper */
.slider-wrapper {
  background: var(--dark-bg-color);
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-wrap: nowrap;
  transition: transform var(--slider-transition-duration);
}

.bg {
  z-index: var(--bg-z-index);
  position: fixed;
  background: var(--dark-bg-color);
  color:var(--text-color);
}
.bg h2 {
  font-size: 45px;
}

/* titles */
h2 {
  font-weight: 900;
  font-size: 45px;
  line-height: 150%;
  text-align:left;
}

h1, h3, .work h2 {
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  line-height: 150%;
  letter-spacing: 0.35em;
  text-align: center;
}

/* Slider */
.bg, .slider {
  flex: 100% 0 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  transition: transform var(--slider-effect-duration), margin var(--slider-effect-duration);
}


.slider * {
  opacity: 0;
  transition: opacity var(--slider-effect-duration), transform var(--slider-effect-duration);
}
.slider.active *, .slider.work.active * {
  opacity: 1;
  transform: translateX(0);
}

.slider h1, .slider ul {
  transform: translateX(-20vw);
}

.slider h2, .slider h3 {
  transform: translateX(20vw);
}

.slider.work h4, .slider.work figcaption div {
  transform: translateX(20vw);
}

.slider.work p {
  transform: translateX(-20vw);
}

.slider.work img {
  width: 0;
  margin-left: 50%;
  transition: width var(--slider-effect-duration), margin-left var(--slider-effect-duration);
}
.slider.work.active img {
  width: 100%;
  margin-left: 0;
}

/* special style */
#news {
  background: var(--medium-bg-color);
  color: var(--text-color);
}
#news li {
  text-align: left;
  margin-bottom: 1em;
  color: var(--text-color);
}
#news li a {
  color: var(--text-color);
}

#about {
  background: var(--text-color);
  color: var(--medium-bg-color);
}
#manifesto {
  background: var(--dark-bg-color);
  color: var(--text-color);
  padding: 20px;
  box-sizing: border-box;
}
#manifesto h2 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
#manifesto h3 {
  text-align: left;
}

#bio {
  background: var(--medium-bg-color);
  color: var(--text-color);
  overflow: hidden;
}
#contact {
  background: var(--medium-bg-color);
  color: var(--text-color);
}

.slider > div {
  text-align: center;
}

.slider summary {
  margin:1em 30px 0 30px;
  display:flex;
  color: var(--text-color);
}

.slider summary section {
  width:33%;
}

.slider ul {
  color: var(--text-color);
  padding:0 6%;
}

.slider summary h2 {
  font-family:"Libre Baskerville", serif;
  font-style:oblique;
  text-align:center;
  font-weight:400;
}
.slider summary ul {
  list-style:none;
  text-align:left;
  padding-left:0;
}

.slider summary ul > li {
  margin-bottom: 1em;
}

/* second level of slides */
.work {
  background: var(--medium-bg-color);
  color: var(--text-color);
}

.work figure {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  height: 100vh;
}

.work figcaption {
  flex: 0 0 50%;
  padding: 0px 50px;
  box-sizing: border-box;
}

.work figcaption h1 {
  text-align: left;
  margin: 0;
}
.work figcaption h2 {
  text-align: left;
  margin: 0;
}
.work figcaption h4 {
  margin: 0;
}
.work figcaption h5 {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-weight: 400;
  margin: 0.5em 0;
}

.work figcaption .dims {
  padding: 0;
  margin: 0;
}

.work figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 0 0 50%;
}

/* DETAIL WORK VIEW */
.detail.work {
  height: 100vh;
  overflow-y: scroll;
}
.detail.work figure {
  scroll-snap-align: start;
}

.detail.work figure:nth-child(n + 2) {
  height: calc(100vh - 40px);
}
.detail.work figure:nth-child(n + 2) img {
  max-height: 80vh;
  object-fit: contain;
  object-position: right;
}

.detail.work figure:nth-child(2n + 3) figcaption {
  text-align: right;
}
.detail.work figure:nth-child(2n + 3) a.circle {
  margin-left: calc(100% - 20px);
}

.detail.work figure:nth-child(2n + 3) img {
  object-position: left;
}

.detail.work figure:nth-child(2n) {
  flex-direction: row-reverse;
  background-color: var(--dark-bg-color);
}

.detail.work a.circle {
  margin: 1em 0;
}

/* video player */
.detail.work figure .media-container {
  position: relative;
}

.detail.work figure .media-container iframe,
.detail.work figure .media-container img {
  transition: opacity 1s;
}

.detail.work figure .media-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  opacity: 0;
  background: #000000;
}

.detail.work .play, .detail.work .volume {
  position: absolute;
  top: 0px;
  right: 1em;
  cursor: pointer;
}

.detail.work .volume {
  right: calc(2em + 20px);
}

.detail.work .play:before {
  content: "⯈";
}
.detail.work .playing .play:before {
  content: "⯀";
}
.detail.work .volume:before {
  content: "🕪";
}
.detail.work .muted .volume:before {
  content: "🕩";
}

.detail.work figure .media-container.playing img {
  opacity: 0;
}
.detail.work figure .media-container.playing iframe {
  opacity: 1;
}


/* Slider Pagger */
@property --grad-color {
  syntax: '<color>';
  initial-value: transparent;
  inherits: false;
}

.slider-pagination {
  position: fixed;
  bottom: 10px;
  width: 100%;
  left: 0;
  text-align: center;
  z-index: var(--over-z-index);
  display: flex;
  justify-content: center;
  transition: filter var(--slider-effect-duration);
}

.slider-pagination.dark {
  filter: invert(1);
}
.slider-pagination div {
  position: relative;
  opacity: .7;
  transition: opacity 1s;
  overflow: hidden;
}


.slider-pagination a, a.circle, .slider-pagination:before {
  width: 24px;
  height: 24px;
  line-height: 1.5em;
  display: inline-block;

  border: 1px solid var(--text-color);
  box-shadow: inset 0px 0px 2px 0px var(--medium-bg-color);
  border-radius: 50%;
  margin: 0 2px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  color: var(--text-color);

  transition: --grad-color var(--slider-effect-duration);
  background: linear-gradient(0deg, var(--grad-color) 50%, transparent 50%);
}

a.circle {
  display: block;
  /* margin: auto; */
}

.slider-pagination span {
  position: absolute;
  width: max-content;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Lato', sans-serif;
  color: var(--text-color);
  opacity: 0;
  transition: opacity 1s;
}

.slider-pagination div:hover {
  overflow: visible;
  opacity: 1;
}
.slider-pagination div:hover span {
  opacity: 1;
}
.slider-pagination div:hover a {
  --grad-color: var(--text-color);
}

.slider-pagination div.active {
  opacity: 1;
}

.slider-pagination div.active a {
  --grad-color: var(--text-color);
  background: var(--grad-color);
}

@media only screen and (max-width: 1024px) {
  .slider-pagination {
    display: block;
    text-align: left;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 100%;
    opacity: .9;
    background: var(--dark-bg-color);
    padding: 10px;
    box-sizing: border-box;
    transition: left var(--slider-transition-duration);

  }
  .slider-pagination:before {
    content: "≡";
    margin-left: -45px;
    line-height: 1.5em;
  }

  .slider-pagination.visible {
    left: 45px;
  }
  
  .slider-pagination div {
    margin-bottom: 10px;
  }
  .slider-pagination span {
    position: initial;
    opacity: 1;
    margin-left: 10px;
  }

  .detail.work figure:nth-child(n + 2) {
    height: auto;
  }
  
  .detail.work figure figcaption {
    flex: 0 1;
    padding-bottom: 2em; 
  }

  #bio {
    display: block;
  }
  #bio summary {
    display: block;
  }
  .slider summary h2 {
    display: none;
  }

  .slider summary section {
    width: auto;
  }

  .slider summary section:nth-child(n + 2) {
    display: none;
  }
  .slider summary section ul li:nth-child(n + 11) {
    display: none;
  }
  
  .work figure img {
    height: auto;
  }

  .work figure {
    overflow-y: hidden;
    flex-direction: column;
    margin: 0;
    padding: 20px 0px 0px 0px;
  }
  .work figcaption {
    flex: auto;
    padding: 0px 20px;
  }
  .detail.work figure {
    padding: 20px 0px;
  }
  .detail.work figure:nth-child(2n) {
    flex-direction: column;
    min-height: max-content;
  }
  .detail.work figure:nth-child(2n) img {

  }
}

@media only screen and (max-width: 500px) {
  h3 {
    font-size: 12px;
  }
}
