/* Posts index */

.page--posts{
  .seemore__link {
    margin-top: 10px;
    text-align: center;
    a{
    font-size: 14px;
    color: gray;
    text-decoration: underline;
    }
  }
  .topic-tag-info{
    h1{
      font-size: 24px;
    }

  }
  .tag__posts{
    .posts__container{
      margin-top: 40px;
    }
  }
}
.tag-list-cta{
  margin-top: 40px;
  margin-left: 40px;
}


/* Zoom on image */

/* The Modal (background) */
.zoom-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 70px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: var(--color-black); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.zoom-modal-content {
  margin: auto;
  display: block;
  border-radius: 5px;
  cursor: zoom-out;
  object-fit: contain;
  height: 100%;
  width: 100%;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#zoom-modal-content__img-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #cccccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.zoom-modal-content, #zoom-modal-content__img-caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.zoom-modal-content__close-cross {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.zoom-modal-content__close-cross:hover,
.zoom-modal-content__close-cross:focus {
  color: #bbbbbb;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}


/* Post design */

.post__container{
  margin-bottom: 40px;
  figure {
    text-align: center;
    img{
      border-radius: 5px;
      margin-bottom: 30px;
      margin-top: 10px;
      max-width: 80%;
      height: initial;
      cursor: zoom-in;
      transition: 0.3s;
    }
    figcaption {
      margin-bottom: 30px;
      margin-top: -25px;
      font-style: italic;
      font-size: 13px;
    }
    iframe {
      max-width: 80%;
    }
  }
  figure:hover {opacity: 0.7;}
  .post__title {
    h1, h2{
      font-size: 24px;
      line-height: 36px;
      color: var(--color-dark);
    }
    a:hover{
      text-decoration: none;
    }
  }

  .back-button{
    padding: 5px 10px;
    border: 1px solid var(--color-blue);
    border-radius: 5%;
    text-decoration: none;
    width: max-content;
    margin-bottom: 30px;
    a{
      color: var(--color-blue);
      font-weight: bold;
      text-decoration: none;
      font-size: 14px;
    }
  }
  .post__image img {
    border-radius: 5px;
    margin-bottom: 30px;
    margin-top: 30px;
    max-width: 80%;
    /* cursor: zoom-in; */
    /* transition: 0.3s; */
  }
  .post__image.zoom img {
    border-radius: 5px;
    margin-bottom: 30px;
    margin-top: 30px;
    max-width: 80%;
    cursor: zoom-in;
    transition: 0.3s;
  }

  .post__image.zoom:hover {opacity: 0.7;}
  .post__content {
    hr.thin-line{
      width:70%;
      color: #b0b0b0;
      margin-top: 25px;
    }
    h2{
      margin-bottom: 20px;
      font-size: 18px;
      font-weight: bold;
      color: var(--color-blue);
      font-family: var(--font-family-text);
    }
    a{
      color: #2b7f81;
      text-decoration: underline;
      font-size: 16px;
    }

    .article-content-index {
      background-color: var(--color-hover-yellow);
      padding: 3%;

      p {
        margin-bottom: 10px;
      }
      a{
        color: var(--color-dark);
        text-decoration: underline;
      }
    }
    .article-content-quote {
      background-color: var(--color-hover-yellow);
      padding: 3%;

      p {
        margin-bottom: 10px;
      }
    }
    p{
      color: var(--color-dark);
      margin-bottom: 40px;
      span{
        font-size: 18px;
        color: var(--color-dark);
        font-weight: normal;
      }
    }
    blockquote p {
      margin-bottom: 0px;
    }
    ul {
      font-family: var(--font-family-text);
      line-height: 30px;
      margin-bottom: 40px;
      li  {
        font-size: 18px;
        color: var(--color-dark);
        font-weight: normal;

        a {
          color: var(--color-turquoise);
          font-size: 18px;
        }
      }
    }
    .wp-block-embed__wrapper{
      margin-bottom: 20px;
    }
  }
  .post__details{
    display: flex;
    p{
      color: var(--color-blue);
    }
    .post__details-text{
      width: 100%;
    }
    .post__date{
      float: right;
    }
    p.post__type{
      width: 90%;
      font-weight: bold;
      color: var(--color-red);
      line-height: 1;
    }
    .post__details-avatar{
      margin-top: auto;
      margin-bottom: auto;
      img {
        border-radius: 27px;
        width: 27px;
        height: 27px;
        margin-right: 10px;
      }
    }
    .post__author{
      display: flex;
      .dot{
        height: 5px;
        width: 5px;
        background-color: var(--color-blue);
        border-radius: 50%;
        position: relative;
        bottom: -10px;
        margin: 5px;
      }
    }
  }
}

/* Post recommandations block */


.article-recommandation-highlighted{
  h3{
    text-align: center;
  }
  .post-recommandations__image img{
    width: 242px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-right: auto;
    margin-left: auto;
    display: flex;

  }
}

.article-and-recommandations-links{
  display: flex;
  .article-recommandation-link{
    margin-top: 20px;
  }
}

.block-reco-and-subscribe{
  width: 40%;
  margin-left: 60px;
  margin-top: 50px;
}

.article-recommandations-links{
  background-color: #fafafa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  hr.thin-line{
    margin-top: 10px;
    margin-bottom: 10px;
  }
  h3{
    font-family: var(--font-family-text);
    font-weight: bold;
    color: var(--color-dark);
    font-size: 20px;

  }
   p, a{
    font-size: 16px;
    color: var(--color-black);
    &:hover{
      text-decoration-color: var(--color-black);
    }
  }
}

.post-recommandations--bottom{
  margin-top: 50px;
  h2{
    margin-bottom: 20px;
    font-family: var(--font-family-text);
    font-weight: bold;
    color: var(--color-dark);
  }
  a:hover{
    text-decoration: none;
  }
  .post-recommandations__list{
    display: flex;
    justify-content: space-evenly;
    .post-recommandations__content{
      margin-bottom: 40px;
      width: 260px;
      .post-recommandations__title{
        margin-top: 14px;
        p, a{
          font-size: 16px;
          font-family: var(--font-family-header);
          color: var(--color-black);
        }
      }
      .post-recommandations__author{
        display: flex;
        img{
          width: 21px;
          height: 21px;
          border-radius: 12px;
          margin-right: 10px;
        }
        p, a{
          font-size: 13px;
          color: var(--color-blue);
        }
      }
    }
    .post-recommandations__image{
      img{
        width: 240px;
        height: 166px;
        border-radius: 5px;
      }
    }
  }

  /* See more articles link - bottom */

  .post__button--seemore{
    text-align: center;
    padding: 5px 10px 5px 10px;
    box-shadow: inset 0 0 0 50px var(--color-blue);
    border-radius: 5px;
    width: 30%;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 40px;
    width: 30%;
    a{
      color: var(--color-white);
      text-decoration: none;
      font-weight: bold;
      font-size: 16px;
      display: block;
    }
  }
  .post__button--seemore:hover{
    box-shadow: inset 0 0 0 50px var(--color-active-blue);
    a{
      color: var(--color-white);
    }
  }
}



@media screen and (max-width: 600px){

  .zoom-modal{
    padding-top: 100px;
  }

  .zoom-modal-content {
    width: 90%;
    height: revert;
  }
  .zoom-modal-content__close-cross {
    position: absolute;
    top: 15px;
    right: 18px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }
  .article-recommandation-highlighted{
    display: none;
  }

  .article-and-recommandations-links{
    display: block;
    margin-left: 0;
    width: 100%;
  }

/* Article design */

  .page--posts{
    width: 100%;
    margin-top: 30px;
    .article-image img {
      max-width: 100%;
    }
    .article-details {
      p{
        font-size: 14px;
      }
    }
    .post__header{
      width: 100%;
      flex-wrap: wrap;
      .article-title{
        width: 100%;
      }
    }
    figure {
      img{
        margin-bottom: 25px;
        margin-top: 25px;
        width: 100%;
      }
      iframe{
        width: 100%;
      }
    }
    p{
      span{
        font-size: 16px;
      }
      img{
        max-width: 100%;
      }
    }
    .article-content {
      ul {
        line-height: 28px;
        margin-bottom: 40px;
        li  {
          font-size: 16px;
          a {
            font-size: 16px;
          }
        }
      }
    }
    hr.thin-line {
    width: 100%;
    }
    .back-button{
      margin-bottom: 48px;
    }
    .article-image img{
      margin-top: 20px;
      margin-bottom: 20px;
    }
    .article-image img {
      width: 100%;
    }
  }

  /* Article recommendations block - right */

  .article-and-recommandations-links{
    display: revert;
    margin-left: 0;
    width: 100%;
  }

  .block-reco-and-subscribe{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .article-recommandations-links{
    display: none;
  }

  /* .block-article{ */
  /*   width: 100%; */
  /* } */

  .subscribe-block .subscribe-block-cta a{
    width: revert;
    margin: revert;
  }

  /* Article recommendations cards - bottom */

  .post-recommandations--bottom .post-recommandations__list{
    display: initial;
    .post-recommandations__image{
      img{
        width: 100%;
        border-radius: 5px;
        height: 100%;
      }
    }
    .post-recommandations__content{
      margin-right: auto;
      margin-left: auto;
      width: revert;

    }
  }
  .article-recommandations--bottom .post__button--seemore{
    width: 100%;
  }
  .article-recommandations--bottom{
    /* width: 90%; */
    h2{
      font-size: 22px;
    }
  }

 /* See more articles link - bottom */

  .post__button--seemore{
    width: 100%;
  }
}


/* ipad */

@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait)  {
  .zoom-modal-content {
    width: 90%;
  }

  .page--posts{
    width: 100%;
  }
  .article-and-recommandations-links{
    display: revert;
    margin-left: 0;
    width: 100%;
  }

  .block-reco-and-subscribe{
    width: 50%;
    margin: auto;

  }
  .article-recommandations-links{
    display: none;
  }

  .subscribe-block{
    margin-right: auto;
    margin-left: auto;
  }
  .article-recommandations--bottom{
    .post-recommandations__list{
      display: flex;
      flex-wrap: wrap;
    }
  }
}


@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape)  {


}

/* large screen */

@media screen and (min-width: 1824px) {
  .article-recommandations{
    width: 55%;
  }
}
