/* Virtual gallery intro page (pages/virtual-gallery/intro) */
:root {
    --PRIMARY_GOLD: #eaa500;
}

* {
    box-sizing: border-box;
}

::selection {
    background-color: #344F40FF;
    color: white;
}

/* min-height only (on .vg-intro): a fixed height would push a card taller
   than the screen out at the top, where it can't be scrolled to */
html,
body {
    margin: 0;
}

.vg-intro {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #000 var(--vg-poster) center / cover no-repeat;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

.vg-intro-video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: .7;
    background: #000;
}

.vg-intro-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 760px;
    padding: 2.5rem 3rem 2rem;
    border-radius: 1rem;
    background-color: rgba(3, 7, 7, .55);
    text-align: center;
}

/* The navigation's dark logo, turned white for the dark panel */
/* The 3 logos are balanced by visible size, not by height: HIM is a solid,
   wide wordmark, the HM and MH emblems are thin line art, and the MH file has
   ~14% empty margin on each side. All three scale from --vg-logo. */
.vg-intro-panel {
    --vg-logo: 76px;
}

/* The navigation's dark logo, turned white for the dark panel */
.vg-intro-him-logo {
    height: calc(var(--vg-logo) * .53);
    width: auto;
    /* extra room on top of the panel's gap, so the logo doesn't crowd the title */
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.vg-intro-logos {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-top: .25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.vg-intro-logos img {
    height: var(--vg-logo);
    width: auto;
}

.vg-intro-logos .vg-intro-mh-logo {
    height: calc(var(--vg-logo) * 1.28);
    margin: calc(var(--vg-logo) * -.14) 0;
}

.vg-intro-title {
    margin: 0;
    color: var(--PRIMARY_GOLD);
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.vg-intro-text {
    font-size: .95rem;
    line-height: 1.55;
}

.vg-intro-text p {
    margin: 0 0 .6rem;
}

.vg-intro-text p:last-child {
    margin-bottom: 0;
}

.vg-intro-enter {
    display: inline-block;
    margin-top: .5rem;
    padding: .8rem 2rem;
    border-radius: 6px;
    background-color: var(--PRIMARY_GOLD);
    color: #000;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.6rem;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease;
}

.vg-intro-enter:hover,
.vg-intro-enter:focus-visible {
    background-color: #ffbf26;
}

.vg-intro-enter:focus-visible,
.vg-intro-back:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.vg-intro-back {
    color: rgba(255, 255, 255, .8);
    font-size: .95rem;
}

.vg-intro-back:hover {
    color: #fff;
}

.vg-intro-feedback {
    margin: .25rem 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: .85rem;
    line-height: 1.5;
}

.vg-intro-feedback a {
    color: var(--PRIMARY_GOLD);
    font-weight: 600;
    white-space: nowrap;
}

.vg-intro-feedback a:hover,
.vg-intro-feedback a:focus-visible {
    color: #ffbf26;
}

@media (max-width: 768px) {
    .vg-intro-panel {
        padding: 2.75rem 1.25rem 2.25rem;
        background-color: rgba(3, 7, 7, .45);
    }

    .vg-intro-panel {
        --vg-logo: 64px;
    }

    .vg-intro-title {
        font-size: 44px;
    }
}

/* Short laptop screens: a little more compact, so the card fits without scrolling */
@media (min-width: 769px) and (max-height: 800px) {
    .vg-intro-panel {
        gap: .7rem;
        padding: 1.5rem 3rem 1.25rem;
    }

    .vg-intro-panel {
        --vg-logo: 60px;
    }

    .vg-intro-him-logo {
        margin-bottom: .6rem;
    }

    .vg-intro-title {
        font-size: 42px;
    }

    .vg-intro-text {
        font-size: .9rem;
    }

    .vg-intro-enter {
        margin-top: .25rem;
        padding: .65rem 1.75rem;
        font-size: 1.45rem;
    }
}

@media (max-width: 360px) {
    .vg-intro-enter {
        padding: .7rem 1.25rem;
        font-size: 1.35rem;
    }
}

/* The video plays over black, the poster is only the fallback */
.vg-intro.has-video {
    background-image: none;
}

@media (prefers-reduced-motion: reduce) {
    .vg-intro-video {
        display: none;
    }

    .vg-intro.has-video {
        background-image: var(--vg-poster);
    }
}
