/*==================
Museum Design System
==================*/
:root {
    --museum-black: #09090a;
    --gallery-charcoal: #17171a;
    --paper: #eeeae3;
    --stone: #aaa49c;
    --amethyst: #70547f;
    --soft-amethyst: #baa8c5;
    --line: rgba(238, 234, 227, 0.16);
}

/*=====================
Reset and Global Styles
=====================*/
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--museum-black);
    color: var(--paper);
}

/*=====================
Header
=====================*/
.museum-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 9, 10, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.museum-nav {
    max-width: 1300px;
    margin: auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.museum-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--paper);
    text-decoration: none;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.museum-nav-links {
    display: flex;
    gap: 2rem;
}

.museum-nav-links a {
    color: var(--paper);
    text-decoration: none;
    font-size: .95rem;
    letter-spacing: .05em;
    transition: color .3s ease;
}

.museum-nav-links a:hover {
    color: var(--soft-amethyst);
}

/*=====================
Hero Section
=====================*/
.museum-hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../images/quiet-heavens-between-storms.jpg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.museum-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(9,9,10,.45), rgba(9,9,10,.70));
}

.museum-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 2rem;
}

.museum-eyebrow {
    font-size: .9rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 1rem;
}

.museum-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.05;
    margin: 0;
    color:var(--paper);
}

.museum-tagline {
    font-size: 1.25rem;
    color: var(--stone);
    max-width: 600px;
    margin: 2rem auto;
    line-height: 1.8;
}

.museum-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--paper);
    color: var(--paper);
    text-decoration: none;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: all .35s ease;
}

.museum-button:hover {
    background: var(--paper);
    color: var(--museum-black);
}

.museum-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 7rem 2rem 2rem;
}

/*=====================
Hero Animations
=====================*/
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.museum-hero-content {
    animation: heroFadeUp 1.2s ease forwards;
}

/*=====================
Current Exhibition
=====================*/
.current-exhibition {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 60vh;
    background-color: var(--paper);
    color: var(--museum-black);
}

.exhibition-image {
    min-height: 650px;
    overflow: hidden;
}

.exhibition-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.exhibition-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(5rem, 9vw, 9rem) 2rem;
}

.museum-label {
    margin: 2.25rem;
    color: var(--amethyst);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.exhibition-copy h2 {
    margin: 0 0 5rem;
    font-size: clamp(3rem, 5vw, 3rem);
    font-weight: 300;
    line-height: 1.05;
}

.exhibition-copy > p:not(.museum-lable) {
    max-width: 520px;
    margin: 0 0 2rem;
    color: #49454a;
    font-size: 1.1rem;
    line-height: 1.8;
}

.text-link {
    align-self: flex-start;
    color: var(--museum-black);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.35rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.text-link:hover {
    color: var(--amethyst);
}

/*=====================
Current Exhibition Responsive
=====================*/
@media (max-width: 850px) {
    .current-exhibition {
        grid-template-columns: 1fr;
    }

    .exhibition-image {
        min-height: 55vh;
    }

    .exhibition-copy {
        padding: 4rem 2rem;
    }    
}


/*=====================
Collections
=====================*/
.museum-collectios {
    padding: clamp(5rem, 9vw, 9rem);
    background-color: var(--gallery-charcoal);
}

.section-heading {
    max-width: 1300px;
    margin: 0 auto 3.5rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.8;
}

.collection-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.collection-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background-color: var(--museum-black);
}

.collection-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    transition:
        transform 0.8s ease,
        opacity 0.8s ease;
}

.collection-card:hover img {
    transform: scale(1.04);
    opacity: 0.72;
}

.collection-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(9, 9, 9, 0.9), rgba(9,9,10,.08) 65%);
}

.collection-card-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 2;
    padding: 2rem
}

.collection-card-copy p {
    margin: 0 0 0.75rem;
    color: var(--soft-amethyst);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.collection-card-copy h3 {
    margin: 0 0 1.25rem;
    font-size: 2rem;
    font-weight: 300;
}

.collection-card-copy a {
    color: var(--paper);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.3rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/*=====================
Collections Responsive Grid
=====================*/
@media (max-width: 950px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-card {
        min-height: 65vh;
    }
}

/*=====================
Artist Note
=====================*/
.artist-note {
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 75vh;
    padding: clamp(5rem, 10vw, 10rem) 2rem;

    background-color: var(--paper);
    color: var(--museum-black);
}

.artist-note-content {
    max-width: 950px;
    text-align: center;
}

.artist-note blockquote {
    margin: 0 0 3rem;

    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 300;
    line-height: 1.3;
}

/*=====================
Museum Shop
=====================*/
.museum-shop {
    position: relative;

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

    min-height: 70vh;
    padding: clamp(5rem, 9vw, 9rem) 2rem;

    background: 
        linear-gradient(
            rgba(9, 9, 9, 0.78),
            rgba(9, 9, 10, 0.9)
        ),
        url("../images/quiet-heavens-maritime-horizon.jpg") center/cover no-repeat;
}

.museum-shop-content {
    max-width: 750px;
    text-align: center;
}

.museum-shop {
    margin: 0 0 1.5rem;

    font-size: clamp(2.75rem, 5vw, 5rem);
    font-weight: 300;
    line-height: 1.05;
}

.museum-shop-content > p:not(.museum-label) {
    max-width: 600px;
    margin: 0 auto 2.5rem;

    color: var(--stone);
    font-size: 1.1rem;
    line-height: 1.8;
}

.museum-shop h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(2.75rem, 5vw, 5rem);
    font-weight: 300;
    line-height: 1.05;
}

.museum-button-shop {
   max-width: 420px;
   font-size: 2.5rem;
}

/*=====================
Footer
=====================*/
.museum-footer {
    padding: 4rem 2rem;

    background-color: var(--museum-black);
    border-top: 1px solid var(--line);

    text-align: center;
}

.museum-footer p {
    margin: 0.4rem 0;

    color: var(--stone);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/*=====================
Responsive Navigation
=====================*/
.museum-menu-toggle {
    display: none;
}

@media (max-width: 850px) {

    .museum-nav {
        position: relative;
        padding: 1rem 1.25rem;
    }

    .museum-logo {
        font-size: 0.9rem;
    }

    .museum-menu-toggle {
        display: block;
        border: 0;
        background: transparent;
        color: var(--paper);
        font-size: 1.7rem;
        cursor: pointer;
    }

    .museum-nav-links {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        gap: 0;

        background: rgba(9, 9, 10, 0.97);
        border-bottom: 1px solid var(--line);
    }

    .museum-nav-links.open {
        display: flex;
    }

    .museum-nav-links a {
        padding: 1rem 1.25rem;
        border-top: 1px solid var(--line);
    }
}

#current-exhibition,
#collections,
#artist,
#museum-shop {
    scroll-margin-top: 80px;
}

a:focus-visible {
    outline: 2px solid var(--soft-amethyst);
    outline-offset: 5px;
}

/*=====================
Scroll Reveal
=====================*/
.reveal {
    opacity: 0;
    transform: translateY(50px);

    transition: 
    opacity 0.8s ease, 
    transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#welcome-message {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #8FA9B3;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#welcome-message.show {
    opacity: 1;
}

/*=====================
Museum Button
=====================*/
.museum-button {
    transition: all 0.5s ease;
}

.museum-button.hide {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}

/*=====================
Quiet-Heavens Page Styles
=====================*/
.exhibition-image img {
    width: 100%;
    height: auto;
    display: block;
}

.exhibition-page {
    max-width: 800vw;
    margin: 0 2.5rem;
    padding-top: 90px;
}

.exhibition-gallery {
    padding-top: 90px;
}

.museum-exhibition-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 1rem;
}

.exhibition-note {
    margin: 2rem 0;
    color: var(--stone);
    font-size: 1.1rem;
    line-height: 1.8;
}

.museum-label {
    margin: 0 0 1.25rem;
    color: var(--amethyst);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.exhibition-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    position: relative;
}

/*=====================
Quiet-Heavens Page Images Animations
=====================*/
.artwork-image{
    overflow: hidden;
    position: relative;
}

.artwork-image img {
    display: block;
    width: 100%;
    transition: transform 0.5s ease;
}

.artwork-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: 
        linear-gradient(115deg, transparent 30%,
        rgba(255,255,255,0.18) 70%);

    opacity: 0;
    transition: opacity 0.5s ease;
}

.artwork-image:hover::after {
    opacity: 1;
}

.artwork-image:hover img {
    transform: scale(1.02);
}

/*=====================
Quiet-Heavens Page Slider
=====================*/
.exhibition-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5rem;
}

.slider-window {
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.7s ease;
}

.artwork-slide {
    min-width: 100%;
    margin: 0;
    text-align: center;
}

.artwork-image {
    position: relative;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    height: 65vh;
}

.artwork-image img {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    transition: transform 0.5s ease;

    user-select: none;
    -webkit-user-drag: none;
}

.artwork-slide figcaption {
    padding: .5rem;
}

.artwork-slide figcaption h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
}

.artwork-slide figcaption p {
    margin: 0.3rem 0;
    color: var(--stone);
    font-size: 1rem;
    line-height: 0.8em;
}

/*=====================
Arrow Buttons
=====================*/
.slider-arrow {
    position: absolute;
    top: 45%;
    z-index: 5;

    border: 0;
    background: transparent;
    color: var(--paper);

    font-size: 2.5rem;
    cursor: pointer;

    opacity: 0.65;
    transition: opacity 0.3s ease;
}

.slider-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

/*=====================
Responsive Slider
=====================*/
@media (max-width: 700px) {

    .exhibition-slider {
        padding: 2rem 2.75rem;
    }

    .slider-arrow {
        font-size: 1.8rem;
    }

    .slider-prev {
        left: 0.25rem;
    }

    .slider-next {
        right: 0.25rem;
    }
}

/*=====================
Shop Page Styles
=====================*/
.shop-page {
    padding-top: 8rem;
}

.museum-shop-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.museum-button-shop {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 22rem;
    min-height: 5rem;

    text-align: center;
}

/*============================
Artist Page
============================*/
.artist-page {
    padding-top: 90px;
}

.artist-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.artist-portrait {
    overflow: hidden;
}

.artist-portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.artist-introduction {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(4rem, 8vw, 8rem);

    background: var(--paper);
    color: var(--museum-black);
}

.artist-introduction h1 {
    margin: 0 0 1rem;

    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
}

.artist-role {
    margin: 0 0 2rem;

    color: var(--amethyst);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.artist-intro {
    max-width: 600px;

    font-size: 1.1rem;
    line-height: 1.8;
}

.artist-statement {
    padding: clamp(5rem, 10vw, 10rem) 2rem;

    background: var(--museum-black);
    text-align: center;
}

.artist-statement blockquote {
    max-width: 950px;
    margin: 0 auto;

    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 300;
    line-height: 1.35;
}

.artist-biography {
    padding: clamp(5rem, 9vw, 9rem) 2rem;

    background: var(--paper);
    color: var(--museum-black);
}

.artist-biography-content {
    max-width: 850px;
    margin: 0 auto;
}

.artist-biography h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
}

.artist-biography p {
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 850px) {

    .artist-hero {
        grid-template-columns: 1fr;
    }

    .artist-portrait {
        min-height: 60vh;
    }

    .artist-introduction {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {

    .artwork-image {
        height: 55vh;
    }

}