@font-face {
    font-family: 'Arial-mono';
    src: url('../fonts/ArialProMonospaced-Bold.woff2') format('woff2'),
        url('../fonts/ArialProMonospaced-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arial-mono';
    src: url('../fonts/ArialProMonospaced-BoldOblique.woff2') format('woff2'),
        url('../fonts/ArialProMonospaced-BoldOblique.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Arial-mono';
    src: url('../fonts/ArialProMonospaced-Oblique.woff2') format('woff2'),
        url('../fonts/ArialProMonospaced-Oblique.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Arial-mono';
    src: url('../fonts/ArialProMonospaced-Regular.woff2') format('woff2'),
        url('../fonts/ArialProMonospaced-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*{
  box-sizing: border-box;
}

:root {
  --grey: rgb(199, 199, 199);
}

body {
  width: 100%;
  font-family: 'Arial-mono', monospace;
  color: var(--grey);
  -webkit-text-stroke: 2px var(--grey);
  stroke-linejoin: round;
  paint-order: stroke fill;
  font-size: 14px;
  line-height: 0.9;
  text-transform: uppercase;
  overflow-x: hidden;
  padding: 0;
  margin: 0;

  @media screen and (max-width: 2000px) {
    font-size: 12px;
    -webkit-text-stroke: 1.8px var(--grey);
  }
  @media screen and (max-width: 1500px) {
    font-size: 10px;
    -webkit-text-stroke: 1.6px var(--grey);
  }
}

p {
  padding: 0;
  margin: 0;
}

a, a:visited {
  color: var(--grey);
  text-decoration: underline var(--grey);
  text-decoration-thickness: 3px;

  &:hover {
    opacity: 0.7;
  }
}

.home {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 10px;

  div {
    height: 25vh;
  }
}

.tabs {
  padding: 15px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;

  .tab {
    cursor: pointer;
    opacity: 0.5;

    &:hover {
      opacity: 0.7;
    }
    &.active {
      opacity: 1;

      &:before{
        content: ">";
      }
      
    }
  }
}

.index-page {
  display: flex;
  align-items: start;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 10px; 
  
  .keyword-wrapper, 
  .keyword-counter {
    width: 14.285%;
  }

}

.sixth {
  width: 16.666%;
}
.third {
  width: 33.333%;
}
.half {
  width: 50%;
}
.two-third {
  width: 66.666%;
}
.full {
  width: 100%;
}

.mgl-sixth {
  margin-left: 16.666%;
}
.mgl-third {
  margin-left: 33.333%;
}
.mgl-half {
  margin-left: 50%;
}
.mgl-two-third {
  margin-left: 66.666%;
}

.mgb-sixth {
  margin-bottom: 16.666%;
}
.mgb-third {
  margin-bottom: 33.333%;
}
.mgb-half {
  margin-bottom: 50%;
}
.mgb-two-third {
  margin-bottom: 66.666%;
}

.overflow-container {
  width: 100%;
  max-width: 100%;
  /* overflow-x: hidden;
  height: auto; */
}

.list-wrapper {
  padding: 0px;
  width: 110%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 10px;
}

.metadata {
  text-indent: 16.666%;
  flex: 1;
}

.image-list {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  
}

.photographer-name {
  width: 16.666%;
  padding-top: 5px;
  padding-bottom: 5px;

  &:not(:first-child) {
    margin-left: 16.666%;
  }

  .name-elt {
    height: 50%;
    min-height: 50%;
  }
}

.mgb {
  margin-bottom: 5px;
}

.random-space {
  width: 16.666%;
}

.image-wrapper {
  width: 16.666%;
  padding-right: 10px;
  padding-bottom: 5px;
  padding-top: 5px;
  position: relative;
  
  .lores-img {
    display: block;
    height: auto;
    width: 100%;
  }

  .actual-size-img {
    opacity: 0;
    width: 0;
    height: 0;
  }
}

.image-index {
  position: absolute;
  top: 5px;
  left: 0;
}
.image-name {
  position: absolute;
  top: 5px;
  left: 50%;
}

.forbidden {
  position: absolute;
  left: 50%;
  top:5px;
}

.overlap-left {
  position: relative;
  margin-left: -8.333%;
}

.space-right {
  margin-right: 5%;
}


.description-keys {
  width: 150px;
}

.description-list {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
}

.description-wrapper {
  /*  screen */
  /* width: 24.999%;   */
  
  /*  print */
  width: 33.333%;
  position: relative;
  padding-top: 5px;
  padding-bottom: 5px;
}

.indent {
  text-indent: 33.333%;
}
.indent-half {
  text-indent: 50%;
}
.double-indent {
  text-indent: 66.666%;
}



/* .spread {

  .image-wrapper {
    width: 8.333%;
  }

  .random-space {
    width: 8.333%;
  }

  .description-wrapper {
    width: 16.666%;
  }

  .overlap-left {
    margin-left: -4.333%;
  }
} */





.debug{
  color:red;
  -webkit-text-stroke: 2px red;
}

.photoidlist {
  text-transform: none;
}

/* .keywords {
  text-indent: 50px;
} */

.full-page-section {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: wrap;
}

.white-page {
  width: 50%;
  height: 62.5vw;
}

.page-break-text {
  width: 100%;
  display: block;

  div {
    width: 100%;
    max-width: 100%;
  }
}

.text-page {
  width: 50%;
  height: 62.5vw;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  
  &.center {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  &.bottom {
    justify-content: flex-end;
    align-items: center;
    text-align: center;
  }
  /* padding-bottom: 15%; */
}

.full-image-wrapper,
.text-page.full-image-wrapper {
  width: 50%;
  height: 62.5vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  position: relative;

  .image-rotation-wrapper {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  img {
    display: block;
    height: auto;
    max-width: 100.5%;
    max-height: 100.5%;
    object-fit: contain;
  }

  &.small-image {
    justify-content: center;

    .image-rotation-wrapper {
      width: 60%;
      height: auto;
      margin-top: -10%;
    }
  
    img {
      width: 100%;
      height: auto;
      display: block;
    }
  }
  &.smaller-image {
    justify-content: center;
    
    .image-rotation-wrapper {
      width: 33.33%;
      height: auto;
      margin-top: -10%;
    }
  
    img {
      width: 100%;
      height: auto;
      display: block;
    }
  }

  &.cover {
    .image-rotation-wrapper {
      width: 100%;
      height: 100%;
    }
    img {
      min-width: 100%;
      min-height: 100%;
      object-fit: cover;
    }
  }

  &.zoom-110 {
    justify-content: center;
    align-items: center;
    
    img {
      min-width: 110%;
      min-height: 110%;
      object-fit: cover;
    }
  }
  &.zoom-115 {
    justify-content: center;
    align-items: center;
    
    img {
      min-width: 115%;
      min-height: 115%;
      object-fit: cover;
    }
  }
  &.zoom-120 {
    justify-content: center;
    align-items: center;
    
    img {
      min-width: 120%;
      min-height: 120%;
      object-fit: cover;
    }
  }

  &.center {
    .image-rotation-wrapper {
      width: 100%;
      height: 100%;
      align-items: center;
    }
  }
  &.bottom {
    .image-rotation-wrapper {
      width: 100%;
      height: 100%;
      align-items: flex-end;
    }
  }
  &.left {
    .image-rotation-wrapper {
      width: 100%;
      height: 100%;
      justify-content: flex-start;
    }
  }
  &.right {
    .image-rotation-wrapper {
      width: 100%;
      height: 100%;
      justify-content: flex-end;
    }
  }

  &.rotate-left {
    .image-rotation-wrapper {
      max-width: none;
      max-height: none;
      width: 126%;
      height: 80.5%;
      transform: rotate(-90deg) translateX(-9.5%);
    }

    &.cover img {
      min-width: 100%;
      min-height: 100%;
      object-fit: cover;
    }
  
  }

  &.rotate-right {
    .image-rotation-wrapper {
      max-width: none;
      max-height: none;
      width: 126%;
      height: 80.5%;
      transform: rotate(90deg) translateX(9.5%);
    }

    &.cover img {
      min-width: 100%;
      min-height: 100%;
      object-fit: cover;
    }
  }

  &.double-page-left, 
  &.double-page-right {
    .image-rotation-wrapper {
      width: 100%;
      height: 100%;

    }
    img {
      height: 100%;
      max-width: none;
    }
  }
  &.double-page-left {
    img {
      transform: translateX(33.333%);
    }
  }
  &.double-page-right {
    img {
      transform: translateX(-33.333%);
    }
  }

  
  /* TEXT */
  .full-image-data {
    display: flex;
    flex-direction: column;
    width: 100%;
    display: none;
    position: relative;
    z-index: 1;
    
    .split {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      width: 100%;
    }

    .column {
      width: 33.333%;
      flex-shrink: 0;
      flex-grow: 0;

      &.full {
        width: 100%;
      }
      &.double {
        width: 66.666%;
        .indent {
          text-indent: 25%;
        }
      }
      &.half {
        width: 16.666%;

        
      }
    }
  }

  

  &.txt-static .full-image-data{
    display: flex;
  }
  &.txt-underimage .full-image-data{
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  &.txt-center .full-image-data{
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
  }
  &.txt-bottom .full-image-data{
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    top: auto;
  }
  &.txt-split .full-image-data{
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: space-between;
  }
  &.txt-rotate-left-top .full-image-data{
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 125%;
    transform-origin: top left;
    transform: rotate(-90deg) translateX(-100%);
  }
  &.txt-rotate-left-bottom .full-image-data{
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    width: 125%;
    transform-origin: top right;
    transform: rotate(-90deg) translateY(-100%);
  }
  &.txt-rotate-left-split .full-image-data{
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 125%;
    height: 80%;
    transform-origin: top left;
    transform: rotate(-90deg) translateX(-100%);
    justify-content: space-between;
  }
  &.txt-rotate-left-center .full-image-data{
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 125%;
    height: 80%;
    transform-origin: top left;
    transform: rotate(-90deg) translateX(-100%);
    justify-content: center;
  }

  &.txt-rotate-right-top .full-image-data{
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    width: 125%;
    transform-origin: top right;
    transform: rotate(90deg) translateX(100%);
  }
  &.txt-rotate-right-inverted-split .full-image-data{
    display: flex;
    position: absolute;
    flex-direction: column-reverse;
    top: 0;
    right: 0;
    width: 125%;
    height: 80%;
    transform-origin: top right;
    transform: rotate(90deg) translateX(100%);
    justify-content: space-between;
  }

  &.txt-single-data .full-image-data .column{
    display: none;
  }
  &.txt-single-data.colors .full-image-data .column.txt-colors {
    width: 100%;
    display: block;
    text-align: center;
    justify-content: center;
    align-items: center;

    .hex {
      display: none;
    }
  }
  &.txt-single-data.index .full-image-data .column.txt-index {
    width: 100%;
    display: block;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  &.txt-single-data.file .full-image-data .column.txt-file {
    width: 100%;
    display: block;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  &.txt-single-data.focus .full-image-data .column.txt-focus {
    width: 100%;
    display: block;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  &.txt-single-data.technical .full-image-data .column.txt-technical {
    width: 100%;
    display: block;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  &.txt-single-data.keywords .full-image-data .column.txt-keywords {
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  &.txt-single-data.scene .full-image-data .column.txt-content  {
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    .txt-subject {display: none;}
    .txt-background {display: none;}
    .txt-scene {display: flex;}
  }
  &.txt-single-data.subject .full-image-data .column.txt-content  {
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    .txt-subject {display: flex;}
    .txt-background {display: none;}
    .txt-scene {display: none;}
  }

  &.txt-hide.file .txt-file {display:none;} 
  &.txt-hide.index .txt-index {display:none;} 
  &.txt-hide.photographer .txt-photographer {display:none;} 
  &.txt-hide.technical .txt-technical {display:none;} 
  &.txt-hide.subject .txt-subject {display:none;} 
  &.txt-hide.scene .txt-scene {display:none;} 
  &.txt-hide.background .txt-background {display:none;} 
  &.txt-hide.content .txt-content {display:none;} 
  &.txt-hide.keywords .txt-keywords {display:none;} 
  &.txt-hide.colors .txt-colors {display:none;} 
  &.txt-hide.focus .txt-focus {display:none;} 
}





.image-wrapper {
  .almost {
    position: absolute;
    width: calc(100% - 10px);
    opacity: 0;
    top: 5px;
    left: 0;
    right: 10px;
    pointer-events: none;
  }

  .almost-label {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translateX(-50%) translateY(-40%);
    pointer-events: none;
    text-align: center;
    font-size: 80px;
    -webkit-text-stroke: 8px var(--grey);
  }

  .og:hover {
    opacity: 0;

    & + .almost {
      opacity: 1;

      & + .almost-label {
        opacity: 1;
      }
    }
  }
}




.full-color-page {
  flex-direction: column;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  padding: 20px;

  .color-proofing-squares {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-right: 11px;
    margin-bottom: 11px;    
  }

  .proof-square {
    width: 16px;
    height: 16px;
  }
}

.color-line-page {
  padding: 20px;

  .color-proofing-squares {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 11px;
    width: 100%;

    .color-plus-name{
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      width: 15%;
    }

    .proof-color-name {
      flex: 1;
      text-align: center;
    }
    .img-title {
      width: 50%;
    };
  }

  .proof-square {
    width: 13px;
    height: 13px;
  }
}




.full-image-list {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 15px;

  & > div {
    width: 25%;
    padding-right: 10px;
    padding-bottom: 15px;
    padding-top: 5px;
    display: flex;


    img {
      display: block;
      height: auto;
      width: 65%;
      margin-right: 10px;
    }
  }
}