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

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

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

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

.property-page .property-hero-gallery .gallery-thumbs {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    padding: 0 0 5px;
    overflow-x: auto;
    overflow-y: hidden
}

.property-page .property-hero-gallery .gallery-thumbs button {
    position: relative;
    display: block;
    flex: 0 0 84px;
    width: 84px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    border: 2px solid transparent;
    overflow: hidden;
    background: #eef1f4;
    opacity: 1;
    visibility: visible
}

.property-page .property-hero-gallery .gallery-thumbs button img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.property-page .property-hero-gallery .gallery-thumbs button>i{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.36);color:#fff;font-style:normal;font-size:18px;pointer-events:none}
.property-page .property-hero-gallery .gallery-thumbs button>i span{display:grid;width:26px;height:26px;place-items:center;border:2px solid rgba(255,255,255,.92);border-radius:50%;font-size:12px;line-height:1}
.property-page .property-hero-gallery .gallery-thumbs button>b{position:absolute;right:3px;bottom:3px;z-index:3;max-width:calc(100% - 6px);padding:2px 4px;overflow:hidden;background:rgba(16,24,28,.72);color:#fff;font-size:10px;font-weight:400;line-height:1.2;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}

.property-page .property-hero-gallery .gallery-main.play-ready:after {
    content: '\25b6';
    position: absolute;
    inset: 0;
    display: grid !important;
    place-items: center;
    color: #fff;
    font-size: 28px;
    background: transparent !important;
    text-shadow: 0 2px 8px #000;
    pointer-events: none;
    content: '▶';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #fff;
    background: rgba(0, 0, 0, .35) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
    pointer-events: none;
}

.property-page .property-hero-gallery .gallery-main.vr-ready:after {
    content: 'VR';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 72px;
    height: 42px;
    margin: auto;
    border: 2px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    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 .gallery-thumbs {
        gap: 6px;
        margin-top: 8px
    }

    .property-page .property-hero-gallery .gallery-thumbs button {
        flex-basis: 72px;
        width: 72px;
        height: 50px
    }

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