/**
 * @file
 * Visual styles for Bootstrap Barrio's node component.
 */

.node__content {
  font-size: 1.071em;
  margin-top: 10px;
}

/* View mode teaser styles. */
.node--view-mode-teaser {
  border-bottom: 1px solid #d3d7d9;
  margin-bottom: 30px;
  padding-bottom: 15px;
}
.node--view-mode-teaser h2 {
  margin-top: 0;
  padding-top: 0.5em;
}
.node--view-mode-teaser h2 a {
  color: #181818;
}
.node--view-mode-teaser.node--sticky {
  background: #f9f9f9;
  background: rgba(0, 0, 0, 0.024);
  border: 1px solid #d3d7d9;
  padding: 0 15px 15px;
}
.node--view-mode-teaser .node__content {
  clear: none;
  font-size: 1em;
  line-height: 1.6;
}

/* Node metadata styles. */
.node__meta {
  font-size: 0.857em;
  color: #68696b;
  margin-bottom: -5px;
}
.node__meta .field--name-field-user-picture img {
  float: left; /* LTR */
  margin: 1px 20px 0 0; /* LTR */
}
[dir="rtl"] .node__meta .field--name-field-user-picture img {
  float: right;
  margin-left: 20px;
  margin-right: 0;
}

/* Node links styles. */
.node__links {
  text-align: right; /* LTR */
  font-size: 0.93em;
}
[dir="rtl"] .node__links {
  text-align: left;
}

/* Unpublished node styles. */
.node--unpublished {
  padding: 20px 15px 0;
}
.node--unpublished .comment-text .comment-arrow {
  border-left: 1px solid #fff4f4;
  border-right: 1px solid #fff4f4;
}
/* ===== FULL ARTICLE IMAGE FIX ===== */

.node--type-article.node--view-mode-full
.field--name-field-image {
  float: none !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 0 1.5rem 0;
  clear: both;
}

.node--type-article.node--view-mode-full
.field--name-field-image picture,
.node--type-article.node--view-mode-full
.field--name-field-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Empêche le texte de se coller à droite */
.node--type-article.node--view-mode-full
.node__content {
  clear: both;
}
/* ===== FIX TEASER LAYOUT (Views / Taxonomy) ===== */

.node--type-article.node--view-mode-teaser {
  display: block;
}

.node--type-article.node--view-mode-teaser
.field--name-field-image {
  float: none !important;
  width: 100%;
  margin: 0 0 1rem 0;
}

.node--type-article.node--view-mode-teaser
.field--name-field-image img,
.node--type-article.node--view-mode-teaser
.field--name-field-image picture {
  display: block;
  width: 100%;
  height: auto;
}

.node--type-article.node--view-mode-teaser
.node__content {
  clear: both;
}
