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: 38px;
      max-width: 100%;
      flex: 0 0 100%; } }
  div.gallery > #media {
    padding-bottom: 66%;
    position: relative;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background:
      linear-gradient(160deg, #fff8f1 0%, #ffe8cc 55%, #ffd9b0 100%);
    box-shadow: 0 14px 36px rgba(194, 65, 12, 0.12); }
    @media screen and (max-width: 767px) {
      div.gallery > #media {
        border: 0;
        border-radius: 12px; }
        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;
      background: #fff1d6;
      border-radius: 0; }
    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: cover;
      cursor: zoom-in;
      object-fit: cover;
      display: block;
      transition: transform 0.35s ease, filter 0.25s ease; }
      div.gallery > #media img.default-picture:hover {
        transform: scale(1.02); }
    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) ~ .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=map] .kz-gallery-count {
      display: none; }
    div.gallery > #media[data-view]:not([data-view=gallery]) + div.thumbs {
      display: none; }
  div.gallery > div.thumbs {
    background: transparent;
    position: relative;
    padding: 10px 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; } }
    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(28, 25, 23, 0.35);
      margin: 2px;
      left: 0;
      top: 0;
      background-size: contain;
      border-radius: 10px; }
    div.gallery > div.thumbs .f-carousel {
      --f-carousel-spacing: 0;
      margin-bottom: 0; }
    div.gallery > div.thumbs .f-carousel__viewport {
      overflow: hidden;
      margin: 0 40px;
      padding: 2px 0;
      width: auto; }
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-carousel__viewport {
          margin: 0;
          padding: 0;
          background: linear-gradient(180deg, #fff1d6 0%, #ffe8cc 100%);
          border-radius: 12px; } }
    div.gallery > div.thumbs .f-button {
      --f-button-width: 36px;
      --f-button-height: 76px;
      --f-button-color: #c2410c;
      --f-button-border-radius: 12px;
      --f-button-shadow: none;
      --f-button-svg-width: 50%;
      --f-button-svg-height: 50%;
      background: #fff1d6;
      border: 1px solid #f0d9c0;
      border-radius: 12px;
      top: 2px !important;
      transform: none !important;
      transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
      div.gallery > div.thumbs .f-button:hover {
        background: #ff6a00;
        border-color: #ff6a00;
        color: #ffffff; }
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-button {
          height: 100%;
          width: 34px;
          background: transparent;
          border: 0;
          box-shadow: none; }
          div.gallery > div.thumbs .f-button:hover {
            background: transparent;
            color: #ffffff; } }
      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 2px rgba(28, 25, 23, 0.55)); } }
    div.gallery > div.thumbs .f-carousel__slide {
      padding: 0;
      flex: 0 0 76px;
      width: 76px;
      height: 76px;
      margin-right: 8px;
      position: relative;
      overflow: unset;
      background: #fff1d6;
      border-radius: 12px;
      transition: transform 0.2s ease; }
      @media screen and (max-width: 767px) {
        div.gallery > div.thumbs .f-carousel__slide {
          position: relative;
          padding-bottom: 66%;
          flex: 0 0 90%;
          width: 90%;
          margin-right: 0;
          height: auto;
          border-radius: 0;
          background: #ffe8cc; } }
      div.gallery > div.thumbs .f-carousel__slide img,
      div.gallery > div.thumbs .f-carousel__slide video {
        width: 100%;
        height: 100%;
        border: 2px solid transparent;
        border-radius: 12px;
        cursor: pointer;
        object-fit: cover;
        box-shadow: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease; }
        @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: #ff6a00;
        box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.22); }
      div.gallery > div.thumbs .f-carousel__slide:not(.active):hover img,
      div.gallery > div.thumbs .f-carousel__slide:not(.active):hover video {
        border-color: #ffb703; }
      div.gallery > div.thumbs .f-carousel__slide.locked img {
        background-color: #fff1d6;
        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 .kz-gallery-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.62);
    color: #fffaf4;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(28, 25, 23, 0.18); }
    @media screen and (max-width: 767px) {
      div.gallery .kz-gallery-count {
        display: none; } }
    div.gallery .kz-gallery-count svg {
      opacity: 0.95; }
    div.gallery .kz-gallery-count__sep {
      opacity: 0.7;
      margin: 0 1px; }
  div.gallery .nav-buttons {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 12px;
    padding: 0 12px;
    z-index: 6; }
    @media screen and (max-width: 767px) {
      div.gallery .nav-buttons {
        top: 100%; } }
    div.gallery .nav-buttons .map-group {
      margin-left: auto;
      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 {
      margin: 0 3px;
      height: 30px;
      padding: 0 14px;
      color: #1c1917;
      background: rgba(255, 250, 244, 0.92);
      border: 1px solid rgba(240, 217, 192, 0.95);
      font-weight: 600;
      font-size: 0.813em;
      border-radius: 999px;
      cursor: pointer;
      user-select: none;
      text-transform: unset;
      display: inline-flex;
      align-items: center;
      box-shadow: 0 6px 16px rgba(194, 65, 12, 0.12);
      backdrop-filter: blur(8px);
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
      div.gallery .nav-buttons .nav-button:hover {
        color: #ffffff;
        background: #ff6a00;
        border-color: #ff6a00;
        transform: translateY(-1px); }
      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 rgba(255, 106, 0, 0.35);
    position: absolute;
    top: 0;
    left: 0;
    margin: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    opacity: 0.55;
    border-radius: 10px; }

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

.picture_locked {
  height: 100%;
  background-color: #fff1d6; }
  .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; }
