/* Sound toggle, bottom-right of a video frame. Sizes off the client's
   reference at a 1920px viewport: 14px tracked caps, 36px from the right
   edge, 80px above the bottom. Ink follows the frame (tone-watch.js). */

.video-mute {
    position: absolute;
    inset-block-end: max(20px, 4.1vw);
    /* Physical corner, independent of document direction. */
    right: max(16px, 1.9vw);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: max(8px, 0.55vw);
    min-height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--chrome-ink-light);
    text-shadow: var(--chrome-shadow-dark);
    font-family: var(--font-family);
    font-size: max(11px, 0.71vw);
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    direction: ltr;
    transition: opacity var(--dur-fast) var(--ease-out), color var(--dur-base) var(--ease-out);
}

[dir="rtl"] .video-mute { direction: rtl; }

.video-mute[data-bg="light"] {
    color: var(--chrome-ink-dark);
    text-shadow: var(--chrome-shadow-light);
}

.video-mute:hover,
.video-mute:focus-visible {
    outline: none;
    opacity: 0.7;
}

.video-mute__text[hidden] { display: none; }

.video-mute__icon {
    display: block;
    width: 1.45em;
    height: 1.15em;
    filter: drop-shadow(var(--chrome-shadow-dark));
}

.video-mute[data-bg="light"] .video-mute__icon { filter: none; }

.video-mute[aria-pressed="true"] .video-mute__x,
.video-mute[aria-pressed="false"] .video-mute__wave { display: none; }

/* Tight tiles and film-reel clips. */
.landing-film__clip-frame .video-mute,
.gallery-grid__video .video-mute {
    inset-block-end: 10px;
    right: 10px;
    font-size: 10px;
}
