.property-page .property-hero-gallery {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0 0 10px
}

.property-page .property-hero-gallery .gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px;
    background: #e9edef;
    cursor: pointer
}

.property-page .property-hero-gallery .gallery-main img,
.property-page .property-hero-gallery .gallery-main video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.property-page .property-hero-gallery .gallery-main video {
    object-fit: contain;
    background: #111
}

.property-page .property-hero-gallery .gallery-main > span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #8b969d;
    font-size: 12px
}

.property-page .property-hero-gallery .hero-media-data {
    display: none
}

.property-page .property-hero-gallery .hero-gallery-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    min-width: 42px;
    padding: 4px 7px;
    border-radius: 2px;
    background: rgba(16, 24, 28, .68);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    pointer-events: none
}

.property-page .property-hero-gallery .hero-gallery-counter[hidden] {
    display: none
}

.property-page .property-hero-gallery .property-hero-media-tabs {
    display: flex;
    gap: 0;
    width: 100%;
    margin-top: 8px;
    overflow-x: auto;
    border-bottom: 1px solid #e4e8ea;
    scrollbar-width: thin
}

.property-page .property-hero-gallery .property-hero-media-tabs button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 6px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #66737b;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer
}

.property-page .property-hero-gallery .property-hero-media-tabs button:hover,
.property-page .property-hero-gallery .property-hero-media-tabs button.active {
    border-bottom-color: var(--brand);
    color: var(--brand)
}

.property-page .property-hero-gallery .property-hero-media-tabs .hero-tab-image {
    display: block;
    flex: 0 0 64px;
    width: 64px;
    height: 42px;
    border-radius: 2px;
    background: #e9edef center / cover no-repeat
}

.property-page .property-hero-gallery .property-hero-media-tabs .hero-tab-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.property-page .property-hero-gallery .property-hero-media-tabs .hero-tab-text {
    display: grid;
    gap: 4px;
    min-width: 54px;
    text-align: left
}

.property-page .property-hero-gallery .property-hero-media-tabs .hero-tab-text b {
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2
}

.property-page .property-hero-gallery .property-hero-media-tabs .hero-tab-text small {
    color: #8b969d;
    font-size: 10px;
    line-height: 1
}

.property-page .property-hero-gallery .property-hero-media-tabs .hero-tab-album-link {
    display: grid;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    place-items: center;
    border: 1px solid #cbd4d8;
    border-radius: 50%;
    color: #7c898f;
    font-size: 13px;
    line-height: 1
}

.property-page .property-hero-gallery .property-hero-media-tabs button:hover .hero-tab-album-link,
.property-page .property-hero-gallery .property-hero-media-tabs button.active .hero-tab-album-link {
    border-color: currentColor;
    color: inherit
}

.property-page .property-hero-gallery .hero-gallery-arrows {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    height: calc(100% - 44px);
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none
}

.property-page .property-hero-gallery .hero-gallery-arrows[hidden] {
    display: none
}

.property-page .property-hero-gallery .hero-gallery-arrows button {
    display: grid;
    width: 32px;
    height: 52px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(16, 24, 28, .58);
    color: #fff;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    pointer-events: auto;
    cursor: pointer
}

.property-page .property-hero-gallery .hero-gallery-arrows button:hover {
    background: rgba(16, 24, 28, .82)
}

.property-page .property-hero-gallery .hero-gallery-arrows button:disabled {
    opacity: .45;
    cursor: default
}

.property-page .property-hero-gallery .gallery-main.play-ready:after {
    content: '\25b6';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 58px;
    background: rgba(0, 0, 0, .28);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
    pointer-events: none
}

.property-page .property-hero-gallery .gallery-main.vr-ready:after {
    content: 'VR';
    position: absolute;
    inset: 0;
    display: grid;
    width: 72px;
    height: 42px;
    margin: auto;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 8px #000;
    pointer-events: none
}

@media (max-width: 600px) {
    .property-page .property-hero-gallery .gallery-main {
        aspect-ratio: 4 / 3;
        border-radius: 3px
    }

    .property-page .property-hero-gallery .property-hero-media-tabs button {
        gap: 6px;
        min-height: 50px;
        padding: 5px 9px
    }

    .property-page .property-hero-gallery .property-hero-media-tabs .hero-tab-image {
        flex-basis: 56px;
        width: 56px;
        height: 36px
    }

    .property-page .property-hero-gallery .property-hero-media-tabs .hero-tab-text b {
        font-size: 11px
    }

    .property-page .property-hero-gallery .hero-gallery-arrows {
        height: calc(100% - 42px);
        padding: 0 6px
    }

    .property-page .property-hero-gallery .hero-gallery-arrows button {
        width: 28px;
        height: 44px;
        font-size: 26px
    }

    .property-page .property-hero-gallery .gallery-main.play-ready:after {
        font-size: 44px
    }
}
