@import "functions";

@import "header";
@import "title";
@import "post";
@import 'slick';
@import 'footer';

.fa.fab {
  font-family: "Font Awesome 5 Brands";
  font-weight: normal;
}

.unset-all {
  all: unset;
}

.align-right {
  text-align: right;
}

div.content {
  top: 0;
  z-index: 999;
  margin-top: 0 !important;

  .home & {
    margin-top: -40px !important;
  }
}

ul.social-icons {
  list-style-type: none;
  margin: 6px 0;

  li {
    display: inline;
    padding: 5px 7px;

    a {
      font-size: 30px;
    }
  }
}

.img_slide {
  text-align: center;
  //img {
  //  //display: none;
  //}
}

article {
  &[id^='exhibitor-'], &[id^='partner-'] {
    .post_text {
      padding: 3px 0;
    }

    h3 {
      line-height: 30px;
      max-height: 30px;
      //overflow-x: hidden;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

  }

  &[id^='partner-'] {
    .post_text {
      margin-top: auto;
    }
  }

  .single-post &,
  &[id^='post-'] {
    .post_image {
      //height: unset;
    }
  }

  .blog_holder & .post_image {

  }
}


.blog_holder {
  &.masonry {

    display: flex;
    flex-wrap: wrap;
    //justify-content: space-between;

    article .post_image {
      display: flex;

      > * {
        margin: auto;
      }
    }
  }

  article .post_image {
    width: unset;

    > a {
      width: unset;
    }
  }
}

.container_upper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
  margin-top: 10px;

  > .exhibitor-link {
    text-align: center;
    margin-top: 0;
  }
}

.content_inner {
  > .container > .container_inner {
    background: white;

    @include media(medium, large) {
      padding: 50px 0 1rem 0;
    }

    @include media(large) {
      background: white;
      padding: 0 0 1rem 0;
    }

  }
}

.archive, .search-results {
  .exhibitor-preview-glide, .post_image {
    width: 100%;
    margin: 0 auto;
    height: 280px;
  }
}

.icon {
  display: inline-block;
  min-width: 10px;
  min-height: 10px;
  background: black;
  mask-size: cover;
  -webkit-mask-size: cover;

  &.big {
    width: 100px;
    height: 100px;
  }

  &.medium {
    width: 50px;
    height: 50px;
  }

  &.icon-arrow-left {
    mask-image: url("../img/noun_Arrow_Left.svg");
    -webkit-mask-image: url("../img/noun_Arrow_Left.svg");
  }

  &.icon-arrow-right {
    mask-image: url("../img/noun_Arrow_Right.svg");
    -webkit-mask-image: url("../img/noun_Arrow_Right.svg");
  }
}


.no_images {
  height: 100%;

  > .img_slide {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -o-transform: translateY(-50%);
  }
}

.thumbnail-grid {
  max-width: 200px;
}

.slider-img {
  position: relative;
}

.partners-glide {

  max-height: 50px;
  //width:100%;
  overflow: hidden;

  .tickercontainer {
    width: 105vw;
  }

  .img_slide > a {
      display: inline-block;
      > img {
        max-height: 100%;
        height: 50px;
        filter: grayscale(100%);
        transition: filter .4s ease;
        width: auto;

        &:hover {
          filter: none;
        }
      }
  }
}

.q_logo {
  display: none;
}

.drop_down .second {
  top: 50px;
}

.gallery_holder ul li a {
  display: inline-block;
}

.button-group .exhibitor-link {
  > a {
    text-align: center;
  }

  &:first-child > a {
    border-top-right-radius: unset;
    border-bottom-right-radius: unset;
  }

  &:not(:first-child):not(:last-child) > a {
    border-radius: 0;
  }

  &:last-child > a {
    border-top-left-radius: unset;
    border-bottom-left-radius: unset;
  }
}
@media screen and (max-width: 1000px) {

  .post_right {
    flex: 0 1 100%;

    &:not(.logo) {
      order: 1;
    }

    &.logo {
      order: 0;
    }
  }

  .post_left {
    flex: 0 1 100%;
    margin-bottom: 1em;

    &.logo {
      order: 0;
    }

    &:not(.logo) {
      order: 1;
    }
  }

  .post_text {
    flex: 0 1 100%;
  }

  :not(article[id^='post-']) .post_image {
    flex: 1 1 25%;
    align-self: end;
    height: 10em;
  }

  .post_image_small {
    height: 100%;
    width: auto;
  }

  .inner.website {
    text-align: center;
  }

  article {
    &[id^='exhibitor-'], &[id^='partner-'] {
      /*flex-grow: 1;*/
      /*flex-basis: 100%;*/
    }
  }
}

a .container_inner.clearfix h1 {
  cursor: default;
}

.qbutton.no-gutters {
  padding: 0;

  &:hover {
    padding: 0;
  }
}

.gallery_holder ul li a {
  display: inline-block;
}

.gform_wrapper label.gfield_label {
  font-weight: 500 !important;
}

.lswp-notification {
  margin-top: 68px;

  .admin-bar & {
    margin-top: 100px;
  }
}

.social_share_dropdown {
  min-width: 150px;
}

.equal-height-latest-posts a.latest_post_wrapper {
  min-height: 352px; // 1100px * 32%
  max-height: 352px; // 1100px * 32%

  > img {
    object-fit: cover;
    height: 352px;
  }
}