/* ==================================================
   NEREIDUM MUSEUM
   ================================================== */


/* ---------- BASIC ---------- */

*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    min-height:100%;
}

body{
    background:#000;
    color:#fffff0;
    font-family:"Special Elite", monospace;
}

img{
    max-width:100%;
}

a{
    color:#fffff0;
    text-decoration:none;
}

a:hover,
a:focus{
    color:#fff;
}


/* ==================================================
   HALL OF CHARACTERS
   characters/index.html
   ================================================== */

.characters-page{
    min-height:100vh;
}

.characters-hall{
    width:min(1440px, 94vw);
    margin:0 auto;
    padding:60px 20px 90px;
    text-align:center;
}

.characters-hall h1{
    margin:0 0 60px;
    font-size:40px;
    font-weight:normal;
}

.characters-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:60px;
    width:min(1100px,90vw);
    margin:0 auto;
    justify-items:center;
}

.character-link{
    display:flex;
    flex-direction:column;
    align-items:center;

    min-width:0;
}

.character-link img{
    display:block;

    width:180px;
    height:180px;

    object-fit:contain;

    background:#000;
}

.character-link:hover img,
.character-link:focus img{
    transform:scale(1.025);
    opacity:.92;
}

.character-link span{
    margin-top:14px;

    color:#fffff0;
    font-size:18px;
}

.characters-navigation{
    margin-top:90px;
    font-size:15px;
}


/* ==================================================
   INDIVIDUAL CHARACTER HALL
   characters/anna/index.html
   characters/gina/index.html
   ================================================== */

.character-page{
    min-height:100vh;
    overflow-x:hidden;
}

.character-hall{
    width:100%;
    margin:0;
    padding:50px 0 80px;

    text-align:center;
}

.character-hall h1{
    margin:0 0 36px;

    font-size:38px;
    font-weight:normal;
}

.character-portrait{
    display:block;

    width:min(280px, 65vw);
    height:auto;

    margin:0 auto 70px;
}


/* ---------- HORIZONTAL EXHIBITION ---------- */

.exhibits-scroll{
    width:100%;

    overflow-x:auto;
    overflow-y:hidden;

    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    scroll-behavior:smooth;
    scrollbar-width:thin;
    scrollbar-color:#4a4842 #000;
}

.exhibits-row{
    display:flex;
    flex-flow:row nowrap;
    align-items:flex-start;

    width:max-content;
    min-width:100%;

    gap:84px;
    padding:10px 10vw 48px;
}

.exhibit{
    flex:0 0 220px;

    width:220px;
    margin:0;
}

.exhibit-image{
    display:block;

    width:220px;
    height:300px;

    margin:0 auto;

    object-fit:contain;
    cursor:zoom-in;
}

.exhibit-card{
    margin-top:16px;
    text-align:center;
}

.exhibit-card p{
    margin:4px 0;
}

.exhibit-title{
    color:#fffff0;

    font-size:16px;
    line-height:1.35;
}

.exhibit-data{
    color:#aaa89e;

    font-size:12px;
    line-height:1.35;
}

.print-request{
    display:inline-block;

    margin-top:7px;

    color:#88857c;

    font-size:10px;
    line-height:1.4;
}

.print-request:hover,
.print-request:focus{
    color:#c8c3b7;
}

.character-thought{
    width:min(620px, 86vw);

    margin:70px auto;

    font-size:18px;
    line-height:1.5;
}

.character-navigation{
    margin-top:70px;
    font-size:14px;
}


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

.zoomable{
    cursor:zoom-in;
}

.lightbox{
    position:fixed;
    inset:0;
    z-index:1000;

    display:none;
    align-items:center;
    justify-content:center;

    width:100vw;
    height:100vh;
    height:100dvh;

    padding:16px;

    overflow:hidden;

    background:#000;
}

.lightbox.open{
    display:flex;
}

.lightbox-image{
    display:block;

    width:auto;
    height:auto;

    max-width:calc(100vw - 32px);
    max-height:calc(100vh - 32px);
    max-height:calc(100dvh - 32px);

    margin:0;

    object-fit:contain;
}

.lightbox-close{
    position:fixed;
    top:12px;
    right:16px;
    z-index:1001;

    border:0;
    padding:8px 12px;

    background:transparent;
    color:#fffff0;

    font-family:"Special Elite", monospace;
    font-size:30px;
    line-height:1;

    cursor:pointer;
}

.lightbox-open{
    overflow:hidden;
}


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

@media (max-width:1100px){

    .characters-list{
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }

}


@media (max-width:820px){

    .characters-list{
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:40px 26px;
    }

    .character-link img{
        max-width:170px;
    }

    .exhibits-row{
        gap:64px;
        padding-left:8vw;
        padding-right:8vw;
    }

}


@media (max-width:600px){

    .character-hall{
        padding-top:35px;
    }

    .character-hall h1{
        font-size:32px;
    }

    .character-portrait{
        width:58vw;
        margin-bottom:60px;
    }

    .exhibits-row{
        gap:52px;
        padding-left:12vw;
        padding-right:12vw;
    }

    .exhibit{
        flex-basis:180px;
        width:180px;
    }

    .exhibit-image{
        width:180px;
        height:250px;
    }

    .character-thought{
        margin-top:55px;
        margin-bottom:65px;
    }

}


@media (max-width:560px){

    .characters-hall{
        padding:40px 14px 70px;
    }

    .characters-hall h1{
        margin-bottom:45px;
        font-size:34px;
    }

    .characters-list{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:34px 20px;
    }

    .character-link img{
        max-width:none;
    }

    .character-link span{
        font-size:16px;
    }

}
/* ---------- HALL OF CHARACTERS ---------- */

.characters-page{
    min-height:100vh;
}

.characters-hall{
    width:min(1400px, 94vw);
    margin:0 auto;
    padding:60px 20px 90px;
    text-align:center;
}

.characters-hall h1{
    margin:0 0 60px;
    font-size:40px;
    font-weight:normal;
}

.characters-list{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:48px 32px;
    width:100%;
}

.character-link{
    display:flex;
    flex-direction:column;
    align-items:center;
    min-width:0;
}

.character-link img{
    display:block;
    width:100%;
    max-width:180px;
    aspect-ratio:1 / 1;
    object-fit:cover;
}

.character-link span{
    margin-top:14px;
    color:#fffff0;
    font-size:18px;
}

.characters-navigation{
    margin-top:90px;
    font-size:15px;
}

@media (max-width:1100px){

    .characters-list{
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }

}

@media (max-width:820px){

    .characters-list{
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }

}

@media (max-width:560px){

    .characters-list{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:34px 20px;
    }

    .character-link img{
        max-width:none;
    }

}
/* ---------- JOURNAL ---------- */

.journal main{
    width:min(900px,90vw);

    margin:0 auto;

    padding:80px 0 120px;

    text-align:center;
}

.portrait{
    display:block;

    width:min(420px,50vw);

    height:auto;

    margin:40px auto 60px;
}

.journal p,
.journal h1{
    text-align:center;
}

.journal-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000;
    padding: 10px 0;
        text-align: center;

    width: 100%;
    
}


/* ---------- HOME PAGE ---------- */

.home-page main{
    width:100%;
    min-height:100vh;

    padding:40px 20px 100px;

    text-align:center;
}

.home-page .portrait{
    display:block;

    width:min(50vw,520px);

    margin:0 auto;
}

.home-page .portrait{
    width:min(50vw,520px);
    margin:0 auto 12px;
}

.home-page h1{

    margin:0 0 20px;

    font-size:30px;

    font-weight:normal;

}

.home-page h2{
    margin:0 0 20px;
    font-size:24px;
    font-weight:normal;
}

.home-page h2{
    margin:35px 0 20px;
    font-size:28px;
    font-weight:normal;
}

.home-page p{
    text-align:center;
}

.home-page .enter{
    display:block;

    width:max-content;

    margin:40px auto 0;

    color:#fffff0;
}

.home-page .portrait{
    margin-bottom:-25px;
}

.home-page h2{
    margin-top:0;
}

.banner{
    display:block;

    width:min(900px,90vw);

    height:auto;

    margin:40px auto 70px;
}



/* ---------- WELCOME ---------- */

.welcome-page main{
    width:min(900px,90vw);
    margin:0 auto;
    padding:70px 0 100px;
    text-align:center;
}

.welcome-page .banner{
    display:block;
    width:100%;
    height:auto;
    margin:0 auto 60px;
}

.welcome-page p{
    text-align:center;
    margin:18px 0;
}

.welcome-page a{
    display:inline-block;
    margin:18px 0;
}

.welcome-page h2 {
    margin-top: 10px;
    margin-bottom: 12px;
}

.welcome-links p {
    margin: 8px 0;
}
/* ---------- Guestbook ---------- */

.guestbook {
    width: min(760px, 92%);
    margin: 0 auto;
    padding: 5rem 0 6rem;
    text-align: center;
}

.guestbook h1 {
    margin: 0 0 1rem;
    font-size: 3rem;
    font-weight: normal;
}

.guestbook-intro {
    margin: 0 0 3rem;
    color: #999;
    font-size: 1.1rem;
}

.pass-note {
    margin: 0 auto 3rem;
    color: #777;
    font-size: 0.95rem;
    font-style: italic;
}

.guestbook-form {
    width: min(680px, 100%);
    margin: 0 auto 5rem;
    text-align: left;
}

.guestbook-form label {
    display: block;
    margin: 1.5rem 0 .5rem;
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: .8rem 1rem;
    box-sizing: border-box;

    background: #111;
    color: #eee;

    border: 1px solid #333;

    font: inherit;
}

.guestbook-form textarea {
    resize: vertical;
}

.guestbook-form button {
    display: inline-block;

    margin-top: 1.5rem;
    padding: .8rem 1.6rem;

    background: transparent;
    color: #eee;

    border: 1px solid #666;
    cursor: pointer;

    font: inherit;

    transition:
        background .25s,
        color .25s,
        border-color .25s;
}

.guestbook-form button:hover {
    background: #eee;
    color: #000;
    border-color: #eee;
}

.guestbook-entries {
    margin-top: 2rem;
}

.guestbook-entry {
    max-width: 720px;
    margin: 0 auto 5rem;
    padding-bottom: 3rem;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.guestbook-entry:last-child {
    border-bottom: none;
}

.guestbook-message {
    margin: 0;

    line-height: 1.7;
    font-size: 1.45rem;
    text-align: center;
}

.guestbook-signature {
    margin-top: 1.4rem;

    text-align: center;

    font-size: .95rem;
    color: #777;
}

.guestbook-navigation {
    margin-top: 5rem;
}

.guestbook-navigation a {
    color: #bbb;
    text-decoration: none;
}

.guestbook-navigation a:hover {
    color: white;
}

/* ---------- NEREIS' DESK ---------- */

.desk-page{
    min-height:100vh;
}

.desk{
    width:min(720px, 90vw);
    margin:0 auto;
    padding:70px 0 100px;
}

.desk h1{
    margin:0 0 55px;
    text-align:center;
    font-size:40px;
    font-weight:normal;
}

.desk-form{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.desk-form label{
    margin-top:14px;
    font-size:14px;
}

.desk-form input,
.desk-form textarea{
    width:100%;
    border:1px solid #55524c;
    padding:13px;

    background:#080808;
    color:#fffff0;

    font:inherit;
    font-size:16px;
}

.desk-form textarea{
    resize:vertical;
}

.desk-form input[type="file"]{
    padding:10px;
}

.desk-form button{
    align-self:center;

    margin-top:35px;
    border:1px solid #77736a;
    padding:14px 30px;

    background:transparent;
    color:#fffff0;

    font:inherit;
    cursor:pointer;
}

.desk-form button:hover{
    border-color:#fffff0;
}

.desk-form select {
    width: 100%;
    padding: 0.8rem;
    box-sizing: border-box;

    font: inherit;
    color: inherit;
    background: #000;

    border: 1px solid #777;
    border-radius: 0;

    appearance: none;
    -webkit-appearance: none;

    outline: none;
    box-shadow: none;
}

.desk-form select:focus {
    border-color: #aaa;
    outline: none;
    box-shadow: none;
}

/* ---------- NEREIS' DESK ---------- */

.desk-success{
    margin:0 0 28px;
    text-align:center;
    color:#c8c3b7;
}

.desk-error{
    margin:0 0 28px;
    text-align:center;
    color:#d0a59d;
}

.desk-logout{
    margin-top:55px;
    text-align:center;
    font-size:13px;
}

.journal-entry img {
    display: block;
    width: 33%;
    min-width: 220px;
    max-width: 420px;
    height: auto;
    margin: 1.5rem auto;
}

.journal-entry:not(:last-child)::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background: #777;
    margin: 3rem auto 0;
}


@media (max-width:600px){

    .home-page .portrait{
        margin-bottom:-10px;
    }

}

/* ---------- MUSEUM PASS FORM ---------- */

.welcome-page main {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.desk-form {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desk-form label {
    display: block;
    margin-bottom: 18px;
}

.desk-form input {
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 48px;
}

.desk-form button {
    display: block;
    margin: 0 auto;
}

/*------------Mailbox------------*/

.mailbox {
    display: inline-block;
    margin-top: 20px;
}

.mailbox img {
    width: 64px;
    height: auto;
    opacity: .75;
    transition: opacity .25s ease,
                transform .25s ease;
}

.mailbox img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

form {
    max-width: 700px;
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
}

input,
textarea,
button{
    box-sizing:border-box;
    background:#111;
    color:#eee;
    border:1px solid #777;
    font:inherit;
    padding:10px;
}

input,
textarea{
    width:100%;
}

textarea{
    min-height:260px;
    resize:vertical;
}

button{
    width:auto;
    margin-top:20px;
    cursor:pointer;
}

.journal-image{
    display:inline-block;
}

.journal-image img{
    cursor:zoom-in;
}

.lightbox{

    position:fixed;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.92);

    opacity:0;
    visibility:hidden;

    transition:.2s;

    z-index:5000;
}

.lightbox.open{

    opacity:1;
    visibility:visible;
}

.lightbox img{

    max-width:92vw;
    max-height:92vh;

    box-shadow:0 0 40px #000;
}

.lightbox {
    cursor: zoom-out;
}

.home-page .fiction-note {
    margin-top: 3.5rem;
}
@media (orientation: landscape), (min-aspect-ratio: 4/3) {

    .home-page main {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        min-height: 100vh;
        box-sizing: border-box;

        padding: 1rem 0 !important;
        margin: 0 auto !important;
    }

    .home-page h1 {
        margin: 0 0 0.6rem !important;
    }

    .home-page .portrait {
        width: auto !important;
        margin: 0 auto !important;
    }

    .home-page .portrait img {
        display: block !important;
        width: auto !important;
        height: 48vh !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        object-fit: contain;
    }

    .home-page .fiction-note {
        margin-top: 0.75rem !important;
    }

    .home-page p {
        margin-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }

    .home-page .enter {
        display: inline-block;
        margin-top: 0.75rem;
    }
}