
.exhibitors, .partners {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  align-items: center;

  &[class^='post-'] {
    align-items: unset;
  }
}

.exhibitor-description, .partner-description {
  padding: 15px 7px;
}

.exhibitor-details-table {
  th, td {
    text-align: left;
  }
}

.exhibitor-prev-btn, .exhibitor-next-btn {
  min-width: 150px;
}


.single {

  &.single-partners div.post_image {
    margin: 0 20px;
  }

  &.single-post .post_content_holder {
    flex-direction: column;
    -webkit-flex-direction: column;

    .post_image, .post_text {
      flex-grow: 1;
      flex-shrink: 0;
      flex-basis: 100%;
      display: block;
      min-height: 100%;
    }
  }

  .image_gallery_thumbnail_wrapper {
    @include media(0, medium) {
      flex: 0 1 48%;
    }
    @include media(tiny, medium) {
      margin: 3px;
    }
  }

  .container_upper {

    @include media(small, medium) {
      flex-wrap: wrap;
    }

    @include media(tiny, small) {
      & > .exhibitor-link {
        flex: 0 0 100%;
      }
    }
  }


  .post_right, .post_left {
    flex: 0 0 50%;
    align-self: flex-start;

    > .post_image {
      text-align: center;
    }

    > .post_image .post_image_small {
      width: auto;
      max-width: 100%;
      text-align: center;
    }
  }

  .post_right {
    order: 1;

    @include media(very-large, extra-large) {
      flex: 1 1 100%;
    }
  }

  .post_left {
    order: 0;
  }

  .post_content_holder {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
  }

  .post_text, .post_image {
    flex: 1 1 100%;
    -webkit-flex: 1 1 100%;

    @include media(0, medium) {
      flex-direction: column;
      -webkit-flex-direction: column;
    }
  }

  .post_image_small {
    width: 50%;
  }

  &.single-exhibitors {
    .img_slides, .desc_slides {
      display: flex;
      flex-wrap: wrap;
    }

    .exhibitor-preview-glide .slick-slider:first-child .slick-list {
      height: 500px;
      flex: 0 0 100%;
      align-items: center;
      display: flex;


      .slick-track {
        max-height: 250px;
        min-height: 250px;
      }
    }

    .slick-dots {
      flex: 0 0 100%;
    }

    .post_image {
      text-align: center;
      height: unset;
    }

    .post_right {
      margin: 0 auto;

      .slick-dotted ~ .social_share_holder {
        margin-top: -18px;
      }

      .social_share_holder {
        display: block;
        float: right;
        margin-top: 0;
        padding-right: 5px;

        > div {
          margin-top: -199px;
          margin-left: 81px;

          @include media(0, medium) {
            margin-left: -81px;
          }
        }

        ul {
          transform: rotate(180deg);

          > li {
            transform: rotate(-180deg);
          }
        }
      }

      .exhibitor-preview-glide {
        max-width: 500px;
        margin: 0 auto;
        height: unset;

        @include media(0, tiny) {
          max-width: 100vw;
        }
        @include media(tiny, medium) {
          max-width: 80vw;
        }

        .img_slides img {
          width: 100%;
        }

        .slick-arrow {
          position: absolute;
          align-self: center;
          z-index: 1;
        }
      }
    }

    @include media(0, large) {
      .container_inner {
        width: 80%;
        margin-top: 50px;
      }
    }
  }
}

.archive article .slick-slide .img_slide img {
  min-height: 250px;
  max-width: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.blog_holder.masonry article {

  margin: 0 0 20px;
  width: unset !important;
  flex: 0 0 100%;
  max-width: 100%;

  transition: max-width 500ms linear;

  @media only screen and (min-width: 600px) {
    flex-basis: 47%;
    max-width: 47%;
  }

  @media only screen and (min-width: 768px) {
    flex-basis: 46.5%;
    max-width: 46.5%;
  }

  @media only screen and (min-width: 1000px) {
    flex-basis: 31.2%;
    max-width: 31.2%;
  }


  &.type-post {
    .post_text {
      //max-height: 280px;
      display: inline-flex;
      flex-direction: column;
      flex-wrap: wrap;
      min-height: 300px;
      max-height: 300px;

      a.qbutton {
        margin-top: 10px;
      }

      .post_additional_info {
        align-self: flex-end;
      }

      .excerpt-wrapper {
        overflow: hidden;
        text-overflow: ellipsis;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 0;

        p { // the excerpt paragraph
          column-width: 282.7px; // 1100px * 31.2% - 60px
          max-height: 100px;
          @media only screen and (max-width: 600px) {
            column-width: 360px;
          }
        }
      }

      @media only screen and (max-width: 600px) {
        //width: 100%;
      }
    }

    img {
      min-height: 340px;
      max-height: 340px;
      object-fit: cover;
    }
  }

  @media only screen and (min-width: 600px) {
    body:not(.blog):not(.search) &:nth-child(3n) {
      margin-left: 2%;

      .search-results & {
        margin: 0 0 20px;
      }
    }
    body:not(.blog):not(.search) &:nth-child(3n+1) {
      margin-right: 2%;

      .search-results & {
        margin: 0 0 20px;
      }
    }
    body:not(.blog):not(.search) &:nth-child(3n+2) {
      margin-right: 1%;
      margin-left: 1%;

      .search-results & {
        margin: 0 0 20px;
      }
    }
  }
}


