@use "sass:map";
@use "sass:math";

.embed-responsive {
  position: relative;
  display: block;
  height: 0;
  padding: 0;
  overflow: hidden;

  .embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    border: 0;
  }
}


.section-nadelshowroom {
  position: relative;
  overflow: hidden;
  @media screen and (max-width: map.get($container-max-widths, "md")) {
    background-color: #fff;
  }
  .col {
    max-width: 33.33333333%;

    position: relative;
    padding: 0 $grid-gutter-width;
  }
}

#nadelselektor {
  position: relative;
  z-index: 2;
  background-color: hsla(0,0%,95%,.75);
  padding: $grid-gutter-width * 0.66;
  margin-top: $grid-gutter-width;
  margin-bottom: $grid-gutter-width;

  @media screen and (max-height: 1024px) {
    padding: $grid-gutter-width * 0.55;
    margin-top: 0;
    margin-bottom: 0;
    h1 {
      margin-top: 0;
    }
  }
  @media screen and (max-width: map.get($container-max-widths, "md")) {
    margin: 0;
    padding: 0;
    background-color: inherit;
    h1 {
      margin-top: 0;
    }
  }
}

.needle-selector.hidden {
  display: none;
}

#nadellegende {
  position: absolute;
  top: $grid-gutter-width * 1.66;
  width: 200px;
  right: 0;
  z-index: 3;

  h2 {
    margin-top: 0;
    margin-bottom: .25em;
  }

  @media screen and (max-width: map.get($container-max-widths, "md")) {
    display: none !important;
  }
}

#skfbSolo {
  @media screen and (min-width: 1024px) {
    position: absolute;
    top: -62px;
    bottom: 0;
    left: 0;
    right: 0;
    transition: height .25s;
    z-index: 1;
    overflow: hidden;
    .compare & {
      display: none;
    }
  }
}

#openCompareViewBtn {
  @media screen and (max-width: 1024px) {
    display: none;
  }
}

.modal-skfb {
  width: 100% !important;
  max-width: inherit !important;
  height: 100%;
  padding: $grid-gutter-width;
  margin: 0;
  position: relative;
  .modal-content, iframe {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .btn-close {
    position: absolute;
    bottom: $grid-gutter-width;
    left: 50%;
    transform: translateX(-50%);
    color: $gray-800;
    .icon {
      color: $primary;
    }
  }
}

  .embed-responsive-sketchfab {
    height: 100%;
    @media screen and (max-width: map.get($container-max-widths, "md")) {
      height: 100vw;
    }
  }

  .model-selection {

    position: absolute;
    z-index: $zindex-dropdown;

    top: $grid-gutter-width;


    .dropdown-menu {
      width: 16.625rem + math.div($grid-gutter-width, 1.5);
      padding: math.div($grid-gutter-width, 3);

      &.open {
        display: block;

      }
    }

    &-a {
      left: $grid-gutter-width;
    }
    &-b {
      right: $grid-gutter-width;
      .dropdown-menu {
        right: 0;
        left: inherit;
      }
    }
  }

  .body-showroom {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    background-color: $gray-200;
  }

.app-nadelshowroom {
  display: flex;
  position: absolute;
  height: 100%;
  width: 100%;
  overflow: hidden;

  .viewer {
    flex: 0 0 50%;
    position: relative;
    height: 100%;
    width: 50%;

    &:first-child {
      border-right: 1px solid $gray-400;
    }

    iframe {
      position: absolute;

      top: -62px;
      left: 0;
      bottom: 0;
      right: 0;
      border: 0;
      width: 100%;
      height: calc(100% + 62px);
    }
  }

  .viewer-startscreen {
    position: absolute;
    text-align: center;
    width: 100%;
    height: 100%;

    background: transparent url("/typo3conf/ext/amdsshowroom/Resources/Public/PluginShowroomCompare/img/SW_800x480_m.png") no-repeat center center;
  }

  .showroomhint {
    position: absolute;
    top: calc(50% - 1em);
    color: #fff;
    right: 0;
    bottom: auto;
    line-height: 1em;
    left: 0;

    span {
      padding: .5em 2em;
      border-radius: 1em;
      background-color: $gray-800;
    }
  }

  .needle-legend {
    position: absolute;
    top: $grid-gutter-width;

    &--a {
      right: $grid-gutter-width;
      text-align: right;
    }
    &--b {
      left: $grid-gutter-width;
    }

    h2 {
      margin-top: 0;
    }
  }
}
