/* theglitch.co in behind.theglitch.co's design (its btg-site.css): the night
   palette, Poppins for text and menus, Oswald for headings, 6 px corners.
   Hervin's "light-content" is light text on a dark page, "dark-content" the
   reverse. */
html:root {
    --glitch-ground: #161514;
    --glitch-raised: #1f1e1c;
    --glitch-deep: #0d0d0c;
    --glitch-ink: #e8e4dc;
    --glitch-strong: #f6f3ed;
    --glitch-on-strong: #161514;
    --glitch-line: rgba(232, 228, 220, 0.13);
    --glitch-muted: rgba(232, 228, 220, 0.62);
    --glitch-radius: 6px;
}

/* The pointer is the browser's (Hervin hides it for its cursor ball) */
html, body, a, button {
    cursor: auto !important;
}
a, button, [role="button"], .swiper-button-prev, .swiper-button-next {
    cursor: pointer !important;
}

/* The header and footer show at once rather than after every image */
#header-container,
.header-middle,
#footer-container {
    opacity: 1 !important;
}

/* Hervin's ground in the shop's warm graphite. Its script writes main's
   colour inline per page (#141414 on dark ones), so only dark pages change;
   its hero caption and image boxes are .light-content too, so never by that
   class alone. */
body,
main:has(#page-content.light-content) {
    background-color: var(--glitch-ground) !important;
}

/* The menu: Poppins capitals, the current page underlined, as on the shop */
@media all and (min-width: 1025px) {
    .classic-menu .flexnav > li > a {
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
    .classic-menu .flexnav > li.current-menu-item > a,
    .classic-menu .flexnav > li[class*="current-menu-"] > a,
    .classic-menu .flexnav > li.current_page_item > a {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 0.45em;
    }
    /* No roll-over swap of the label: it reads as flicker */
    .classic-menu .flexnav li a span::before {
        content: none;
    }
    .classic-menu .flexnav li:hover a span {
        transform: none;
    }
    .classic-menu .flexnav:hover li a {
        color: inherit;
    }
}

/* The header, once the page has scrolled: a graphite fade behind it
   (glitch-site.js) */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    z-index: -1;
    /* solid past the logo's foot (about 135 px), then gone */
    background: linear-gradient(to bottom, var(--glitch-ground) 0%, var(--glitch-ground) 75%, rgba(22, 21, 20, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
body.glitch-scrolled header::before {
    opacity: 1;
}
@media (max-width: 1024px) {
    header::before {
        height: 120px;
    }
}

/* Text to read on dark pages: Hervin's is 14 px, light (300) and #999 */
#page-content.light-content #main-page-content p:not([class*="font-size"]):not([style*="font-size"]),
#page-content.light-content #main-page-content li {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(232, 228, 220, 0.8);
}
#page-content.light-content #main-page-content p strong,
#page-content.light-content #main-page-content p b {
    color: var(--glitch-strong);
    font-weight: 600;
}
#main-page-content h6 a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* Images start as a 48 px copy, blurred, until the full one has loaded
   (glitch-site.js) */
[data-glitch-full] {
    filter: blur(16px);
}
[data-glitch-full].glitch-sharp {
    filter: none;
    transition: filter 0.6s ease;
}

/* Behind the Glitch: the menu's one button, and beneath it what is there */
.glitch-btg-what {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--glitch-muted);
}
@media all and (min-width: 1025px) {
    .flexnav > li.glitch-btg-item > a {
        position: relative;
        overflow: visible;
        border: 1px solid currentColor;
        border-radius: var(--glitch-radius);
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .flexnav > li.glitch-btg-item > a:hover {
        background: var(--glitch-strong);
        color: var(--glitch-on-strong);
    }
    /* Hervin's .classic-menu .flexnav li a span is a block, relative */
    .classic-menu .flexnav > li.glitch-btg-item > a > .glitch-btg-what {
        position: absolute;
        top: calc(100% + 7px);
        left: 0;
        right: 0;
        font-size: 9.5px;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
    }
}

/* The phone menu: Hervin draws it as faint outlined capitals until touched;
   filled here, Behind the Glitch underlined with what is there beneath */
@media all and (max-width: 1024px) {
    .flexnav li a {
        color: var(--glitch-ink) !important;
        -webkit-text-stroke: 0 !important;
    }
    .flexnav > li.glitch-btg-item > a {
        color: var(--glitch-strong) !important;
        height: auto !important;
    }
    .glitch-btg-name {
        text-decoration: underline;
        text-decoration-thickness: 3px;
        text-underline-offset: 0.18em;
    }
    .glitch-btg-what {
        display: block;
        margin: 4px 0 8px;
        font-size: 12px;
        line-height: 1.4;
        text-decoration: none;
        -webkit-text-fill-color: var(--glitch-muted);
    }
}

/* The band above the footer */
.glitch-btg {
    clear: both;
    padding: 64px 24px;
    background: var(--glitch-deep);
    color: var(--glitch-ink);
    font-family: 'Poppins', sans-serif;
}
.glitch-btg-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 48px;
    align-items: end;
}
.glitch-btg-kicker {
    grid-column: 1 / -1;
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--glitch-strong);
}
.glitch-btg-text {
    margin: 0;
    max-width: 38em;
    font-size: 17px;
    line-height: 1.6;
}
.glitch-btg-links {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.glitch-btg-links a,
.glitch-btg-go {
    color: var(--glitch-strong);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 0.3em;
}
.glitch-btg-go {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    padding: 14px 24px;
    border-radius: var(--glitch-radius);
    background: var(--glitch-strong);
    color: var(--glitch-on-strong) !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}
.glitch-btg-go:hover {
    background: #d9d4ca;
}
@media (max-width: 700px) {
    .glitch-btg {
        padding: 48px 20px;
    }
    .glitch-btg-inner {
        grid-template-columns: 1fr;
    }
    .glitch-btg-kicker {
        font-size: 32px;
    }
    .glitch-btg-go {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }
}

/* Buttons and fields as on the shop */
.wpcf7 input[type="submit"],
input[type="submit"] {
    border: 0;
    border-radius: var(--glitch-radius);
    background: var(--glitch-strong);
    color: var(--glitch-on-strong);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    border-radius: var(--glitch-radius);
}

:focus-visible {
    outline: 2px solid var(--glitch-strong);
    outline-offset: 2px;
}

/* On a phone, text set right to sit beside a picture reads from the left */
@media (max-width: 767px) {
    #main-page-content .has-text-align-right {
        text-align: left !important;
    }
}

/* Contact ---------------------------------------------------------------------- */

.glitch-contact {
    display: grid;
    gap: 28px;
    font-family: 'Poppins', sans-serif;
}
.glitch-contact-label {
    margin: 0 0 6px;
    font-size: 12px !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--glitch-muted) !important;
}
.glitch-contact-value,
.glitch-contact address {
    margin: 0;
    font-size: 20px !important;
    font-style: normal;
    line-height: 1.5 !important;
    color: var(--glitch-strong) !important;
}
.glitch-contact-value a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}
.glitch-map {
    margin: 0;
}
.glitch-map svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--glitch-radius);
}
.glitch-map > a {
    display: block;
}
.glitch-map-credit {
    margin-left: auto;
    font-size: 11px;
    color: var(--glitch-muted);
}
.glitch-map figcaption {
    padding: 0;
    background: none;
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 14px;
}
.glitch-map figcaption a,
.glitch-contact-btg a {
    color: var(--glitch-strong);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}
.glitch-contact-btg {
    margin: 0;
    font-size: 15px !important;
    color: var(--glitch-muted) !important;
}

/* The form: boxed fields as on the shop, name and email side by side */
.wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 20px;
}
.wpcf7-form > p {
    margin: 0;
    grid-column: 1 / -1;
}
.wpcf7-form > p:has([data-name="your-name"]),
.wpcf7-form > p:has([data-name="your-email"]) {
    grid-column: auto;
}
.wpcf7-form label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--glitch-muted);
}
.wpcf7-form label br {
    display: none;
}
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid var(--glitch-line) !important;
    border-radius: var(--glitch-radius);
    background: var(--glitch-raised) !important;
    color: var(--glitch-ink) !important;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
}
.wpcf7 textarea {
    height: 180px;
    resize: vertical;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: var(--glitch-strong) !important;
    outline: none;
}
.wpcf7 input[type="submit"] {
    padding: 15px 34px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
@media (max-width: 700px) {
    .wpcf7-form {
        grid-template-columns: 1fr;
    }
    .wpcf7-form > p:has([data-name="your-name"]),
    .wpcf7-form > p:has([data-name="your-email"]) {
        grid-column: 1 / -1;
    }
}

/* Selected Works ------------------------------------------------------------------ */

/* Hervin's filter overlay belongs to its own grid */
.page-template-portfolio-page #filters-overlay,
.page-template-portfolio-page #filters-wrapper {
    display: none !important;
}
.glitch-works-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 40px;
}
.glitch-works-filter button {
    padding: 9px 16px;
    border: 1px solid var(--glitch-line);
    border-radius: 999px;
    background: transparent;
    color: var(--glitch-ink);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    letter-spacing: 0.02em;
    cursor: pointer;
}
.glitch-works-filter button:hover {
    border-color: var(--glitch-muted);
}
.glitch-works-filter button[aria-pressed="true"] {
    border-color: var(--glitch-strong);
    background: var(--glitch-strong);
    color: var(--glitch-on-strong);
}
.glitch-works {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.glitch-work[hidden] {
    display: none;
}
.glitch-work a {
    display: block;
    color: inherit;
    text-decoration: none;
}
.glitch-work-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--glitch-radius);
    background: var(--glitch-raised);
}
/* The blurred stand-in, under the picture until it has loaded */
.glitch-work-media::before {
    content: "";
    position: absolute;
    inset: -24px;
    background: var(--glitch-lqip) center / cover no-repeat;
    filter: blur(18px);
}
.glitch-work-media img,
.glitch-work-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.4s ease;
}
.glitch-work-media img {
    opacity: 0;
}
.glitch-work-media img.is-loaded {
    opacity: 1;
}
.glitch-work-media video {
    opacity: 0;
}
.glitch-work.is-playing video {
    opacity: 1;
}
.glitch-work a:hover .glitch-work-media img,
.glitch-work a:hover .glitch-work-media video {
    transform: scale(1.03);
}
.glitch-work-text {
    margin-top: 18px;
}
.glitch-work-title {
    margin: 0;
    font-family: 'Oswald', sans-serif !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    text-transform: uppercase;
    color: var(--glitch-strong) !important;
}
.glitch-work-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0 0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--glitch-muted) !important;
}
.glitch-work-meta span {
    flex: none;
}
.glitch-work a:hover .glitch-work-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}
@media (max-width: 900px) {
    .glitch-works {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .glitch-work-title {
        font-size: 24px !important;
    }
}

/* VFX on a phone ----------------------------------------------------------------- */

/* The page hides its client logos and one clip below 480 px (mobile-hide);
   here each service reads heading, text, then its picture or clip, the logos
   a still grid, the gaps a phone's */
@media (max-width: 767px) {
    .page-id-1318 #main-page-content .text-align-right,
    .page-id-1318 #main-page-content [style*="text-align:right"] {
        text-align: left !important;
    }
    .page-id-1318 #main-page-content .wp-block-columns > .wp-block-column:has(> .wp-block-video, > .wp-block-image) {
        order: 2;
    }
    .page-id-1318 #main-page-content .wp-block-video.mobile-hide {
        display: block !important;
    }
    .page-id-1318 #main-page-content .wp-block-column > .wp-block-spacer {
        display: none;
    }
    .page-id-1318 #main-page-content > .wp-block-spacer {
        height: 56px !important;
    }
    .page-id-1318 #main-page-content video {
        width: 100%;
        height: auto;
        border-radius: var(--glitch-radius);
    }
    .page-id-1318 .wp-block-lcb-logo-carousel.mobile-hide {
        display: block !important;
        margin: 8px 0 0;
    }
    .page-id-1318 .wp-block-lcb-logo-carousel .alcb__carousel_container {
        display: block !important;
        width: auto !important;
        transform: none !important;
        animation: none !important;
    }
    /* Rows of three, the last row centred */
    .page-id-1318 .wp-block-lcb-logo-carousel .alcb__carousel_container > div {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 22px 0;
        width: auto !important;
        transform: none !important;
        animation: none !important;
    }
    .page-id-1318 .wp-block-lcb-logo-carousel .alcb__logo-item {
        flex: 0 0 33.333%;
        width: auto !important;
        margin: 0 !important;
    }
    .page-id-1318 .wp-block-lcb-logo-carousel img {
        max-width: 100%;
        max-height: 34px;
        width: auto !important;
        margin: 0 auto;
        display: block;
    }
}

/* Read by search engines and screen readers, not shown (the showcase's h1) */
.glitch-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    margin: 0;
}

/* Hervin's page title, now the page's h1, keeps the div's spacing */
h1.hero-title {
    margin: 0;
}

/* VFX's section titles were h1 blocks; as h2 they keep the h1's size */
h2.wp-block-hervin-gutenberg-title {
    font-size: 48px;
    line-height: 60px;
}
@media only screen and (max-width: 1024px) {
    h2.wp-block-hervin-gutenberg-title {
        font-size: 40px;
        line-height: 50px;
    }
}


/* Links in a page's text: Hervin colours them black, unseen on a dark page */
#page-content.light-content #main-page-content p a {
    color: var(--glitch-strong);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

/* Hervin's Next Project block reaches up over the end of a project's text,
   which could not be clicked or selected: only its link takes the pointer */
#project-nav,
#project-nav .next-project-wrap,
#project-nav .next-project-title,
#project-nav .next-project-title .inner {
    pointer-events: none;
}
#project-nav a {
    pointer-events: auto;
}

/* Gloup Soup's animated cover, fitted to the screen like its still: Hervin
   draws a hero video at its own size (1920 wide), so a 1440 screen lost the
   queue of posters at the right. Below 1024 Hervin shows the still instead. */
.hero-video-wrapper video.bgvid:has(source[src*="gloup-soup-carousel"]) {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    transform: none;
    object-fit: cover;
}
/* A phone held upright plays a hero video's phone version (glitch-site/phone/),
   fitted the same way and kept to its top, as the phone pictures are */
@media (max-width: 767px) and (orientation: portrait) {
    .hero-video-wrapper video.bgvid:has(source[media]) {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        transform: none;
        object-fit: cover;
        object-position: center top;
    }
}

/* A row of films to watch, scrolled sideways (Gloup Soup's published films):
   a swipe on a phone, arrows on a mouse, shuffled on each visit (site.js).
   YouTube's play in a pop-up (.glitch-player), Instagram's open there. */
.glitch-reel {
    margin: 32px 0 0;
}
.glitch-reel-track {
    display: flex;
    gap: 24px;
    margin: 0 !important;
    padding: 0 0 14px !important;
    list-style: none !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--glitch-line) transparent;
}
.glitch-reel-item {
    flex: 0 0 clamp(240px, 27vw, 360px);
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-align: start;
}
.glitch-reel-item::before {
    content: none !important;
}
.glitch-reel-play {
    display: block;
    color: inherit;
    text-decoration: none !important;
}
.glitch-reel-media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--glitch-radius);
    background: #000;
}
.glitch-reel-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.glitch-reel-title {
    display: block;
    margin-top: 14px;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--glitch-strong);
}
.glitch-reel-meta {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--glitch-muted);
}
/* A film with no still yet: its title on its volume's colour */
.glitch-reel-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    background: var(--glitch-accent);
    text-align: center;
    transition: transform 0.6s ease;
}
.glitch-reel-card span {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--glitch-strong);
}
.glitch-reel-card small {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(246, 243, 237, 0.7);
}
/* Plays here: a triangle in a disc, bottom left */
.glitch-reel-glyph {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
}
.glitch-reel-glyph::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 11px;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent var(--glitch-strong);
}
.glitch-reel-item a:hover img,
.glitch-reel-item a:hover .glitch-reel-card {
    transform: scale(1.03);
}
.glitch-reel-item a:hover .glitch-reel-glyph {
    background: var(--glitch-strong);
}
.glitch-reel-item a:hover .glitch-reel-glyph::after {
    border-left-color: var(--glitch-on-strong);
}
.glitch-reel-bts {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border: 1px solid var(--glitch-line);
    border-radius: var(--glitch-radius);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--glitch-ink) !important;
    text-decoration: none !important;
}
.glitch-reel-bts:hover {
    border-color: var(--glitch-strong);
}
.glitch-reel-play:hover .glitch-reel-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}
.glitch-reel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}
.glitch-reel-nav button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--glitch-line);
    border-radius: var(--glitch-radius);
    background: transparent;
    color: var(--glitch-strong);
    font-size: 18px;
    line-height: 1;
}
.glitch-reel-nav button:hover:not(:disabled) {
    border-color: var(--glitch-strong);
}
.glitch-reel-nav button:disabled {
    opacity: 0.3;
    cursor: default !important;
}
@media (hover: none) {
    .glitch-reel-nav {
        display: none;
    }
}

/* A list of names in columns (Gloup Soup's directors) */
.glitch-names {
    columns: 3;
    column-gap: 40px;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.glitch-names li {
    margin: 0 0 4px !important;
    padding: 0 !important;
    break-inside: avoid;
    font-size: 16px;
    line-height: 1.6;
    color: var(--glitch-ink);
}
.glitch-names li::before {
    content: none !important;
}
@media (max-width: 767px) {
    .glitch-names {
        columns: 2;
        column-gap: 24px;
    }
}

/* A film playing on the page: Gloup Soup's row opens YouTube's player here
   (site.js) rather than leaving */
html:has(.glitch-player[open]) {
    overflow: hidden;
}
.glitch-player {
    width: min(1100px, 92vw);
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: var(--glitch-radius);
    background: #000;
    overflow: visible;
}
.glitch-player::backdrop {
    background: rgba(0, 0, 0, 0.88);
}
.glitch-player-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--glitch-radius);
}
.glitch-player-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.glitch-player-close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(246, 243, 237, 0.4);
    border-radius: var(--glitch-radius);
    background: transparent;
    color: var(--glitch-strong);
    font-size: 26px;
    line-height: 1;
}
.glitch-player-close:hover {
    border-color: var(--glitch-strong);
}

/* Numbers set large, four across (two on a phone) */
.glitch-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0 !important;
    padding: 36px 0 !important;
    list-style: none !important;
    border-top: 1px solid var(--glitch-line);
    border-bottom: 1px solid var(--glitch-line);
}
.glitch-stats li {
    margin: 0 !important;
    padding: 0 !important;
}
.glitch-stats li::before {
    content: none !important;
}
.glitch-stats strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 500;
    line-height: 1;
    color: var(--glitch-strong);
}
.glitch-stats span {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--glitch-muted);
}
@media (max-width: 767px) {
    .glitch-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 32px;
    }
}
