/* Show the initial preview even while the carousel script is still loading. */
.gallerySlider .galleryPreview:not(.owl-loaded) {
    display: block;
}
.gallerySlider .galleryPreview:not(.owl-loaded) > .item {
    display: none;
}
.gallerySlider .galleryPreview:not(.owl-loaded) > .item:first-child {
    display: block;
}
.gallerySlider .galleryPreview .item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tm-video-controls,
.tm-video-status:empty {
    display: none;
}
.tm-video-status {
    padding: 8px 12px;
    font-size: 13px;
    color: #fff;
}
/* The mobile controls live below, never over, the video. */
@media (max-width: 782px), (hover: none) and (pointer: coarse) {
    .nmp-profile-video.tm-custom-video-controls video::-webkit-media-controls,
    .nmp-profile-video.tm-custom-video-controls video::-webkit-media-controls-overlay-play-button {
        display: none !important;
    }
    .nmp-profile-video.tm-custom-video-controls video::-webkit-media-controls-start-playback-button {
        display: none !important;
        -webkit-appearance: none;
    }
    .nmp-profile-video.tm-custom-video-controls .tm-video-controls {
        display: grid;
        grid-template-columns: 42px minmax(60px, 1fr) auto 42px 42px;
        align-items: center;
        gap: 3px;
        padding: 4px 5px;
        background: #17171d;
        color: #fff;
        position: static;
        opacity: 1;
        visibility: visible;
        transition: opacity .15s ease;
    }
    .nmp-profile-video.tm-custom-video-controls.tm-video-controls-hidden .tm-video-controls {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .nmp-profile-video.tm-custom-video-controls video {
        cursor: pointer;
    }
    .nmp-profile-video.tm-custom-video-controls video:focus-visible {
        outline: 2px solid #a78bfa;
        outline-offset: -2px;
    }
    .tm-video-controls button {
        display: grid;
        place-items: center;
        width: 42px;
        height: 44px;
        padding: 10px;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: #fff;
        cursor: pointer;
        touch-action: manipulation;
    }
    .tm-video-controls button:focus-visible {
        outline: 2px solid #a78bfa;
        outline-offset: -2px;
    }
    .tm-video-controls button[hidden] {
        display: none !important;
    }
    .tm-video-controls svg {
        display: block;
        width: 21px;
        height: 21px;
        fill: currentColor;
    }
    .tm-video-controls input[type="range"] {
        display: block;
        width: 100%;
        min-width: 0;
        height: 36px;
        margin: 0;
        padding: 0;
        accent-color: #9b6bff;
        background: transparent;
    }
    .tm-video-time {
        min-width: 32px;
        text-align: center;
        font: 12px/1.2 system-ui, sans-serif;
        font-variant-numeric: tabular-nums;
    }
    .nmp-profile-video:fullscreen {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #000;
    }
    .nmp-profile-video:fullscreen video {
        width: 100%;
        height: calc(100% - 60px);
        max-height: calc(100dvh - 60px) !important;
        object-fit: contain;
    }
}
