/*
Theme Name: Virtual Exhibit
Theme URI: https://www.liberation75.org/
Author: Liberation75
Description: A custom one-page WordPress theme for the To Hope and Back Virtual Exhibit.
Version: 1.1.1
Text Domain: virtual-exhibit
*/

/* ==========================================================
   LOCAL FONTS
   ========================================================== */

@font-face {
    font-family: 'Proxima Nova';
    src: url('assets/fonts/proxima-n-w01-reg.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica W01';
    src: url('assets/fonts/helvetica-w01-roman.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir LT W01';
    src: url('assets/fonts/avenir-lt-w01_35-light1475496.woff2') format('woff2');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir LT W01';
    src: url('assets/fonts/avenir-lt-w01_85-heavy1475544.woff2') format('woff2');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

/* ==========================================================
   BASE
   ========================================================== */

:root {
    --ve-navy: #013558;
    --ve-body-blue: #19157c;
    --ve-red: #b4453b;
    --ve-teal: #68a2a1;
    --ve-gold: #dea604;
    --ve-grey: #787878;
    --ve-dark-grey: #414141;
    --ve-white: #ffffff;
    --ve-black: #000000;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--ve-white);
    color: var(--ve-body-blue);
    font-family: 'Avenir LT W01', 'Proxima Nova', 'Helvetica W01', Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.ve-modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

.container {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

.ve-homepage {
    overflow: clip;
}

.ve-richtext > :first-child {
    margin-top: 0;
}

.ve-richtext > :last-child {
    margin-bottom: 0;
}

.ve-richtext p {
    margin: 0 0 1.35em;
}

/* ==========================================================
   INTRO / HERO
   ========================================================== */

.ve-hero {
    min-height: 880px;
    padding: clamp(5rem, 8vw, 8.5rem) 1.5rem 1.4rem;
    background-color: #d5d3c7;
    background-image: var(--ve-hero-background, none);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ve-hero__panel {
    width: min(100%, 1220px);
    margin: 0 auto;
    padding: clamp(2.4rem, 4vw, 4.5rem) clamp(1.8rem, 4.2vw, 4.4rem) clamp(2.3rem, 4vw, 3.5rem);
    background: #fff;
    text-align: center;
}

.ve-hero__title,
.ve-reflection__title {
    margin: 0;
    color: var(--ve-navy);
    font-family: 'Avenir LT W01', 'Helvetica W01', Arial, sans-serif;
    font-size: clamp(2.2rem, 4vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
}

.ve-hero__subtitle,
.ve-reflection__subtitle {
    margin-top: .1em;
    color: var(--ve-navy);
    font-family: 'Avenir LT W01', 'Helvetica W01', Arial, sans-serif;
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: .28em;
    line-height: 1.15;
}

.ve-hero__copy,
.ve-reflection__copy {
    margin: clamp(1.7rem, 3vw, 2.8rem) auto 0;
    color: var(--ve-body-blue);
    font-size: clamp(1.05rem, 1.55vw, 1.62rem);
    line-height: 1.42;
}

.ve-hero__thanks {
    margin: clamp(1.7rem, 2.5vw, 2.4rem) auto 0;
    color: var(--ve-teal);
    font-size: clamp(1.02rem, 1.45vw, 1.5rem);
    line-height: 1.38;
}

.ve-hero__resource-wrap {
    width: min(100%, 1220px);
    margin: .9rem auto 0;
    display: flex;
    justify-content: flex-end;
}

.ve-jump-button {
    width: min(100%, 475px);
    padding: .8rem 2rem;
    border-radius: 999px;
    background: #8f8f8f;
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .35em;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.ve-jump-button:hover,
.ve-jump-button:focus-visible {
    background: #7e7e7e;
}

.ve-jump-button:active {
    transform: scale(.99);
}

/* ==========================================================
   ARTIFACT THUMBNAIL STRIP
   ========================================================== */

.ve-artifact-nav {
    border-top: 14px solid var(--ve-teal);
    border-bottom: 14px solid var(--ve-teal);
    background: #fff;
}

.ve-artifact-nav__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ve-artifact-nav__item {
    position: relative;
    min-height: 315px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    background: #fff;
    text-decoration: none;
    isolation: isolate;
}

.ve-artifact-nav__item:nth-child(4n) {
    border-right: 0;
}

.ve-artifact-nav__item:nth-last-child(-n + 4) {
    border-bottom: 0;
}

.ve-artifact-nav__item::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

.ve-artifact-nav__item:hover::after {
    opacity: .05;
}

.ve-artifact-nav__item:active::after,
.ve-artifact-nav__item.is-selected::after {
    opacity: .14;
}

.ve-artifact-nav__item img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 280px;
    object-fit: contain;
    transition: filter .16s ease, transform .16s ease;
}

.ve-artifact-nav__item:active img,
.ve-artifact-nav__item.is-selected img {
    filter: brightness(.88);
}

.ve-artifact-nav__missing {
    color: var(--ve-dark-grey);
    text-align: center;
}

/* ==========================================================
   EXHIBITS
   ========================================================== */

.ve-exhibit {
    scroll-margin-top: 1rem;
    background: #fff;
}

.ve-exhibit__inner {
    width: min(100%, 1460px);
    min-height: 650px;
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 7rem);
}

.ve-exhibit__visual,
.ve-exhibit__content {
    min-width: 0;
}

.ve-exhibit__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ve-exhibit__visual img {
    width: min(100%, 650px);
    max-height: 560px;
    object-fit: contain;
}

.ve-exhibit--reverse .ve-exhibit__visual {
    grid-column: 2;
    grid-row: 1;
}

.ve-exhibit--reverse .ve-exhibit__content {
    grid-column: 1;
    grid-row: 1;
}

.ve-exhibit__content {
    text-align: center;
}

.ve-exhibit__title {
    margin: 0 0 clamp(1rem, 2vw, 1.8rem);
    color: var(--ve-red);
    font-family: 'Avenir LT W01', 'Helvetica W01', Arial, sans-serif;
    font-size: clamp(2rem, 3.2vw, 3.5rem);
    font-weight: 800;
    letter-spacing: .27em;
    line-height: 1.18;
    text-transform: uppercase;
}

.ve-exhibit__body {
    color: var(--ve-body-blue);
    font-size: clamp(1.08rem, 1.6vw, 1.62rem);
    line-height: 1.5;
}

.ve-text-trigger {
    appearance: none;
    display: block;
    margin: clamp(1.35rem, 2.3vw, 2rem) auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ve-teal);
    cursor: pointer;
    font-family: 'Avenir LT W01', 'Helvetica W01', Arial, sans-serif;
    font-size: clamp(1.28rem, 1.8vw, 1.7rem);
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

.ve-text-trigger:hover,
.ve-text-trigger:focus-visible {
    text-decoration: underline;
    text-underline-offset: .18em;
}

.ve-quote__content {
    margin: 1.2rem auto 0;
    color: var(--ve-body-blue);
    font-size: clamp(1.06rem, 1.5vw, 1.5rem);
    font-style: italic;
    line-height: 1.45;
}

.ve-quote__content[hidden] {
    display: none;
}

.ve-divider {
    width: 100%;
    height: 14px;
    background: var(--ve-teal);
}

/* ==========================================================
   QUESTIONS LIGHTBOX
   ========================================================== */

.ve-modal[hidden] {
    display: none;
}

.ve-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.ve-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .48);
}

.ve-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 1120px);
    min-height: 430px;
    padding: clamp(2rem, 4vw, 3.2rem) clamp(1.6rem, 4vw, 3.4rem) 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: #39566a;
    isolation: isolate;
}

.ve-modal__panel::before,
.ve-modal__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
}

.ve-modal__panel::before {
    background-image: var(--ve-question-background, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ve-modal__panel::after {
    z-index: -1;
    background: rgba(0, 0, 0, .50);
}

.ve-modal__content {
    width: min(100%, 980px);
    margin: auto;
    color: #fff;
    font-size: clamp(1rem, 1.45vw, 1.4rem);
    line-height: 1.45;
}

.ve-modal__content h1,
.ve-modal__content h2,
.ve-modal__content h3,
.ve-modal__content h4 {
    margin: 0 0 1rem;
    color: #fff;
    font-family: 'Avenir LT W01', 'Helvetica W01', Arial, sans-serif;
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.ve-modal__content ol,
.ve-modal__content ul {
    width: min(100%, 850px);
    margin: 1rem auto;
    padding-left: 2rem;
}

.ve-modal__close {
    width: 170px;
    margin: 1.4rem auto 0;
    padding: .55rem 1rem;
    border: 1px solid rgba(255, 255, 255, .65);
    background: rgba(70, 70, 70, .85);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 800;
}

.ve-modal__close:hover,
.ve-modal__close:focus-visible {
    background: rgba(45, 45, 45, .95);
}

/* ==========================================================
   TALIA'S REFLECTION
   ========================================================== */

.ve-reflection {
    padding: clamp(4rem, 7vw, 7rem) 1.5rem clamp(3rem, 5vw, 5rem);
    background-color: #d5d3c7;
    background-image: var(--ve-reflection-background, none);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

.ve-reflection__panel {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: clamp(2.2rem, 4vw, 4rem) clamp(1.8rem, 4vw, 4rem);
    background: #fff;
    text-align: center;
}

.ve-reflection__title {
    font-size: clamp(2rem, 3.4vw, 3.7rem);
}

.ve-reflection__subtitle {
    margin-top: .25em;
    color: var(--ve-teal);
    font-size: clamp(2rem, 3.6vw, 3.7rem);
}

.ve-reflection__portrait {
    margin: clamp(1.8rem, 3vw, 2.8rem) auto 0;
}

.ve-reflection__portrait img {
    width: min(100%, 250px);
    max-height: 340px;
    object-fit: cover;
}

.ve-reflection__copy {
    font-size: clamp(1.03rem, 1.45vw, 1.5rem);
    line-height: 1.42;
}

/* ==========================================================
   TEACHER RESOURCES
   ========================================================== */

.ve-resources {
    scroll-margin-top: 1rem;
    padding: clamp(3rem, 5vw, 5rem) 1.5rem clamp(3.5rem, 6vw, 5.5rem);
    background: #fff;
}

.ve-resources__inner {
    width: min(100%, 980px);
    margin: 0 auto;
    text-align: center;
}

.ve-resources h2 {
    margin: 0 0 1.5rem;
    color: var(--ve-dark-grey);
    font-family: 'Avenir LT W01', 'Helvetica W01', Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 800;
}

.ve-resources__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem 2rem;
}

.ve-resources__grid a {
    min-height: 92px;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ve-teal);
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 300;
    letter-spacing: .28em;
    line-height: 1.3;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease;
}

.ve-resources__grid a:hover,
.ve-resources__grid a:focus-visible {
    filter: brightness(.92);
}

.ve-resources__grid a:active {
    transform: scale(.99);
}

/* ==========================================================
   SUPPLIED FOOTER TYPOGRAPHY
   ========================================================== */

.site-footer {
    font-family: 'Avenir LT W01', 'Proxima Nova', 'Helvetica W01', Arial, sans-serif;
    font-weight: 300;
}

.site-footer .footer-button,
.site-footer .social-bar {
    font-family: inherit;
}



/* ==========================================================
   DESKTOP PROPORTIONS
   Keep the mobile layout unchanged while matching the narrower
   desktop composition of the reference exhibit.
   ========================================================== */

@media (min-width: 901px) {
    .ve-hero {
        padding-top: 6rem;
    }

    .ve-hero__panel {
        width: min(calc(100% - 3rem), 920px);
        padding: 2rem 2rem 1.8rem;
    }

    .ve-hero__title {
        font-size: 3.25rem;
    }

    .ve-hero__subtitle {
        font-size: 3.05rem;
        letter-spacing: .27em;
    }

    .ve-hero__copy {
        width: min(100%, 850px);
        font-size: 1.30rem;
        line-height: 1.42;
    }

    .ve-hero__thanks {
        width: min(100%, 850px);
        font-size: 1.27rem;
        line-height: 1.40;
    }

    .ve-hero__resource-wrap {
        width: min(calc(100% - 3rem), 920px);
    }

    .ve-jump-button {
        width: 375px;
    }

    .ve-exhibit__inner {
        width: min(calc(100% - 3rem), 1200px);
        min-height: 610px;
        padding: 4.75rem 1rem;
        gap: 4rem;
    }

    .ve-exhibit__visual img {
        width: min(100%, 540px);
        max-height: 500px;
    }

    .ve-exhibit__title {
        font-size: 2.55rem;
    }

    .ve-exhibit__body {
        font-size: 1.32rem;
        line-height: 1.52;
    }

    .ve-text-trigger {
        font-size: 1.48rem;
    }

    .ve-quote__content {
        font-size: 1.25rem;
    }

    .ve-reflection__panel {
        width: min(calc(100% - 3rem), 945px);
        padding: 2rem 2.5rem 2.2rem;
    }

    .ve-reflection__title {
        font-size: 3.05rem;
    }

    .ve-reflection__subtitle {
        font-size: 3rem;
    }

    .ve-reflection__copy {
        width: min(100%, 870px);
        margin-left: auto;
        margin-right: auto;
        font-size: 1.27rem;
        line-height: 1.43;
    }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {
    .ve-hero {
        min-height: 0;
        padding: 3.5rem 1rem 1.25rem;
    }

    .ve-hero__resource-wrap {
        justify-content: center;
    }

    .ve-artifact-nav__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ve-artifact-nav__item {
        min-height: 230px;
    }

    .ve-artifact-nav__item:nth-child(4n) {
        border-right: 1px solid #eeeeee;
    }

    .ve-artifact-nav__item:nth-child(2n) {
        border-right: 0;
    }

    .ve-artifact-nav__item:nth-last-child(-n + 4) {
        border-bottom: 1px solid #eeeeee;
    }

    .ve-artifact-nav__item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .ve-artifact-nav__item img {
        height: 205px;
    }

    .ve-exhibit__inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 2.2rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .ve-exhibit__visual,
    .ve-exhibit__content,
    .ve-exhibit--reverse .ve-exhibit__visual,
    .ve-exhibit--reverse .ve-exhibit__content {
        grid-column: 1;
    }

    .ve-exhibit__visual,
    .ve-exhibit--reverse .ve-exhibit__visual {
        grid-row: 1;
    }

    .ve-exhibit__content,
    .ve-exhibit--reverse .ve-exhibit__content {
        grid-row: 2;
    }
}

@media (max-width: 620px) {
    .ve-hero__panel,
    .ve-reflection__panel {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .ve-hero__subtitle,
    .ve-reflection__subtitle {
        letter-spacing: .16em;
    }

    .ve-jump-button {
        letter-spacing: .22em;
    }

    .ve-artifact-nav,
    .ve-divider {
        border-width: 0;
    }

    .ve-artifact-nav {
        border-top: 9px solid var(--ve-teal);
        border-bottom: 9px solid var(--ve-teal);
    }

    .ve-divider {
        height: 9px;
    }

    .ve-artifact-nav__item {
        min-height: 175px;
        padding: .6rem;
    }

    .ve-artifact-nav__item img {
        height: 155px;
    }

    .ve-exhibit__title {
        letter-spacing: .18em;
    }

    .ve-modal {
        padding: .75rem;
    }

    .ve-modal__panel {
        min-height: 390px;
        max-height: calc(100vh - 1.5rem);
        overflow-y: auto;
    }

    .ve-resources__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ve-resources__grid a {
        min-height: 74px;
        letter-spacing: .2em;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* French page: keep supplied labels in sentence case */
.ve-homepage--fr .ve-exhibit__title,
.ve-homepage--fr .ve-text-trigger {
    text-transform: none;
}