* {
    box-sizing: border-box;
}

html,
body {
    background: #ffffff;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
}

.artist-page {
    width: 100%;
}


/* INNGANG */

.entrance {
    min-height: 150vh;
    width: 100%;

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

    gap: 28vh;

    padding: 12vh 10vw;
}

.dosen-signature {
    display: block;

    width: min(46vw, 680px);
    height: auto;
    max-width: 100%;
}

.entrance-work {
    width: min(32vw, 520px);
}


/* VERK */

.artwork-card {
    margin: 0;
}

.artwork-card img {
    display: block;
    width: 100%;
    height: auto;
}

.artwork-card figcaption {
    margin-top: 1.1rem;
    max-width: 100%;
}

.artwork-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.artwork-card h2 {
    margin: 0;
    font-size: clamp(0.82rem, 0.95vw, 1rem);
    line-height: 1.2;
    font-weight: 400;
}

.info-toggle {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #111111;
    font: inherit;
    font-size: clamp(0.68rem, 0.75vw, 0.78rem);
    line-height: 1;
    cursor: pointer;
    opacity: 0.48;
    transition: opacity 0.25s ease;
}

.info-toggle:hover,
.info-toggle:focus-visible {
    opacity: 1;
    outline: none;
}

.artwork-info {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-0.35rem);
    transition:
        max-height 0.45s ease,
        opacity 0.35s ease,
        transform 0.45s ease;
}

.info-toggle[aria-expanded="true"] + .artwork-info,
.artwork-info.is-open {
    max-height: 20rem;
    opacity: 1;
    transform: translateY(0);
}

.info-sentence {
    padding-top: 0.65rem;
}

.artwork-card p {
    margin: 0 0 0.45rem;
    font-size: clamp(0.78rem, 0.86vw, 0.92rem);
    line-height: 1.42;
    font-weight: 400;
}

.artwork-card small {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.68rem;
    line-height: 1.35;
    opacity: 0.62;
}

.artwork-details {
    margin-top: 0.8rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(17, 17, 17, 0.12);
    font-size: 0.68rem;
    line-height: 1.3;
    opacity: 0.52;
    text-transform: lowercase;
}


/* X */

.x-section {
    width: 100%;

    padding: 8vh 8vw 0;
}

.x-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.618fr 1fr;
    align-items: start;
    gap: 7vw;
}

.x-side,
.x-center {
    display: block;
}

.x-row-lower {
    grid-template-columns: 1fr 1fr;

    width: 68%;
    margin: 12vh auto 0;

    gap: 9vw;
}


/* MELLOMROM */

.interlude {
    width: min(68vw, 980px);
    margin: 22vh auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 10vw;
}


/* LUFT MELLOM X-ENE */

.major-air {
    width: 100%;
    height: 28vh;
}


/* X 2 */

.x-section-two {
    padding-bottom: 30vh;
}


/* KLIKK / TRYKK PÅ BILDE */

.artwork {
    cursor: zoom-in;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}


/* FORSTØRRET BILDE */

.lightbox {
    position: fixed;
    inset: 0;

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

    padding: 4vh 4vw;

    background: rgba(255, 255, 255, 0.97);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    z-index: 1000;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-image {
    display: block;

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

    width: auto;
    height: auto;

    object-fit: contain;

    cursor: zoom-out;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}


/* NÅR BILDET ER ÅPENT */

body.lightbox-open {
    overflow: hidden;
}


/* IPAD / IPHONE */

@media (max-width: 700px) {

    .entrance {
        min-height: 120vh;
        gap: 20vh;

        padding: 8vh 7vw;
    }

    .dosen-signature {
        width: min(78vw, 680px);
    }

    .entrance-work {
        width: min(58vw, 520px);
    }

    .artwork-card figcaption {
        margin-top: 0.8rem;
    }

    .artwork-card p {
        font-size: 0.82rem;
        line-height: 1.38;
    }

    .x-section {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .x-row {
        grid-template-columns: 1fr 1.618fr 1fr;
        gap: 3vw;
    }

    .x-row-lower {
        width: 82%;
        margin-top: 8vh;

        gap: 5vw;
    }

    .interlude {
        width: 82%;
        margin-top: 16vh;
        grid-template-columns: 1fr;
        gap: 14vh;
    }

    .major-air {
        height: 15vh;
    }

    .x-section-two {
        padding-bottom: 20vh;
    }

    .lightbox {
        padding: 3vh 3vw;
    }

    .lightbox-image {
        max-width: 96vw;
        max-height: 90vh;
    }
}

/* KUNSTNERTEKST I MELLOMROMMET */

.artist-statement {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 28vh;
    padding: 0 7vw 4vh;
    text-align: center;
}

.statement-frame {
    width: min(600px, 82vw);
    padding: 0;
    text-align: center;
}

.statement-frame::before,
.statement-frame::after {
    content: none;
}

.frame-ornament {
    display: none;
}

.statement-name {
    margin: 1.2rem 0 0;
    font-size: 0.72rem;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.statement-copy {
    margin: 0;
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.65;
    font-weight: 400;
}

.statement-link {
    display: inline-block;
    margin-top: 1.4rem;
    color: inherit;
    font-size: 0.72rem;
    line-height: 1.4;
    text-decoration: none;
    opacity: 0.62;
    transition: opacity 0.2s ease;
}

.statement-link:hover,
.statement-link:focus-visible { opacity: 1; }

@media (max-width: 700px) {
    .artist-statement { margin-top: 18vh; padding: 0 6vw 3vh; }
    .statement-frame {
        width: min(100%, 380px);
        padding: 0;
    }
    .statement-copy {
        font-size: 0.82rem;
        line-height: 1.6;
    }
}
 
/* AVSLUTNING: OM, FORLAG OG OFFENTLIGGJØRINGER */

.page-notes {
    width: min(1080px, 84vw);
    margin: 0 auto;
    padding: 0 0 12vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    border-top: 1px solid rgba(17, 17, 17, 0.16);
}

.page-note {
    padding-top: 1.8rem;
    min-width: 0;
}

.page-note h2 {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-note p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.65;
    font-weight: 400;
}

.page-note-link {
    display: inline-block;
    margin-top: 1rem;
    color: inherit;
    font-size: 0.76rem;
    line-height: 1.5;
    text-decoration: none;
    opacity: 0.62;
    transition: opacity 0.2s ease;
}

.page-note-link:hover,
.page-note-link:focus-visible {
    opacity: 1;
}

.page-note .announcement-empty {
    opacity: 0.52;
}

.page-note .announcement {
    margin-top: 0.85rem;
}

.page-note time {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
    opacity: 0.58;
}

.page-note .announcement a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

@media (max-width: 700px) {
    .page-notes {
        width: 84vw;
        grid-template-columns: 1fr;
        gap: 1.7rem;
        padding-bottom: 9vh;
    }

    .page-note {
        padding-top: 1.4rem;
    }

    .page-note h2 {
        margin-bottom: 0.7rem;
    }
}
