:root {
    --color-background: #FFFFFF;
    --color-primary-dark: #1A1A1A;
    --color-accent: #FF0000;
}

html {
    font-size: 16px;
}


body {
    color: var(--color-primary-dark);
    font-family: "Times New Roman", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    cursor: url("/images/miecz.png"), auto;
}

/* Contact */

.contact-modal {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.4);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 999;
}

.contact-window {
    position: relative;

    width: min(700px, 90vw);

    background: white;

    overflow: hidden;
}

.contact-visual {
    position: relative;
}

.contact-image {
    width: 100%;
    display: block;
}

.contact-content {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 1rem;

    z-index: 3;
}

.contact-link {
    text-decoration: none;
    color: var(--color-accent);
    font-size: 1.5rem;
    text-align: center;
}



h1, h2, h3, p {
    margin-top: 0;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { font-size: 1rem; }

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

a {
    display: inline-block;
    font-size: 1.25rem;
}

.container {
  width: 100%;
  max-width: 1288px;
  margin: 0 auto;
}

/* Link */

.link {
  position: relative;
  display: block;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.3s;
  color: var(--color-primary-dark);
}
.link:hover {
  text-decoration: underline wavy var(--color-accent);
  cursor: url("/images/hand.png"), pointer;
}

/* Header */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 16px; /* better top 0 i padding */
}

.header__container {
  display: flex;
  margin: 0 10px;
}
.header__nav {
  display: flex;
  width: 100%;
}
.header__menu {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Hero section */


@media (max-width: 768px) {

    .hero-image {
        width: 95vw;
    }

}

.hero-section {
    position: relative;

    width: 100vw;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    #home .hero-image {
        width: 90vw;
    }
}

.hero-image {
    position: absolute;
    top: 65%;
    left: 87%;
    transform: translate(-50%, -50%);
    width: 60vw;
    z-index: 0;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 10rem);
    font-weight: 300;
    white-space: nowrap;
    margin-left: 10px;
    position: relative;
    z-index: 2;
}


.title {
  text-align: center;
}

@media (max-width: 768px) {

    .title {
        padding-top: 2rem;
    }

}

.layout {
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
}


@media (max-width: 768px) {

    #about {
        position: absolute;
        top: calc(100vh - 120px);
        left: 0;
        width: 100vw;
    }

    #exhibitions, #painting {
        position: fixed;
        top: 80px;   /* below navbar */
        left: 0;
        width: 100vw;
        transform: none;
        padding: 2rem;
    }

}

.panel {
    position: fixed;
    top: 50%;
    left: 66.66vw;
    width: 33.333vw;
    padding: 2rem;
    transform: translateY(-50%);
    align-items: center;
    padding: 0 0 0;
}

html, body, .painting-gallery {
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.painting-gallery::-webkit-scrollbar {
    display: none;
}





/* image galleries */

.painting-gallery {
    position: fixed;
    top: 80px;
    left: 0;

    width: 100vw;
    height: calc(100vh - 80px);

    overflow-y: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .painting-gallery {
        width: 100vw;
        left: 0;
        top: 60px;
        height: calc(100vh - 60px);
    }
}

@media (max-width: 768px) {

    .panel.painting-gallery {
        left: 0;
        width: 100vw;
        transform: none;
    }

}



.painting-gallery figure {
    width: fit-content;
    max-width: 100vw;
    margin: 0 auto 6rem auto;
}


.panel--text {
    top: 0;
    transform: none;
    align-items: flex-start;
    position: absolute;
    top: 120px;
    left: 60vw;
    width: 33.333vw;
    padding: 2rem;
}



#home {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* .ui-layer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
} */



.painting-list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}



.contact {
  position: fixed;
  right: 10px;
  bottom: 2rem;
}







/* @media (max-width: 768px) {
    .vertical img,
    .horizontal img {
        width: 90vw;
    }
} */


/*  to add 'painting' and shorten

.title {
    font-family: "YourFont";
}

.medium,
.year {
    font-size: 0.9rem;
} */




.title {
  margin-top: 0;
  padding-top: 120px;
}

@media (max-width: 768px) {

    .title {
        font-size: 2rem;
        padding-top: 2rem;
    }

}


/* images and captions */



figure {
    margin-bottom: 6rem;
}

figure img {
    display: block;
    height: auto;
}

.vertical img {
    width: 40vw;
}

.horizontal img {
    width: 50vw;
}

.small img {
    width: 40vw;
}

.small-vertical img {
    width: 30vw;
}

.total img {
  width: 100%;
}

@media (max-width: 768px) {

    .vertical img,
    .horizontal img {
        width: 90vw;
        max-width: 90vw;
    }

    .small img,
    .small-vertical img {
        width: 70vw;
        max-width: 70vw;
    }

    .total img {
        width: 100vw;
        max-width: 100vw;
    }

}

.triple {
    display: flex;
    gap: 1rem;
}

.triple img {
    width: 100%;
    max-width: 20vw;
}

.double {
    display: flex;
    gap: 1rem;
}

.double img {
    width: 100%;
    max-width: 40vw;
}

@media (max-width: 768px) {

    .double,
    .triple {
        flex-direction: column;
    }

    .double img,
    .triple img {
        max-width: 70vw;
        width: 70vw;
    }

}

figcaption {
    margin-top: 0.5rem;
    margin-left: 1rem;
    p {
    margin: 0;}
}

/* Paradise */

.paradise-stack {
    display: flex;
    flex-direction: column;
    gap: 10rem;
}

.paradise-layout {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    padding-top: 120px;
}

@media (max-width: 768px) {

    .paradise-layout {
        flex-direction: column;
        align-items: center;
    }

    .paradise-left,
    .paradise-right {
        margin: 0;
    }

    .paradise-left img,
    .paradise-right img {
        width: 90vw;
    }

}

.paradise-layout figure {
    margin: 0;
}

.paradise-left img {
    width: 28vw;
    margin-top: 10vw;
    margin-right: -5vw;
}

.paradise-right img {
    width: 40vw;
}

.paradise-left figcaption {
    margin-top: 1rem;
}

.art-video {
    max-width: 70vw;
    max-height: 70vw;
    display: block;
}


.hidden {
  display: none;
}

.hidden-ui {
    display: none;
    pointer-events: none;
}