@use '../../_global/styles/mixins' as *;
@use '../../_global/styles/vars' as *;
@use '../../components/event-teaser-large/event-teaser-large.scss' as *;
@use '../../atoms/slider-tabs/slider-tabs';

.right-open-container {
  @media (min-width: 400px) {
    width: calc((var(--container-width) / 2) + 50vw - 8px);
    margin-left: auto;
    margin-right: 0;
    padding-right: 0;
  }
}

.eventteaserlargeslider {
  opacity: 0;
  transition: opacity 0.4s linear;

  &.initiated {
    opacity: 1;
  }

  .slider-tabs {
    @media(min-width: 1471px) {
      width: calc(var(--container-width) - 2 * var(--container-padding));
      left: 0 !important;
      transform: none !important;
    }
  }

  &.single-slide {
    .controls {
      display: none;
    }
  }

  .slide-overflow {
    overflow: hidden;
    transition: height 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  img.loading {
    opacity: 0;
  }

  img.loaded {
    transition: 0.3s ease;
    opacity: 1;
  }

  .slide-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 80000px;
    contain: layout;
    margin: 0 calc(var(--col-padding) * -1);
    @media(max-width: 999px) {
      width: 34500px;
      //margin:0;
    }
    @media(max-width: 399px) {
      width: 10000%;
      margin: 0;
    }

    &.no-transition {
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;

      .image-box:after {
        content: "";
        @include full-size;
        z-index: 2;
      }
    }

    img, a {
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-user-drag: none;
      -moz-user-drag: none;
    }
  }

  .slide {
    position: relative;
    width: 1%;
    max-width: 1%;
    min-width: 1%;
    min-height: 400px;
    padding: var(--col-padding);
    @media(min-width: 1000px) {
      //padding:var(--col-padding);
    }
    @media(min-width: 400px) {
      padding: var(--col-padding);
    }
  }

  .prev-clone,
  .next-clone {
    position: absolute;
    display: flex;
    width: 100%;
  }

  .prev-clone {
    position: absolute;
    right: 100%;
    justify-content: flex-end;
  }
}


.rotationslider {
  margin-bottom: calc(var(--section-margin) + 2rem) !important;
  overflow: hidden;
  padding-top: var(--section-margin);
  margin-top: 0;

  h1 {
    max-width: 50%;
    display: inline-block;
  }

  .eventteaserlargeslider {
    margin-bottom: 2rem;
    position: relative;
    display: block;

    .slider-tabs, .tabs {
      bottom: -2rem;
    }

    .prev, .next {
      position: absolute;
      top: -94px;
      width: 60px;
      height: 60px;
      text-align: center;
      line-height: 60px;
      left: calc(var(--container-width) - 2 * var(--container-padding) - 60px);
      right: auto;
      border-radius: 24px;
      background: var(--color-background);
      color: var(--color-text);
      --button-hover-shadow-opacity: 0.4;
      --button-hover-shadow-size: 6px;
      @media(max-width: 1470px) {
        left: auto;
        right: var(--container-padding);
      }
      @media(max-width: 1339px) {
        top: -90px;
      }
      @media(max-width: 399px) {
        right: 0px;
        top: -80px;
      }
      @media(max-width: 767px) {

      }

      &:before {
        @include icon-small-arrow-right-simple;
        font-family: "Icons", sans-serif;
        font-size: 30px;
        content: "\e825";
      }

      &:after {
        content: "";
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: var(--border-radius-lg);
        box-shadow: 0 0 0 2px var(--color-surface-inset);
        opacity: 0;
        transition: 0.3s ease;
      }

      &:hover:after {
        opacity: 0.4;
        box-shadow: 0 0 0 6px var(--color-surface-inset);
      }

    }

    .prev {
      left: calc(var(--container-width) - 2 * var(--container-padding) - 140px);
      transform: rotate(180deg);
      @media(max-width: 1470px) {
        left: auto;
        right: calc(var(--container-padding) + 70px);
      }
      @media(max-width: 399px) {
        right: 70px;
      }
    }

    .count {
      display: none;
    }

    h2, .like-h2 {
      margin-top: 0.3em;
      margin-bottom: 0.4em;
    }

  }
}
