/* Site-specific styles moved out of inline HTML for CSP. */
a {
    border-bottom-width: 2px;
    border-bottom-style: dotted;
    font-weight: 500;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 0;
    margin-top: 0.35em;
    padding-bottom: 0.25em;
    line-height: 0;
}

.video-container > video {
    max-width: 50%;
    max-height: 49vh;
}

.video-player {
    position: relative;
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    cursor: pointer;
}

.video-poster,
.video-poster img,
.video-player video {
    display: block;
    width: 100%;
}

.video-poster {
    position: relative;
    z-index: 2;
    transition: opacity 180ms ease;
}

.video-player.is-playing {
    cursor: auto;
}

.video-player.is-playing .video-poster {
    opacity: 0;
    pointer-events: none;
}

.video-player video {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    background: #060709;
}

.feature-video-player {
    aspect-ratio: 2488 / 980;
    display: block;
    width: 100%;
}

.feature-video-player .video-poster {
    position: absolute;
    inset: 0;
}

.feature-video-player .video-poster img {
    height: 100%;
    object-fit: cover;
}

.video-container .video-player {
    flex: 0 0 min(50%, 49vh);
    width: min(50%, 49vh);
    aspect-ratio: 1 / 1;
}

.video-container .video-poster {
    position: absolute;
    inset: 0;
}

.video-container .video-poster img {
    height: 100%;
    object-fit: cover;
}

.video-container .video-player video {
    max-width: none;
    max-height: none;
}

.paper-media-panel .video-player,
.paper-media-panel .video-poster,
.paper-media-panel .video-poster img,
.paper-media-panel .video-player video {
    width: 100%;
    height: 100%;
}

.video-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    appearance: none;
    background-color: rgba(31, 37, 40, 0.72);
    background-image: none;
    box-shadow: 0 0.45em 1.6em rgba(0, 0, 0, 0.35);
    color: transparent !important;
    cursor: pointer;
    font-size: 0;
    overflow: hidden;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.video-play-button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-38%, -50%);
    width: 0;
    height: 0;
    border-top: 0.8rem solid transparent;
    border-bottom: 0.8rem solid transparent;
    border-left: 1.15rem solid #fff;
}

.video-play-button:hover,
.video-play-button:focus-visible {
    transform: translate(-50%, -52%);
    background-color: rgba(31, 37, 40, 0.9);
    background-image: none;
    box-shadow: 0 0.65em 2em rgba(0, 0, 0, 0.45);
}

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

a.button {
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(245, 248, 248, 0.68);
    box-shadow: 0 0.35em 1.15em rgba(0, 0, 0, 0.2);
    color: #384044 !important;
    text-shadow: none;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a.button:hover {
    background: rgba(245, 248, 248, 0.8);
    box-shadow: 0 0.45em 1.35em rgba(0, 0, 0, 0.27);
    transform: translateY(-1px);
}

#playpause {
    border: 1px solid rgba(31, 37, 40, 0.2);
    background: rgba(31, 37, 40, 0.82);
    box-shadow: 0 0.3em 0.9em rgba(31, 37, 40, 0.16);
    color: #fff;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#playpause:hover,
#playpause:focus-visible {
    background: rgba(31, 37, 40, 0.94);
    box-shadow: 0 0.45em 1.25em rgba(31, 37, 40, 0.24);
    transform: translateY(-1px);
}

#playpause {
    margin-left: 0.35em;
    padding: 0.55em 1em;
    border-radius: 8px;
    font: inherit;
    font-size: 1.05em;
    line-height: 1;
    cursor: pointer;
}

.paper-highlight {
    margin: 2.5em 0;
}

.paper-media-grid {
    --sidebar-width: 375px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    width: calc(100vw - var(--sidebar-width));
    margin-left: calc(50% - ((100vw - var(--sidebar-width)) / 2));
    margin-right: calc(50% - ((100vw - var(--sidebar-width)) / 2));
}

.paper-media-panel {
    position: relative;
    aspect-ratio: 1 / 1;
    min-width: 0;
    overflow: hidden;
    background: #060709;
}

.paper-media-panel video,
.paper-media-panel iframe,
.volume-preview-button,
.volume-preview-button picture,
.volume-preview-button img {
    width: 100%;
    height: 100%;
}

.paper-media-panel video,
.paper-media-panel iframe,
.volume-preview-button picture,
.volume-preview-button img {
    display: block;
    object-fit: cover;
}

.volume-launcher {
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.volume-preview-button {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    background: #060709;
    color: #fff;
    overflow: hidden;
}

.volume-preview-button span {
    position: absolute;
    left: 50%;
    top: 75%;
    transform: translate(-50%, -50%);
    padding: 1.275em 2.025em;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0.45em 1.6em rgba(0, 0, 0, 0.35);
    color: #1b1b1b;
    font-weight: 600;
    font-size: 1.575em;
    white-space: nowrap;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.volume-preview-button:hover span,
.volume-preview-button:focus-visible span {
    transform: translate(-50%, -54%);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.65em 2em rgba(0, 0, 0, 0.45);
}

.volume-preview-button img {
    object-fit: contain;
    background: #fff;
}

.volume-frame-wrap {
    display: none;
    position: absolute;
    inset: 0;
    background: #060709;
}

.volume-frame-wrap.is-visible {
    display: block;
}

.volume-frame-wrap iframe {
    border: 0;
}

@media screen and (min-width: 961px) and (max-width: 1880px) {
    .paper-media-grid {
        --sidebar-width: 300px;
    }
}

@media screen and (min-width: 961px) and (max-width: 1320px) {
    .paper-media-grid {
        --sidebar-width: 20vw;
    }
}

@media screen and (max-width: 960px) {
    .paper-media-grid {
        --sidebar-width: 0px;
    }
}

@media screen and (max-width: 736px) {
    .video-container .video-player {
        flex-basis: min(100%, 49vh);
        width: min(100%, 49vh);
    }

    .video-container > video {
        max-width: 100%;
    }

    .paper-media-grid {
        grid-template-columns: 1fr;
    }
}

section#top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 3em !important;
    padding-bottom: 2em !important;
}

section#top .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.abc b {
    display: none;
}

.abc span:nth-child(2) {
    display: none;
}

section#top header h2 {
    text-wrap: balance;
    font-size: 1.6em;
    line-height: 1.4em;
    max-width: 28em;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 736px) {
    section#top header h2 {
        font-size: 1.3em;
        line-height: 1.3em;
    }
}

#main > section.dark a.thesis-link {
    color: inherit;
}

.feature-video {
    width: 100%;
}

#about {
    display: flex;
    flex-direction: column;
}

.about-photo {
    object-fit: cover;
    flex-grow: 1;
    width: 75%;
    max-height: 75vh;
}

.volume-preview-button.is-hidden {
    display: none;
}
