/* fonts imports*/
@font-face {
  font-family: "Schola";
  src: url("../fonts/texgyreschola-regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Schola";
  src: url("../fonts/texgyreschola-italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
}

/* base */
html {
  background: #fff;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: #000;
  font-family: 'Schola', 'Times New Roman', Times, serif;
  font-size: 1rem;
  text-align: center;
  line-height: 1.5rem;
  margin: 1.5rem 2rem 2rem 2rem;
  max-width: none !important;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  color: #000;
  text-decoration: none;
}

a:hover {
  font-style: italic;
}

blockquote {
  margin: 0 2rem 2rem 2rem;
  font-size: .9rem;
  line-height: 1.25rem;
  font-style: italic;
}

strong {
  font-weight: normal;
}

sup {
  line-height: 1rem;
}
}

h1, h2, h3, h4 {
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
}

p {
  text-align: left;
}

ol, 
ul {
  text-align: left;
}

/* Hide scrollbar globally but allow scrolling */
html, body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;             /* Chrome, Safari, Opera */
}

/* layout*/
header, main, footer {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

header { 
  margin-bottom: 10vh;
  height: 1.5rem;
}

  header div#site-title {
    position: absolute;
      left: 2rem;
  }

  header ul {
    list-style-type: none;
    text-align: right;
    margin: 0 1rem 0 0;
    padding: 0;
  }

    header ul li {
      display: inline;
      margin-right: 1rem;
    }

main {
  max-width: 40rem;
}

footer { 
  margin-bottom: 2.25rem;
  margin-top: 10.5vh;
}

  div.footnotes {
    border: 0;
    font-size: .9rem;
    letter-spacing: .01rem;
  }

      div.footnotes hr {
        display: none;
      }

      div.footnotes ol {
        padding-left: 0;
      }

      div.footnotes ol li {
        font-variant-numeric: normal;
        list-style-type: decimal;
        list-style-position: inside;
      }

      div.footnotes ol p {
        margin: 0;
        display: inline;
      }

  #next-text {
  }

  ul#bas-de-page {
    margin: 0;
    padding: 0;
    text-align: center;
  }

  ul#bas-de-page li {
    display: inline-block;
    margin: 0 .25rem 0 .25rem;
  }


.menu-titles {
  margin: 0;
  text-align: center;
}

#accueil {
  display: flexbox;
  flex-direction: column;
  align-items: center;
}

.thumbs {
  margin: 1rem;
  height: 200px;
  width: fit-content;
}

.thumbs img {
  width: 100%;        
  height: 100%;      
  object-fit: contain; 
}

article {
  margin: 0 auto 0 auto;
}

  article h1 {
    font-size: 1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: .1rem;
    margin-bottom: 6rem;
  }

  article h2 {
    font-size: .9rem;
    text-align: center;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: .1rem;
  }

  article h3 {
    font-size: 1rem;
    text-align: center;
    font-weight: normal;
  }

  article p {
  }

  article p img {
    display: block;
    max-height: calc(100vh - 10rem);
    margin: 3rem auto 3rem auto;
    text-align: center;
  }

  article figcaption {
    font-size: .9rem;
    letter-spacing: .01rem;
    line-height: 1.2rem;
    margin: -2rem auto 2.5rem auto;
  }

/*new home*/
div.category-section {
  width: 40rem;
  display: inline-block;
  align-items: center;
  margin-bottom: 3rem;
}

h2.category-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1rem;
  margin-bottom: .75rem;
}

/*old home*/
.clickable-row-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto 0 auto;
}

.clickable-row {
  display: flex;
  cursor: pointer;
  height: 1.66rem;
  width: 100%;
}

.clickable-row:hover .clickable-item {
  font-style: italic;
}

.clickable-item {
  padding: 5px;
  padding: 0;
}

.clickable-item.title {
  flex: 1;
}

.clickable-item.title h3 {
  text-align: left;
}

.clickable-item.categorie {
  text-align: left;
  width: 25%;
}

.clickable-item.annee {
  text-align: right;
  width: 6rem;
}

/* Swiper */
#close {
  position: absolute;
    top: 1.5rem;
    right: 2rem;
  height: 1rem;
  width: 1rem;
}

.swiper-js header,
.swiper-js > main > article > h2 {
  display: none;
}

.swiper-container,
.solo-container {
  position: absolute;
    top: 5rem;
    left: 0%;
  width: 100%;
  max-width: calc(100vw - 9rem); 
  height: calc(100vh - 10rem);
  margin: 0 4.5rem 0 4.5rem;
  overflow: hidden;
}

.swiper-container {
  cursor: grab;
}

.swiper-image-container > img,
.solo-image-container > img {
  margin: 0 auto 0 auto;
  max-height: calc(100vh - 10.33rem);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit:contain;
    object-position: center;
}

.swiper-title {
  font-size: .8rem;
  position: absolute;
  bottom: 2.15rem;
  left: 12.5vw;
  width: 75vw;
  margin: 0;
}

.swiper-title p {
  display: inline;
}

.swiper-image-text-overlay {
  display: none;
}

.swiper-buttons {
}

.swiper-button-prev, 
.swiper-button-next {
  display: inline-block !important;
  color: inherit !important;   
  margin: .66rem 1rem 0 1rem !important;
  padding: 0 !important;    
  font-size: .9rem; 
  font-weight: inherit !important;
  text-align: center;
  width: auto !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: none !important;
}

.swiper-button-prev img, 
.swiper-button-next img {
  height: 1rem;
}

/* the middle-sized version */
@media only screen and (max-width: 750px) {

  main, 
  div.category-section,
  div#site-title {
    max-width: calc(100vw - 4rem);
  }

  article h1 {
    margin-bottom: 3.5rem;
  }

}

/* the mobile version */
@media only screen and (max-width: 540px) {

  html {
    font-size: 16px;
  }

  body {
    margin: 1rem 1.5rem 1.5rem 1.5rem;
  }

  header div#site-title {
    position: absolute;
    left: 1.5rem;
  }

  main {
    max-width: calc(100vw - 3rem);
  }

}

/* the XS version */
@media only screen and (max-width: 440px) {

  html {
    font-size: 15px;
  }

  header div#site-title {
    max-width: calc(100vw - 3rem);
    position: relative;
    left: 1.5rem;
    text-align: center;
  }

  header ul {
    max-width: calc(100vw - 3rem);
    margin: 0 1.5rem 0 1.5rem;
    text-align: center;
  }

    header ul li {
      margin: 0 .33rem 0 .33rem;
      padding: 0;
    }

  article h1 {
    margin-top: 5rem;
  }

}
