/* Video thumbnails that open a popup (inc/pmfj-video.php, 1 Dec 2026).
   Markup: <a class="pmfj-video ..." href="youtube..."><img ...></a>; the popup itself is the
   theme's magnificPopup on #yt--popper / .yt--popper (scripts.js) or the Breitling handler.
   The thumbnails are clean photos; the play control is drawn here, never baked into the image.
   It is a "Play video" pill in the lower-left corner rather than a centred disc: a centred disc
   covered the BREITLING wordmark, faces and rings on these photos. */

html body a.pmfj-video {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    vertical-align: top;
    line-height: 0;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(17, 17, 26, 0.06), 0 8px 24px rgba(17, 17, 26, 0.10);
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}
/* The theme fades every hovered link to 65%; the picture stays at full strength. */
html body a.pmfj-video:hover,
html body a.pmfj-video:focus {
    opacity: 1;
}
/* !important on the box properties only: the theme frames and floats article images with
   page-specific selectors (up to 0,3,1), and inside a video link the frame is the link itself. */
html body a.pmfj-video > img {
    display: block;
    float: none !important;
    max-width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* A soft shade along the foot of the picture so the pill reads on any photo; deeper on hover. */
html body a.pmfj-video::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(17, 17, 20, 0.45), rgba(17, 17, 20, 0) 45%);
    opacity: 0.7;
    transition: opacity 200ms ease;
    pointer-events: none;
}

/* The control: an ink disc with a white triangle, then the words, on a white pill. */
html body a.pmfj-video::after {
    content: "Play video";
    position: absolute;
    z-index: 2;
    left: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 14px 0 42px;
    border-radius: 999px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2328262b'/%3E%3Cpath d='M9.6 7.9v8.2a.6.6 0 0 0 .9.5l6.6-4.1a.6.6 0 0 0 0-1l-6.6-4.1a.6.6 0 0 0-.9.5z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 6px 50% / 26px 26px,
        rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    color: #28262b;
    font-family: Hind, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    html body a.pmfj-video:hover > img {
        transform: scale(1.03);
    }
    html body a.pmfj-video:hover::before {
        opacity: 1;
    }
    html body a.pmfj-video:hover::after {
        background-color: #fff;
        transform: translateY(-2px);
    }
}
html body a.pmfj-video:active::after {
    transform: scale(0.97);
}
html body a.pmfj-video:focus-visible {
    outline: 2px solid #28262b;
    outline-offset: 3px;
}

/* Small thumbnails (the narrow About Us portrait on desktop): just the disc. */
html body a.pmfj-video--trim::after {
    content: "";
    width: 36px;
    padding: 0;
    background-position: 50% 50%;
}

/* In article text the theme floats the picture left; the link takes the float instead. */
html body .inner-content a.pmfj-video {
    float: left;
    margin: 6px 28px 16px 0;
}
@media (max-width: 767px) {
    html body .inner-content a.pmfj-video {
        display: block;
        float: none;
        width: 100%;
        margin: 6px 0 20px;
    }
    html body .inner-content a.pmfj-video > img {
        width: 100%;
    }
    /* Full-width on phones: room for the words again. */
    html body .inner-content a.pmfj-video--trim::after {
        content: "Play video";
        width: auto;
        padding: 0 14px 0 42px;
        background-position: 6px 50%, 0 0;
    }
}

/* About Us: the only copy of that frame has a play mark low in the picture (rows 1032-1192 of
   1254); show it without that strip. */
html body a.pmfj-video--trim > img {
    aspect-ratio: 700 / 1000;
    object-fit: cover;
    object-position: top;
}

@media (prefers-reduced-motion: reduce) {
    html body a.pmfj-video > img,
    html body a.pmfj-video::after {
        transition: none;
    }
    html body a.pmfj-video:hover > img,
    html body a.pmfj-video:hover::after,
    html body a.pmfj-video:active::after {
        transform: none;
    }
}
