/***************************** 
    CSS Variables
******************************/
:root {
  --headerheight: 88vh;
  --indexWidth: 86vw;
  --vh: 100%;
}


/***************************** 
    Global Styles 
******************************/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-moz-selection { 
    background: black;
    color: white;
}
  
::selection { 
    background: black;
    color: white;
}

html{
  height: fill-available;
}

@font-face {
  font-family: 'True Serif Regular';
  src:  url('fonts/True-Serif-Regular.otf') format('otf'),
        url('fonts/True-Serif-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'True Serif Book';
  src:  url('fonts/True-Serif-Book.otf') format('otf'),
        url('fonts/True-Serif-Book.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'True Sans Regular';
  src:  url('fonts/TrueSans-Regular.otf') format('otf'),
        url('fonts/TrueSans-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'True Sans Book';
  src:  url('fonts/TrueSans-Book.otf') format('otf'),
        url('fonts/TrueSans-Book.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}


/***************************** 
    Layout: Index
******************************/

body {
  margin:0;
  width: 100%;
  height: var(--vh);
  overflow-x: hidden;
  background-color: #FFF;
}

.header {
  display: flex;
  flex-direction: column;
  height: var(--headerheight);
  max-height:var(--headerheight);
  width: 100vw;
  max-width:100vw;
  align-items: center;
  justify-content: center;
  margin: 0;
  animation: 2s cubic-bezier(0.57, 0, 0.39, 1) forwards 2s headerHeightShrink;
}

.triptych__container {
  width: inherit;
  height: inherit;
  display: flex;
}

.triptych {
  height: inherit;
  max-height: inherit;  
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto var(--headerheight);
}


/***** Index *****/
.index {
  margin-right: 7vw;
  margin-left: 7vw;
  margin-top: 50px;
  margin-bottom: 50px;

  width: var( --indexWidth);
  height: auto;

  font-family: 'True Sans Book';
  font-style: normal;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  color: #000000;
}

.index-main {
  position: relative;
}

.index-main, .index-paintings, .index-installations, .index-videos, .index-writing {
  width: auto;
  height: auto;
  border-top: .75px black solid;
  padding-top:10px;
  padding-bottom:50px;
  column-count: 3;
}

.index-item-bio {
  width: calc((var( --indexWidth)/3) * 2);
  display: inline-block;
  padding: 0.3rem;
}

.index-bio-image{
  width:100%;
  color:aqua;
  display: inline-block;
  object-fit: contain;
  overflow: hidden;
}

.index-bio-image img {
  width:100%;
}

.index-item-credits {
  width: var( --indexWidth);
  position: fixed;
  bottom: -1.5rem;
  color: Gainsboro;
}

.index-item-credits  .index-main{
  border-top: none;
}


.index-item-bio p:not(:first-child) {
  margin-top: 0.5rem;
}

.index-item-bio p:last-of-type {
  margin-top: 0.5rem;
}

.index-item, .index-heading {
  width: 100%;
  text-align: left;
  -webkit-column-break-after: always;
  break-after: always;
}

.index-paintings .index-item, .index-installations .index-item, .index-videos .index-item, .index-writing .index-item {
  width: calc((var( --indexWidth)/3) * 2);
  height: auto;
  display: inline;
  column-span: all;
  column-count: 2;
}

@supports (not (break-after:column)){
  .index-paintings .index-item, .index-installations .index-item, .index-videos .index-item, .index-writing .index-item {
    display: inline-block;
  }
}

h1, h2 {
  font-family: 'True Sans Book', Arial, sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 20px;
  line-height: 20px;
  color: #000000;
}


li {
  list-style-type: none;
}


/***** Links *****/
a {
  color:black;
  text-decoration: none;
  
  transition: .5s;
  -o-transition:.5s;
  -ms-transition:.5s;
  -moz-transition:.5s;
  -webkit-transition:.5s;
}


a:hover {
  color:gray;
  text-decoration: none;
  
  transition: .5s;
  -o-transition:.5s;
  -ms-transition:.5s;
  -moz-transition:.5s;
  -webkit-transition:.5s;
}



/***************************** 
    Layout: Slideshow
******************************/



/***** Writing and Information *****/

.sliderText{
  width: 100%;
  height: 90vh;
  padding-block: 1rem;
  position: relative;
  overflow: hidden;
  margin-block-end: 1rem;

  font-family: 'True Sans Book';
  font-style: normal;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  color: #000000;
  display: flex;
}

.readleft__btn, .readright__btn{
  width: 40%;
  height: 100%;
}

.readleft__btn {
  cursor: w-resize;
}

.readright__btn{
  cursor: e-resize;
}

.slideshow-frameText {
  margin: 0 auto;
  height:inherit;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  
  display: flex;
  align-items: center;
  justify-content: center;  
  background-size: contain;
  
}

.text-wrapper{
  width: inherit;
  height: inherit;
  overflow: hidden;
  display: none;
}

.text-wrapper.active{
  display: block;
}

.text-frame{
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding-right: 17px; /* Increase/decrease this value for cross-browser compatibility */
    box-sizing: content-box; /* So the width will be 100% + 17px */
  background-color: white;
}


.text-frame p:first-child{
  padding-block-start: 2rem;
}

.text-frame p:not(:last-child) { 
  margin-bottom: 1rem
}

/***** Image Carousel *****/

.slider{
  width: 100vw;
  height: 90vh;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  margin-block: 1rem;
}

ul.slideshow-frame {
  margin: 0 auto;
  height:inherit;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  
  display: flex;
  align-items: center;
  justify-content: center;  
  background-size: contain;
}

ul.slideshow-frame li {
  width: inherit;
  height: inherit;
  display: none;
}

ul.slideshow-frame li.active {
  display: flex;
  justify-content: center; 
  align-items: center; 
}

ul.slideshow-frame li img {
  max-width: 86vw;
  max-height: 90vh;

}

/* Slider buttons */

.left__btn, .right__btn {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  background-color: #ffffff00;
}

.left__btn {
  left: 0;
  cursor: w-resize;
}

.right__btn {
  right: 0;
  cursor: e-resize;
}


/***** Video Carousel *****/
.slider.video{
  display: flex;
  padding-inline: 0;
  
}

.left__btn.video, .right__btn.video {
  position: initial;
  width: 10%;
}

.slide.video{
  width: var(--indexWidth);
}

.slide.video video{
  width: inherit;
}


/***** Captions, Counter, and Nav *****/
.slideshow-info {
  width:86vw;
  margin: auto;
  gap: 1rem;
  display: flex; 
  justify-content: space-between;

  font-family: 'True Sans Book';
  font-style: normal;
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  color: #000000;
}


.slideshow-caption {
  flex: 3;
}

p.slideshow-counter {
  flex: 0.25;
  text-align: center;
}

p.slideshow-index {
  flex: 0.25;
  text-align: right;
}


/***************************** 
    Animation
******************************/
@keyframes headerHeightShrink {
  100% {
    height: 25vh;
    
  }
}





 
/***************************** 
    Mobile 
******************************/


@media (max-width: 60rem){
  
  /***************************** 
      Global Styles 
  ******************************/
  
  
    .header {
      flex-direction: column; /* change header layout to be stacked on top of each other */
      height: 70vh; /* reduce the height of the header for mobile */
    }
  
    .index-main, .index-paintings, .index-installations, .index-videos, .index-writing {
      column-count: 2; /* change column count for smaller screens */
      font-size: 1em; /* adjust font-size for smaller screens */
      width: auto;
      height: auto;
    }
  
    .index-heading, .index-item, .index-item-bio {
      text-align: left;
      column-span: all;
      display: block;
      padding-bottom: 1em;
    }
  
    .index-item.info, .index-item.mail{
      column-span: inherit;
      padding: 0;
    }
  
  
  /***************************** 
      Content Subsections
  ******************************/
  
  /***** Image Carousel *****/
  .slider{
    height:77vh;
  }
  
  /***** Video Carousel *****/
  .slider.video{
    display: flex;
    padding-inline: 0;
    
  }
  
  .left__btn.video, .right__btn.video {
    position: initial;
    width: 10%;
  }
  
  .slide.video{
    width: 100vw;
  }
  
  .slide.video video{
    width: inherit;
  }
  
  
  /***** Writing and Information *****/
  
  .sliderText{
    width: 100%;
    height: 90vh;
    padding-block: 1rem;
    position: relative;
    overflow: hidden;
    margin-block-end: 1rem;
  
    font-family: 'True Sans Book';
    font-style: normal;
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    display: flex;
  }
  
  .readleft__btn, .readright__btn{
    width: 8%;
    height: 100%;
  }
  
  .readleft__btn {
    cursor: w-resize;
  }
  
  .readright__btn{
    cursor: e-resize;
  }
  
  .slideshow-frameText {
    margin: 0 auto;
    height:inherit;
    width: 100%;
    max-height: 100%;
    max-width: 100%;
    
    display: flex;
    align-items: center;
    justify-content: center;  
    background-size: contain;
    
  }
  
  .text-wrapper{
    width: inherit;
    height: inherit;
    overflow: hidden;
    display: none;
  }
  
  .text-wrapper.active{
    display: block;
  }
  
  .text-frame{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-right: 17px; /* Increase/decrease this value for cross-browser compatibility */
      box-sizing: content-box; /* So the width will be 100% + 17px */
    background-color: white;
  }
  
  
  .text-frame p:first-child{
    padding-block-start: 2rem;
  }
  
  .text-frame p:not(:last-child) { 
    margin-bottom: 1rem
  }
  
  /***** Information *****/
  
  
  .index-item-bio {
    width: 86vw;
    display: inline-block;
  }
  
  .index-item-bio p:not(:first-child) {
    margin-top: 0.5rem;
  }
  
  .index-item-bio p:last-of-type {
    margin-top: 0.5rem;
  }
  
  .index-item-credits {
    display: block;
    bottom: -1.5em;
    color: Gainsboro;
    margin-left:0;
    left:7vw;
  }

  

  }