/*
Theme Name: Collection Vallejo
Theme URI: http://www.collection-vallejo.fr
Author: Elias VALLEJO
Author URI: https://liasoe.fr
Description: Collection Vallejo - Des montres, mais pas que...
Requires at least: WordPress 5.0
Version: 2.0
*/
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/*
#0E0E12
#26262A
#545456
#9A9A9B
#E0DFDE
#E2B31B
 */


*{box-sizing:border-box}
img,video{max-width:100%;height:auto;display:block;margin:0 auto;}
figure{margin:0}
ul{margin:0;padding-left: 1em;}
header a{text-decoration:none}
a{color:#0E0E12;transition: color 0.5s ease;}
/* flexboxes   */
.flex{display:flex}
  .flex.j-start{justify-content:flex-start}
  .flex.j-end{justify-content:flex-end}
  .flex.j-center{justify-content:center}
    .flex.j-between{justify-content:space-between}
    .flex.j-around{justify-content:space-around}
  .flex.a-start{align-items:flex-start}
  .flex.a-end{align-items:flex-end}
    .flex.a-center{align-items:center}
  .flex.column{flex-direction:column}
  .flex.row{flex-direction:row}
  .flex.wrap{flex-wrap:wrap}
/* flexboxes responsive */
  .flex.resp.column{flex-direction:column}
  .flex.resp.row{flex-direction:column}
  .flex.resp.row>*{align-self:stretch}


/* txt */
.txt-center{text-align:center}
.txt-left{text-align:left}
.txt-right{text-align:right}
.txt-justify{text-align:justify}

.resp-txt-center{text-align:center}
.resp-txt-left{text-align:left}
.resp-txt-right{text-align:right}
.resp-txt-justify{text-align:justify}

@media screen and (min-width:720px) {
  .flex.resp.column{flex-direction:row;flex-wrap: wrap;}
  .flex.resp.row{flex-direction:row}
    .flex.resp.row>*{align-self:inherit}

    .txt-center{text-align:center}
    .txt-left{text-align:left}
    .txt-right{text-align:right}
    .txt-justify{text-align:justify}

}

.inline-block{display:inline-block;}
.relative{position: relative}

body{
  background:#fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  /*display: flex;
  align-items: flex-start;
  justify-content: center;*/
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

header, main, footer{ padding:1em 2em }

.container{margin:0 auto}


.w1440{max-width: 1440px}
.w1200{max-width: 1200px}
.w1080{max-width: 1080px}
.w960{max-width: 960px}

  main img, footer img{border-radius: 0.2em!important}



  header{
    padding-bottom: 0;
}
    h1,h2{font-family: 'Lora',serif}
    h1{
    color:#0E0E12;
    font-weight:400;
    font-style: italic;
    font-size: 1.5em;
    margin-bottom: 0;
    }
    h2{
    color:#26262A;
    font-weight:400;
    font-size: 2em;
    line-height: 1.15em;
    margin: 0 0 2.5rem;
    }
    header .burger_btn{cursor:pointer;display:flex;flex-direction:column;padding:1em}

        .burger_btn .bar {
          height: 2px;
          width: 28px;
          margin:0 0 6px auto;
          background: #0E0E12;
          transition: all 0.4s ease; /* important for animation */
        }
        .burger_btn .bar2{width: 17px}

        .burger_btn.cross .bar{margin:0 0 0 auto}
        .burger_btn.cross .bar2{width: 28px}
        .burger_btn.cross .bar3{width: 0}

        .burger_btn.cross  .bar:last-child {opacity: 0}
        .burger_btn.cross  .bar:first-child {transform: rotate(45deg) translate(2px, 2px);}
        .burger_btn.cross  .bar:nth-child(2) {transform: rotate(-45deg)}



    .hide{display:none}
    .show{display:inherit}
    header .top_menu nav{height: 15em;overflow: hidden;transition:height 0.5s ease;}
    header .top_menu.hide{display: block;}
    header .top_menu.hide nav{height:0;}
        header nav ul{list-style:none;padding-top: 2em;padding-bottom: 3em;}
      header nav ul li{/*background:black*/}
            header nav ul li a{color:#0E0E12;display:block;padding: 0.5em 1em;text-align: center;}
              header nav ul li.current-menu-item a{font-weight: 600}
              header nav ul li a:hover{color:#545456}

    @media screen and (min-width:720px) {
      .header_title{/* height: 60vh; *//* position: fixed; *//* display: flex; *//* justify-content: center; *//* align-items: center; */}
      .header_title h1{
        transform: rotate(180deg);
        writing-mode: vertical-rl;
        margin: 8em -0.5em 0;
        position: fixed;
        min-height: 50vh;
        text-align: right;
      }
      header .burger_btn{display:none}
      .hide{display:inherit}
      .show{display:none}

      header .top_menu{}
        header .top_menu nav,
        header .top_menu.hide nav{height:auto;}

        header nav ul{list-style:none;padding-top: 0;padding-bottom: 0;}
      header nav ul li{/*background:black*/}
            header nav ul li a{padding:1em;}
              header nav ul li.current-menu-item a{font-weight: 600}
              header nav ul li a:hover{color:#545456}
  }



  main{}
    .the_content{}

      .the_gallery{margin: 10em auto;}
      /*filtres*/
      nav.gallery_filters.button-group{display:flex;justify-content: center;margin-bottom: 2em;}
        nav.gallery_filters.button-group button{border:none;background:#fff;cursor:pointer;/* font-size: 0.7em; */padding: 0 0.8em;}
        nav.gallery_filters.button-group button.active{text-decoration:underline;font-weight:bold}

        .cache{display:none}

         .articles_item{padding: 0.5em;}
              .articles_item figure{position:relative;overflow:hidden}
                .articles_item figure figcaption{
                  /* pointer-events: none; */
                  /* position:absolute; */
                  /* top: -1px; */
                  /* right: -1px; */
                  /* bottom: -1px; */
                  /* left: -1px; */
                  background: #fff;
                  color:#0E0E12;
                  text-align: center;
                  padding: 1em;
                  display:flex;
                  flex-direction:column;
                  justify-content:center;
                  align-items:center;
                  }
                  .articles_item figure figcaption h3 {font-size: 1em;font-weight: 400;margin-top: 0;/* color:white; */}
                  .articles_item figure figcaption h3 a {text-decoration:none}
                  .articles_item figure figcaption p{}
                    .articles_item figure figcaption ul{list-style:none;display:flex;justify-content:space-around;}
                    .articles_item figure figcaption ul li{}
                      .articles_item figure figcaption ul li a{padding:1em;text-decoration:none;/* color:#fff */}
                      .articles_item figure figcaption ul li a:hover{text-decoration:none;color:#26262A}



      .the_post_header{}
        .the_post_categories{list-style:none; margin-left:0;padding-left:0}
        .the_post_categories li{margin:0 1em 0 0}
      .the_content h2{/* color:#E2B31B */}
        .the_content h3{}
          .the_content h4{}
            .the_content h5{}
              .the_content h6{}
                .the_content p{color:#26262A}
                  .the_content ul:not(.blocks-gallery-grid){margin:1em 0}
                  .the_content .wp-block-button{margin:1em 0;}
                  .wp-block-button__link{border-radius:0;font-size:1em}
                    .is-style-outline>.wp-block-button__link, .wp-block-button__link.is-style-outline
                    {background:none;border:none;padding: 15px 0 5px;margin: 0 1em;border-bottom:1px solid #0E0E12;}
                    .is-style-fill>.wp-block-button__link, .wp-block-button__link.is-style-fill
                    {background:#0E0E12;color:#fff;padding: 13px;transition: background 0.5s ease;}
                    .is-style-fill>.wp-block-button__link:hover, .wp-block-button__link.is-style-fill:hover
                    {background:#545456}






  footer{/* background:#ccc */}
  footer .widgets{}
    footer .site-info{padding: 2em 0;border-top:1px solid #ddd;}
    footer .site-info>p{flex-basis:30%;margin: 0.6em;font-size: 0.8em;}
    footer .site-info a{color:#0E0E12;text-decoration:underline}
    footer .site-info a:hover{color: #545456}

  .single.flex{justify-content:space-between}
  .single.flex>*{flex-basis:45%}



  .container.section{padding: 3em 0;}
  .container.section:first-child{padding-top: 1em}


    .container .articles_item{flex-basis: 50%}

    .the_recents .articles{padding:3em 0}
    .the_recents .articles_item{flex-basis:50%}
   /*    .single .blocks-gallery-grid{flex-wrap: nowrap;}
     .single .blocks-gallery-grid .blocks-gallery-image,
    .blocks-gallery-grid .blocks-gallery-item,
    .wp-block-gallery .blocks-gallery-image,
    .wp-block-gallery .blocks-gallery-item {
    width: auto; margin:0
    }*/




    .container.w1080 .wp-block-column:not(:first-child),
    .container.w1200 .wp-block-column:not(:first-child) {margin-top: 2.5em}



  /*  MOBILE > 320px */
  @media screen and (min-width:540px) {
    .container .articles_item{flex-basis: 50%}
    .the_recents .articles_item{flex-basis:50%}

    .container.w1080 .wp-block-column:not(:first-child),
    .container.w1200 .wp-block-column:not(:first-child) {margin-top: inherit;}
  }/* ____________________________________________________________________  fin mobile */
  /*  TABLETTE > 720px */
  @media screen and (min-width:720px) {
    a:hover{color: #9A9A9B}
    main, footer{padding: 0 4em;position: relative;}
      .container.section{padding: 10em 0;}
      .container.section:first-child{padding-top: 6em;}
      .container.section:last-child{padding-bottom: 0;padding: 4em 0 0;}


          .the_gallery{margin: 6em auto 10em;}

    .container .articles_item{flex-basis: 33%}
    .the_recents .articles_item{flex-basis:33%}

  /*      .single .blocks-gallery-grid .blocks-gallery-image,
    .blocks-gallery-grid .blocks-gallery-item,
    .wp-block-gallery .blocks-gallery-image,
    .wp-block-gallery .blocks-gallery-item {
    margin: 0 1em 1em 0;
    }*/

      .articles_item figure figcaption{
        position: absolute;
        /*top: -1px;*/
        right: -1px;
        bottom: -1px;
        left: -1px;
        pointer-events: none;
        transform: translateY(101%);
        transition: transform 0.5s ease;
        }
      .articles_item figure:hover figcaption{transform: translateY(0)}




    }/* ____________________________________________________________________  fin tablette */
  /*  DESKTOP > 960px */
  @media screen and (min-width:960px) {
  .container .articles_item{/*flex-basis: 33%*/}
    .the_recents .articles_item{flex-basis:33%}
    .container.w1080 .wp-block-column:not(:first-child),
    .container.w1200 .wp-block-column:not(:first-child) {margin-left: 7em}

  }/* ____________________________________________________________________  fin desktop */
  /*  DESKTOP FULL  > 1140px */
  @media screen and (min-width:1140px) {
    .container .articles_item{/* flex-basis: 25% */}
    .the_recents .articles_item{ flex-basis:33%; }
        .container.w1080 .wp-block-column:not(:first-child),
    .container.w1200 .wp-block-column:not(:first-child) {margin-left: 10em}


  }/* ____________________________________________________________________  fin desktop full */




  a#scroll-to-top {
      background: url('img/arrow.svg') no-repeat center center #E0DFDE;
      width: 50px;
      height: 50px;
      background-size: 20px 20px;
      border-radius:50px;
      right: 30px;
      bottom: 30px;
      z-index: 999;
      transition:background-color 0.5s ease;
  }
  a#scroll-to-top:hover{background-color:#E0DFDE66}
