div.gallery {
    max-width: 100%;
    flex: 0 0 100%;
}
@media screen and (max-width: 991px) {
    div.gallery {
        max-width: 100%;
        flex: 0 0 100%;
    }
    div.gallery .nav-buttons {
        justify-content: start !important;
    }
}
@media screen and (max-width: 767px) {
    div.gallery {
        padding-bottom: 38px;
        max-width: 100%;
        flex: 0 0 100%;
    }
}
div.gallery > #media {
    padding-bottom: 66%;
    background: white;
    position: relative;
    border: 0;
}
@media screen and (max-width: 767px) {
    div.gallery > #media {
        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;
    background: var(--listing-gallery-media-background-color);
    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: pointer;
    object-fit: cover;
    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: var(--content-background-color);
    position: relative;
    padding: 4px 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(0, 0, 0, 0.2);
    margin: 2px;
    left: 0;
    top: 0;
    background-size: cover;
}
div.gallery > div.thumbs .f-carousel {
    --f-carousel-spacing: 4px;
    margin-bottom: 0;
}
div.gallery > div.thumbs .f-carousel__viewport {
    overflow: hidden;
    margin: 0 48px;
    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(--listing-gallery-media-background-color);
    }
}
div.gallery > div.thumbs .f-button {
    --f-button-width: 48px;
    --f-button-height: 66px;
    --f-button-color: rgba(215, 129, 1, 0.7);
    --f-button-border-radius: 0;
    /*--text-shadow: inset 0 0 0 2px rgba(215, 129, 1, 0.3);*/
    --f-button-svg-width: 100%;
    --f-button-svg-height: 100%;
    background: transparent;
    border-radius: 0;
    top: 0 !important;
    transform: none !important;
}
div.gallery > div.thumbs .f-button:hover {
    background: transparent;
    color: #d78101;
}
@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 66px;
    width: 66px;
    height: 66px;
    margin-right: 4px;
    position: relative;
    overflow: unset;
    background: var(--listing-gallery-media-background-color);
    border-radius: 0;
}
@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(--body-font-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;
    justify-content: end;
    width: 100%;
    margin-top: 0px;
    padding: 10px;
}
@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 {
    margin: 0 1px;
    height: 28px;
    padding: 0 12px;
    color: #111111;
    background: white;
    font-weight: 700;
    font-size: 0.75em;
    border-radius: 0;
    cursor: pointer;
    user-select: none;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}
div.gallery .nav-buttons .nav-button:hover {
    color: white;
    background: #111111;
}
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;
}