.flockler-article-body {
  .twitter-tweet {
    margin: 0 auto;
  }

  figure {
    margin-bottom: 1.5em;
    text-align: center;

    &.flockler-article__fb-attachment__profile__picture {
      margin-bottom: 0;
    }
  }

  img {
    margin: 0 auto;
  }

  figcaption {
    opacity: 0.7;
  }

  * + figcaption {
    margin-top: 1.5em
  }
}


// Video

.flockler-article__attachment--video {
  height: 0;
  padding-top: (9/16) * 100%;
  position: relative;
  width: 100%;
}

.flockler-article__attachment__iframe--video {
  border: 0;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}


// Facebook

a.flockler-article__fb-attachment__link {
  border: 1px solid #e1e1e1;
  display: block;
  overflow: hidden;
  text-decoration: none;

  // Remove bottom border on Twenty-Fifteen
  .entry-content & {
    &, &:hover {
      border: 1px solid #e1e1e1;
    }
  }
}

.flockler-article__fb-attachment__link__cover {
  background-image: none !important;
  display: inline-block;
}

figure.flockler-article__fb-attachment__link__cover {
  margin: 18px;
}

.flockler-article__fb-attachment__link__cover--small {
  @media (min-width: 480px) {
    float: left;
    max-width: 160px;
  }
}

.flockler-article__fb-attachment__link__cover--large {
  display: block;
  text-align: center;
}

figure.flockler-article__fb-attachment__link__cover--large {
  margin-bottom: 0;
}

.flockler-article__fb-attachment__link__picture {
  display: block;
  max-height: 100%;
  object-fit: cover;
  width: auto;
}

.flockler-article__fb-attachment__link__body {
  padding: 0 18px 18px 18px;

  @media (min-width: 480px) {
    padding-top: 18px;
  }
}

.flockler-article__fb-attachment__link__body--small {
  overflow: hidden;
}

.flockler-article__fb-attachment__link__title {
  display: block;
  font-weight: bold;
  line-height: 1.35;
  margin-bottom: .4em;
  text-decoration: none;
}

.flockler-article__fb-attachment__link__description {
  font-size: 0.75em;
  margin: 0;
}

.flockler-article__fb-attachment__link__domain {
  font-size: 0.75em;
  text-transform: uppercase;
  opacity: 0.6;
}


// Facebook attachment profile

.flockler-article__fb-attachment__profile {
  margin-bottom: 1em;
  overflow: hidden;
  vertical-align: middle;
  white-space: nowrap;
}

.flockler-article__fb-attachment__profile__picture {
  display: inline-block;
  margin-bottom: 0;
  vertical-align: middle;
  width: 45px;
}

.flockler-article__fb-attachment__profile__picture__img {
  border-radius: 100%;
  display: block;
  height: 36px;
  width: 36px;
}

.flockler-article__fb-attachment__profile__body {
  display: inline-block;
  line-height: 1;
  overflow: hidden;
  padding-top: 1px;
  vertical-align: middle;
}

a.flockler-article__fb-attachment__profile__name {
  color: #333;
  display: block;
  font-size: em(12);
  font-weight: bold;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;

  &:hover, &:focus {
    text-decoration: underline;
  }

  // Remove border added in Twenty-Fifteen theme
  .entry-content & {
    border-bottom: 0;
  }
}


.flockler-article__fb-attachment__profile__context {
  display: block;
  color: #666;
  font-size: em(12);
  font-weight: 400;
  margin-top: 3px;
  text-decoration: none;
  line-height:1.2;

  a {
    color: inherit;

    &:focus, &:hover {
      text-decoration: underline;
    }
  }
}
