/* style pour le site "Diagonales atlantiques" */
.site-title {
  display: block !important;
}

.site-title:not(:empty)+.site-description:not(:empty)::before {
  content: "";
  margin: 0;
  display: none;
}

#masthead .site-branding-container {
  padding-bottom: 0;
}

#masthead {
  padding-bottom: 1rem;
}

#masthead #theme_unil_logo {
  position: relative !important;
  width: 350px;
  padding-left: 350px;
  height: 70px;
  margin: 20px 10px 0px 1rem;
  background-image: url(../images/logoUnil_bleu.svg), url(../sites/images/logo_uniandes_couleur.svg);
  background-size: 103px auto, 116px auto;
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 113px -7px;
  display: block !important;
}

@media only screen and (max-width: 768px) {
  #masthead #theme_unil_logo {
    margin-left: 0;
    background-size: 29% auto, 32.5% auto, 25% auto;
    background-position: 0 0, 44% -7px, 86% 3px;
  }
}

#masthead .ae-site-branding-container,
#masthead #ae-site-navigation {
  margin-left: 1rem;
}

/* déplacement des logos à droite*/
@media only screen and (min-width: 768px) {

  #masthead>.site-branding-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  #masthead #theme_unil_logo {
    display: inline-block !important;
    width: 200px !important;
    padding-left: 0 !important;
    padding-right: 250px;
    background-position: 20px 0, 130px -7px;
  }
  #masthead .ae-site-branding-container {
    margin-top: 20px;
    margin-left: 0;
    display: inline-block !important;
    vertical-align: top;
    direction: ltr;
    width: calc(100% - 306px - 1rem);
    text-align: left;
  }
  #masthead>.site-branding-container>.site-branding-container {
    direction: rtl;
    flex-basis: 100%;
  }
  #masthead #ae-site-navigation {
    direction: ltr;
  }
  #masthead .header-bar {
    padding-top: 0;
    margin-top: 20px;
    margin-right: 20px;
  }

}

@media only screen and (max-width: 768px) {
  #masthead #theme_unil_logo {
    margin-left: 1rem;
  }
  #masthead .header-bar {
    position: absolute;
    right: 0;
    padding-right: 0px !important;
  }
  #site-navigation>select {
    /* select en fonctionne pas lorsqu'on est dans un article */
    display: none;
  }
}
/* fin déplacement */

#masthead .header-bar .inner-wrap>div {
  font-size: 3em;
}

footer#colophon .site-info {
  padding-left: 1rem;
  background-image: url(../images/logoUnil_blanc.svg), url(../sites/images/logo_uniandes_blanc.svg);
  background-size: auto 40px, auto 48px;
  background-repeat: no-repeat, no-repeat;
  background-position: calc(100% - 1rem - 110px) calc(100% - 10px), calc(100% - 1rem) calc(100% - 7px);
}

body.home #main>article .entry-footer>*:not(.edit-link),
body.search #main>article .entry-footer>*:not(.edit-link),
body #masthead .entry-header .entry-meta>*:not(.edit-link) {
  display: none;
}

body.single .entry-footer,
body.single .entry-footer .posted-on {
  display: none;
}

body.single .entry-footer .posted-on svg {
  display: none;
}

body.single .entry-footer .posted-on time {
  font-size: 110%;
}

@media only screen and (min-width: 768px) {
  body:not(.home) .site-header.featured-image .site-featured-image .entry-header {
    margin-top: 0;
    margin-bottom: 3%;
  }
}

/* pages à propos, crédits... */
body.page #masthead .site-featured-image::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%, rgba(255, 255, 255, 0) 100%);
}
body.page #masthead .entry-title {
  color: #111010;
}
body.page #masthead.featured-image {
  height: 280px !important;
  padding-bottom: 1rem !important;
}
@media only screen and (max-width: 768px) {
  body.page:not(.home) #masthead.featured-image {
    height: 350px !important;
  }
  body.page #masthead.featured-image .entry-header {
    margin-top: 20px !important;
  }
}

/* contenu du design journal */
body.home.design2 #main>article:first-child {
  flex: 1 1 30%;
}

body.home.design2 #main>article,
body.search.design2 #main>article {
  margin-top: 0;
}

/* éléments de contenu */
hr.wp-block-separator {
  margin-bottom: 1rem !important;
}

/* plugin alphabetical pagination */
ul.ap_pagination.by_1 {
  float: none !important;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 0 1rem 10px;
  padding: 0;
  width: inherit;
}

ul.ap_pagination li {
  float: none;
  min-width: 30px;
}

ul.ap_pagination li a {
  padding: 0 3px;
}

ul.ap_pagination li small {
  font-size: 70%;
}

ul.ap_pagination li a:hover, ul.ap_pagination li a.selected {
  background-color: #c7e1ed;
}

ul.ap_pagination li.ap_reset {
  background: none !important;
  vertical-align: top;
}

ul.ap_pagination li.ap_reset a {
  display: unset !important;
  padding: 0;
}

ul.ap_pagination li.ap_reset a:before {
  content: "A-Z";
}

@media only screen and (max-width: 768px) {
  ul.ap_pagination li.ap_reset a {
    display: block !important;
  }

  ul.ap_pagination li small {
    display: block !important;
  }

  body.home.design2 .entry .post-thumbnail .post-thumbnail-inner img,
  body.search.design2 .entry .post-thumbnail .post-thumbnail-inner img {
    float: none;
    max-width: 100%;
  }

  footer#colophon .site-info {
    min-height: 150px;
  }

  footer#colophon .site-info #menu-menu-pied-de-page li {
    display: inline;
  }

  footer#colophon .site-info #menu-menu-pied-de-page li:last-child {
    margin-right: 0;
  }
}