/* ENKINS Project Gallery — inline video player */
.en-pf-detail--video .en-pf-detail__content {
    min-width: 0;
}

.en-pf-video {
    position: relative;
    display: block;
    width: 100%;
    min-height: clamp(240px, 42vw, 620px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #111;
    cursor: pointer;
    text-align: left;
    isolation: isolate;
}

.en-pf-video__poster {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.en-pf-video__poster--empty {
    background:
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
        #171717;
}

.en-pf-video__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.04) 25%, rgba(0,0,0,.68) 100%);
    transition: background .25s ease;
}

.en-pf-video__play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: rgba(0,0,0,.2);
    transform: translate(-50%,-50%);
    transition: transform .25s ease, background .25s ease;
    backdrop-filter: blur(8px);
}

.en-pf-video__play i {
    display: block;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
}

.en-pf-video__label {
    position: absolute;
    z-index: 2;
    left: 28px;
    bottom: 24px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
}

.en-pf-video:hover .en-pf-video__shade,
.en-pf-video:focus-visible .en-pf-video__shade {
    background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(0,0,0,.74) 100%);
}

.en-pf-video:hover .en-pf-video__play,
.en-pf-video:focus-visible .en-pf-video__play {
    transform: translate(-50%,-50%) scale(1.06);
    background: rgba(0,0,0,.35);
}

.en-pf-video:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* After clicking, the preview is replaced by the player in exactly the same block. */
.en-pf-video.is-playing {
    min-height: 0;
    aspect-ratio: 16 / 9;
    cursor: default;
    background: #000;
}

.en-pf-video__player {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.en-pf-video.is-playing video.en-pf-video__player {
    object-fit: contain;
}

.en-admin-video-poster-preview {
    max-width: 420px;
}

.en-admin-video-poster-preview .en-admin-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.en-admin-video-poster-preview .en-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .en-pf-video {
        min-height: 220px;
    }

    .en-pf-video__play {
        width: 68px;
        height: 68px;
    }

    .en-pf-video__label {
        left: 18px;
        bottom: 18px;
        font-size: 9px;
    }
}
\n\n/* Stable mobile project-type navigation. The categories remain horizontally\n   scrollable, but the strip itself never gets a vertical scrollbar or layout\n   shift. The active marker belongs to the selected button, not to the viewport. */\n.en-pf-feed .en-pf-filters {\n    display: flex !important;\n    align-items: flex-end !important;\n    flex-wrap: nowrap !important;\n    overflow-x: auto !important;\n    overflow-y: hidden !important;\n    width: 100% !important;\n    max-width: 100% !important;\n    min-width: 0 !important;\n    box-sizing: border-box !important;\n    scrollbar-width: none !important;\n    -ms-overflow-style: none !important;\n    overscroll-behavior-x: contain !important;\n    overscroll-behavior-y: none !important;\n    touch-action: pan-x !important;\n    -webkit-overflow-scrolling: touch !important;\n}\n.en-pf-feed .en-pf-filters::-webkit-scrollbar { display: none !important; }\n.en-pf-feed .en-pf-filters button {\n    flex: 0 0 auto !important;\n    white-space: nowrap !important;\n    max-width: none !important;\n}\n\n@media (max-width: 767px) {\n    .en-pf-feed .en-pf-filters {\n        gap: 21px !important;\n        padding-bottom: 14px !important;\n        margin-bottom: 28px !important;\n        scroll-padding-inline: 16px !important;\n    }\n    .en-pf-feed .en-pf-filters button {\n        position: relative !important;\n        transform: none !important;\n        translate: none !important;\n    }\n    .en-pf-feed .en-pf-filters button::after {\n        bottom: -15px !important;\n        height: 2px !important;\n    }\n}\n