div.gallery {
  max-width: 100%;
  flex: 0 0 100%; }
  @media screen and (max-width: 991px) {
    div.gallery {
      max-width: 100%;
      flex: 0 0 100%; } }
  @media screen and (max-width: 767px) {
    div.gallery {
      padding-bottom: 0;
      max-width: 100%;
      flex: 0 0 100%; } }
  div.gallery > #media {
    /* padding-bottom: 66%; */
    position: relative;
    border: 0; }
  div.gallery > #media.map {
    padding-bottom: 66%
  }
    @media screen and (max-width: 767px) {
      div.gallery > #media {
        padding-bottom: 63% !important;
        border: 0; }
        div.gallery > #media[data-view=gallery] .preview {
          display: none; } }
    div.gallery > #media iframe,
    div.gallery > #media #player,
    div.gallery > #media .map-container,
    div.gallery > #media .picture_locked,
    div.gallery > #media img.default-picture {
      width: 100%;
      height: 100%;
      display: none;
      position: absolute;
      border-radius: 25px; }
    div.gallery > #media .preview {
      width: 100%;
      height: 100%; }
      div.gallery > #media .preview.video iframe {
        display: block; }
      div.gallery > #media .preview.video img {
        display: none; }
      div.gallery > #media .preview.local #player {
        display: block; }
      div.gallery > #media .preview.local img {
        display: none; }
      div.gallery > #media .preview.locked > * {
        display: none; }
      div.gallery > #media .preview.locked .picture_locked {
        display: block; }
      div.gallery > #media .preview.locked + .nav-buttons .nav-button.zoom {
        display: none; }
      div.gallery > #media .preview.picture .picture_locked p.picture-hint,
      div.gallery > #media .preview.fake-video .picture_locked p.video-hint {
        display: block; }
    div.gallery > #media img.default-picture {
      background-position: center center;
      background-repeat: no-repeat;
      background-size: contain;
      cursor: pointer;
      object-fit: contain;
      display: block; }
    div.gallery > #media[data-view=gallery] .nav-button.gallery {
      display: none; }
    @media screen and (min-width: 768px) {
      div.gallery > #media[data-view=gallery] .preview:not(.locked) + .map-container + .nav-buttons .nav-button.zoom {
        display: inline-flex; } }
    div.gallery > #media[data-view=map] > *:not(.nav-buttons) {
      display: none; }
    div.gallery > #media[data-view=map] .map-container {
      display: block; }
    div.gallery > #media[data-view=map] .nav-button.map {
      display: none; }
    div.gallery > #media[data-view]:not([data-view=gallery]) + div.thumbs {
      display: none; }
  div.gallery > div.thumbs {
    background: transparent;
    position: relative;
    padding: 8px 0 0 0; }
    @media screen and (max-width: 767px) {
      div.gallery > div.thumbs {
        position: absolute;
        display: block;
        height: auto;
        width: 100%;
        top: 0;
        padding: 0 15px; } }
    div.gallery > div.thumbs span.play {
      width: calc(100% - 4px);
      height: calc(100% - 4px);
      position: absolute;
      background: url("../../img/play.svg") center center no-repeat rgba(0, 0, 0, 0.2);
      margin: 2px;
      left: 0;
      top: 0;
      background-size: contain; }
    div.gallery > div.thumbs .f-carousel {
      --f-carousel-spacing: 4px;
      margin-bottom: 0; }
    div.gallery > div.thumbs .f-carousel__viewport {
      overflow: hidden;
      margin: 0 52px;
      padding: 0 0 4px 0;
      width: auto; }
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-carousel__viewport {
          margin: 0;
          padding: 0;
          background: var(--content-background-color); } }
    div.gallery > div.thumbs .f-button {
      --f-button-width: 44px;
      --f-button-height: 44px;
      --f-button-color: #191D28;
      --f-button-border-radius: 50%;
      --f-button-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
      --f-button-svg-width: 40%;
      --f-button-svg-height: 40%;
      background: transparent;
      top: 0 !important;
      bottom: 0;
      margin: auto;
      transform: none !important; }
      div.gallery > div.thumbs .f-button:hover {
        /* background: #edeeef;  */
      }
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-button {
          height: 100%;
          width: 30px;
          background: transparent;
          box-shadow: none; }
          div.gallery > div.thumbs .f-button:hover {
            background: transparent; } }
      div.gallery > div.thumbs .f-button.is-prev {
        left: 0 !important; }
      div.gallery > div.thumbs .f-button.is-next {
        right: 0 !important; }
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-button > svg {
          width: 80%;
          height: 80%;
          color: white;
          filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.6)); } }
    div.gallery > div.thumbs .f-carousel__slide {
      padding: 0;
      flex: 0 0 116px;
      width: 116px;
      height: 82px;
      margin-right: 6px;
      position: relative;
      overflow: unset;
      background: var(--content-background-color); 
      border-radius: 12px;
      overflow: hidden;}
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-carousel__slide {
          position: relative;
          padding-bottom: 66%;
          flex: 0 0 90%;
          width: 90%; } }
      div.gallery > div.thumbs .f-carousel__slide img,
      div.gallery > div.thumbs .f-carousel__slide video {
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
        cursor: pointer;
        object-fit: cover;
        box-shadow: none; }
        @media screen and (max-width: 767px) {
          div.gallery > div.thumbs .f-carousel__slide img,
          div.gallery > div.thumbs .f-carousel__slide video {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 0;
            box-shadow: none !important;
            border-radius: 0; } }
      div.gallery > div.thumbs .f-carousel__slide.active img,
      div.gallery > div.thumbs .f-carousel__slide.active video {
        border-color: #222222;
        box-shadow: 0px 2px var(--button-color); }
      div.gallery > div.thumbs .f-carousel__slide.locked img {
        background-color: #eeeeee;
        background-image: url("../../img/lock.svg");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: auto; }
        @media screen and (max-width: 767px) {
          div.gallery > div.thumbs .f-carousel__slide.locked img {
            background-size: auto 50%; } }
  div.gallery .nav-buttons {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    margin-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }
    @media screen and (max-width: 767px) {
      div.gallery .nav-buttons {
        top: 100%; } }
    div.gallery .nav-buttons .map-group {
      margin-left: none;
      z-index: 99; }
      @media screen and (max-width: 767px) {
        div.gallery .nav-buttons .map-group {
          margin-left: unset;
          display: flex;
          width: 100%;
          justify-content: center; } }
    div.gallery .nav-buttons .nav-button {
      height: 40px;
      padding: 0 12px;
      color: var(--body-font-color);
      background: var(--listings-box-background-color);
      font-weight: 500;
      font-size: 1rem;
      border-radius: 12px;
      cursor: pointer;
      user-select: none;
      text-transform: unset;
      display: inline-flex;
      align-items: center; 
      box-shadow: 0 4px 30px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
      transition-timing-function: cubic-bezier(.4,0,.2,1);
      transition-duration: 0.15s;}
      div.gallery .nav-buttons .nav-button:hover {
        /* color: white; */
        background: #edeeef; }
      div.gallery .nav-buttons .nav-button.map {
        margin-left: 6px;
      }
      div.gallery .nav-buttons .nav-button.zoom {
        display: none; }
  div.gallery span.img-loading {
    display: inline-block;
    background: url("../../img/img_loader.gif") center center no-repeat #444444;
    position: absolute;
    top: 0;
    left: 0;
    margin: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    opacity: 0.5; }

.listing-fit-contain .f-carousel__slide img {
  object-fit: contain !important; }

.picture_locked {
  height: 100%;
  background-color: #eeeeee; }
  .picture_locked > div {
    height: 100%;
    display: flex; }
    .picture_locked > div > div {
      width: 100%;
      align-self: center; }

.restricted-content img.locked-media {
  width: 96px;
  height: 142px;
  background: url("../../img/lock.svg") center center no-repeat;
  text-align: center;
  margin-bottom: 20px;
  background-size: cover; }

.f-carousel__track .f-carousel__slide.has-video:after {
  content: '';
  position: absolute;
  width: 64px;
  height: 64px;
  background: url("../../img/play.svg") center center no-repeat;
  background-size: cover; }

.f-carousel__track .f-carousel__slide.has-html5video .fancybox__thumb {
  background-size: contain; }

/* by Rudi */
div.gallery > #media .preview {
  width: 100%;
  padding-bottom: 66%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  overflow: hidden;
}
div.gallery > #media img.default-picture-bg {
  position: absolute;
  width: 100%;
  left: -25px;
  right: -25px;
  top: -25px;
  bottom: -25px;
  -webkit-filter: blur(15px);
  -moz-filter: blur(15px);
  filter: blur(15px);
  transform: scale(1.8);
  object-fit: contain;
  background-repeat: no-repeat;
  background-position: center;
}
