/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #222222;

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}

.page {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    overflow: hidden;
}


/* =========================================================
   COVER
========================================================= */

.top {
    position: relative;

    height: 540px;

    overflow: hidden;

    border: 1px solid #b23b2e;

    background: #ffffff;

    text-align: center;

    padding-top: 78px;
}

.cover-title {
    position: relative;

    z-index: 10;
}

.top h1 {
    margin: 0;

    font-size: clamp(34px, 4.3vw, 52px);

    font-weight: 500;

    line-height: 1.15;

    letter-spacing: 0.015em;
}

.sub {
    margin: 12px 20px 0;

    color: #b23b2e;

    font-size: 14px;

    line-height: 1.5;

    letter-spacing: 0.02em;
}


/* =========================================================
   SVG WAVES
========================================================= */

.waves {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 305px;

    z-index: 1;
}

.wave {
    fill: #c9c9c9;

    stroke: #ffffff;

    stroke-width: 4;

    vector-effect: non-scaling-stroke;

    fill-rule: evenodd;
}

.wave-1 {
    fill: #c7c7c7;
}

.wave-2 {
    fill: #c9c9c9;
}

.wave-3 {
    fill: #c8c8c8;
}

.wave-4 {
    fill: #cacaca;
}

.wave-5 {
    fill: #c8c8c8;
}

.wave-6 {
    fill: #c9c9c9;
}

.wave-7 {
    fill: #c7c7c7;
}

.wave-8 {
    fill: #c9c9c9;
}


/* subtle texture */

.top::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 285px;

    pointer-events: none;

    z-index: 2;

    opacity: 0.28;

    background-image:
        radial-gradient(
            #888888 0.7px,
            transparent 0.7px
        );

    background-size: 5px 5px;

    -webkit-mask-image:
        linear-gradient(
            to top,
            #000 0%,
            #000 72%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to top,
            #000 0%,
            #000 72%,
            transparent 100%
        );
}


/* =========================================================
   INTRODUCTION
========================================================= */

.intro {
    position: relative;

    width: 91%;

    margin: 32px auto 0;

    padding: 22px 30px 20px;

    border: 1px solid #d6a39c;

    background: #ffffff;
}

.intro::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 50%;

    transform: translateX(-50%);

    width: 78px;
    height: 5px;

    background: #e8c4c4;
}

.intro p {
    margin: 0 0 13px;

    font-size: 13px;

    line-height: 1.72;

    text-align: justify;
}

.intro p:last-child {
    margin-bottom: 0;
}

.intro strong {
    color: #b23b2e;

    font-weight: normal;
}


/* =========================================================
   IMAGE COLLAGE
========================================================= */

.picbox {
    width: 91%;

    margin: 0 auto;

    padding: 52px 0 20px;
}

.paintings {
    display: inline-block;

    margin: 0 0 10px;

    padding: 4px 10px;

    background: #e8c4c4;

    color: #b23b2e;

    font-size: 10px;

    line-height: 1.2;

    letter-spacing: 0.04em;
}

.grid {
    display: grid;

    width: 100%;

    grid-template-columns:
        repeat(3, 1fr);

    grid-template-rows:
        repeat(3, 170px);
}

.box {
    width: 100%;
    height: 100%;

    background-size: cover;

    background-position: center;
}


/* =========================================================
   COLLAGE IMAGES
========================================================= */

.b1 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238716/collage1.jpg");
}

.b2 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238718/collage2.jpg");
}

.b3 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238717/collage3.jpg");
}

.b4 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238718/collage4.jpg");
}

.b5 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238718/collage5.jpg");
}


/* texture blocks */

.tex {
    background-color: #eeeeee;

    background-image:
        radial-gradient(
            #b8b8b8 0.75px,
            transparent 0.75px
        );

    background-size: 6px 6px;
}


/* =========================================================
   LIBRARY OVERVIEW
========================================================= */

.bigtitle {
    margin: 72px 0 76px;

    text-align: center;

    font-size: 31px;

    line-height: 1.2;

    font-weight: 500;

    letter-spacing: 0.015em;
}


/* =========================================================
   EXHIBIT ITEMS
========================================================= */

.item {
    position: relative;

    display: flex;

    width: 88%;

    min-height: 340px;

    margin: 0 auto 120px;

    align-items: center;
}

.item > .left,
.item > .right {
    position: relative;

    width: 50%;
}

.item > .left {
    z-index: 2;
}

.item > .right {
    z-index: 3;
}


/* =========================================================
   EXHIBIT IMAGE
========================================================= */

.img {
    width: 100%;

    height: 345px;

    border: 1px solid #b23b2e;

    background-size: cover;

    background-position: center;
}


/* =========================================================
   CLOUDINARY IMAGES
========================================================= */

.tunic {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238720/tunic.jpg");
}

.lei {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238720/lei.jpg");
}

.silk {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238721/silk.jpg");
}

.ding {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238719/ding.jpg");
}


/* =========================================================
   RED LABEL
========================================================= */

.redtag {
    position: absolute;

    top: -16px;
    left: 0;

    z-index: 10;

    display: inline-block;

    max-width: 90%;

    padding: 5px 10px;

    background: #b23b2e;

    color: #ffffff;

    font-size: 10px;

    line-height: 1.25;

    letter-spacing: 0.015em;
}


/* =========================================================
   PINK TEXT BOX
========================================================= */

.pink {
    position: relative;

    background: #f8eaea;

    padding: 25px 27px;

    font-size: 12px;

    line-height: 1.72;
}

.pink p {
    margin: 0;
}


/* =========================================================
   EXHIBIT COMPOSITION
========================================================= */


/* 01 */

.item-one {
    margin-bottom: 125px;
}

.item-one .right {
    margin-left: -48px;
}

.item-one .pink {
    margin-top: 50px;
}


/* 02 */

.item-two {
    flex-direction: row-reverse;

    margin-bottom: 125px;
}

.item-two .left {
    margin-left: -48px;
}

.item-two .right {
    margin-top: -10px;
}


/* 03 */

.item-three {
    margin-bottom: 125px;
}

.item-three .right {
    margin-left: -48px;
}

.item-three .pink {
    margin-top: 42px;
}


/* 04 */

.item-four {
    flex-direction: row-reverse;

    margin-bottom: 100px;
}

.item-four .left {
    margin-left: -48px;
}

.item-four .right {
    margin-top: 0;
}


/* =========================================================
   CERAMICS
========================================================= */

.cibox {
    width: 90%;

    margin: 10px auto 105px;

    padding: 28px 10px 38px;

    border-top: 1px solid #c9877e;

    border-bottom: 1px solid #c9877e;

    text-align: center;

    white-space: normal;
}

.ci {
    display: inline-block;

    width: 78px;
    height: 78px;

    margin: 10px 17px;

    border-radius: 50%;

    background-size: cover;

    background-position: center;

    vertical-align: middle;
}


/* ceramic images */

.c1 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238712/ci1.jpg");
}

.c2 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238717/ci2.jpg");
}

.c3 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238713/ci3.jpg");
}

.c4 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238716/ci4.jpg");
}

.c5 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238716/ci5.jpg");
}

.c6 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238714/ci6.jpg");
}

.c7 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238716/ci7.jpg");
}

.c8 {
    background-image:
        url("https://res.cloudinary.com/huykl1sl/image/upload/v1790238716/ci8.jpg");
}


/* =========================================================
   FLOOR GUIDE
========================================================= */

.floor {
    position: relative;

    display: flex;

    width: 850px;

    max-width: 90%;

    height: 360px;

    margin: 0 auto 28px;

    align-items: stretch;
}


/* left and right */

.floor-side {
    width: calc(50% - 1px);

    position: relative;

    font-size: 10px;

    line-height: 1.6;
}

.floor-side p {
    margin: 0;
}


/* left */

.floor-left {
    padding-right: 48px;

    text-align: right;
}

.floor-text-1 {
    position: absolute;

    top: 72px;

    right: 48px;

    width: 90%;
}

.floor-text-2 {
    position: absolute;

    top: 104px;

    right: 48px;

    width: 90%;
}


/* right */

.floor-right {
    padding-left: 48px;

    text-align: left;
}

.floor-text-3 {
    position: absolute;

    top: 85px;

    left: 48px;

    width: 90%;
}

.floor-text-3 h3 {
    margin: 0 0 13px;

    color: #222222;

    font-size: 13px;

    line-height: 1;

    font-weight: bold;
}

.floor-text-3 p {
    margin-bottom: 10px;
}


/* =========================================================
   CENTRAL LINE
========================================================= */

.mid {
    position: relative;

    width: 1px;

    height: 100%;

    flex-shrink: 0;

    background: #999999;
}


/* =========================================================
   FLOOR DOTS
========================================================= */

.dot {
    position: absolute;

    left: 50%;

    transform: translate(-50%, -50%);

    display: block;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #b23b2e;

    color: #ffffff;

    text-align: center;

    line-height: 22px;

    font-family: Arial, sans-serif;

    font-size: 10px;

    font-weight: bold;

    z-index: 5;
}

.d1 {
    top: 78%;
}

.d2 {
    top: 48%;
}

.d3 {
    top: 16%;
}


/* =========================================================
   FLOOR LIST
========================================================= */

.floorlist {
    width: 850px;

    max-width: 90%;

    margin: 0 auto 90px;

    padding: 25px 0 0 88px;

    border-top: 1px solid #cccccc;

    color: #333333;

    font-size: 10px;

    line-height: 2;
}

.floorlist ol {
    margin: 0;

    padding-left: 18px;
}

.floorlist li {
    padding-left: 4px;
}


/* =========================================================
   FOOTER
========================================================= */

.bottom {
    width: 100%;

    padding: 34px 7% 38px;

    background: #cfe2f3;

    text-align: center;

    color: #222222;

    font-size: 11px;

    line-height: 1.8;
}

.bottom p {
    margin: 0 0 8px;
}

.bottom p:last-child {
    margin-bottom: 0;
}

.red {
    color: #b23b2e;
}


/* =========================================================
   900px
========================================================= */

@media screen and (max-width: 900px) {

    .top {
        height: 500px;
    }

    .waves {
        height: 285px;
    }

    .intro {
        width: calc(100% - 50px);
    }

    .picbox {
        width: calc(100% - 50px);
    }

    .grid {
        grid-template-rows:
            repeat(3, 145px);
    }

    .item {
        width: 90%;
    }

    .img {
        height: 300px;
    }

    .pink {
        padding: 20px;

        font-size: 11px;
    }

    .ci {
        width: 68px;
        height: 68px;

        margin: 8px 11px;
    }

    .floor {
        width: 90%;
    }

    .floorlist {
        width: 90%;
    }
}


/* =========================================================
   600px
========================================================= */

@media screen and (max-width: 600px) {

    .top {
        height: 440px;

        padding-top: 55px;
    }

    .top h1 {
        font-size: 29px;
    }

    .sub {
        margin-top: 9px;

        font-size: 11px;

        line-height: 1.5;
    }

    .waves {
        height: 255px;
    }


    /* intro */

    .intro {
        width: calc(100% - 30px);

        margin:
            20px 15px 0;

        padding:
            16px 18px;
    }

    .intro p {
        font-size: 11px;

        line-height: 1.7;
    }


    /* collage */

    .picbox {
        width: calc(100% - 30px);

        padding:
            35px 0 20px;
    }

    .grid {
        grid-template-columns:
            repeat(3, 1fr);

        grid-template-rows:
            repeat(3, 95px);
    }


    /* title */

    .bigtitle {
        margin:
            45px 0 55px;

        font-size: 24px;
    }


    /* exhibits */

    .item,
    .item-two,
    .item-four {
        display: flex;

        flex-direction: column;

        width: calc(100% - 30px);

        margin:
            0 15px 75px;

        min-height: auto;
    }

    .item > .left,
    .item > .right {
        width: 100%;

        margin: 0;
    }

    .item-two .left,
    .item-four .left {
        margin: 0;
    }

    .item-one .right,
    .item-three .right {
        margin:
            -25px 0 0;
    }

    .item-two .right,
    .item-four .right {
        margin:
            0 0 -25px;
    }

    .img {
        height: 260px;
    }

    .pink {
        padding:
            18px 20px;

        font-size: 11px;

        line-height: 1.7;
    }

    .redtag {
        top: -13px;

        max-width: 92%;

        padding:
            4px 8px;

        font-size: 9px;
    }


    /* ceramics */

    .cibox {
        width: calc(100% - 30px);

        margin-bottom: 65px;

        padding:
            20px 5px 25px;
    }

    .ci {
        width: 53px;
        height: 53px;

        margin:
            7px 5px;
    }


    /* floor */

    .floor {
        display: flex;

        flex-direction: column;

        width: calc(100% - 30px);

        max-width: none;

        height: auto;

        margin:
            0 15px 35px;
    }

    .floor-side {
        width: 100%;

        padding:
            0 15px;

        font-size: 9px;

        text-align: left;
    }

    .floor-left {
        height: 150px;

        padding: 0;
    }

    .floor-right {
        height: 145px;

        padding: 0;
    }

    .floor-text-1 {
        top: 15px;

        left: 15px;

        right: auto;

        width: calc(100% - 30px);
    }

    .floor-text-2 {
        top: 55px;

        left: 15px;

        right: auto;

        width: calc(100% - 30px);
    }

    .floor-text-3 {
        top: 20px;

        left: 15px;

        width: calc(100% - 30px);
    }

    .floor-text-3 h3 {
        font-size: 12px;
    }

    .mid {
        width: 100%;

        height: 1px;

        min-height: 1px;

        background: #999999;
    }

    .dot {
        top: 50%;

        left: auto;
    }

    .d1 {
        left: 18%;
    }

    .d2 {
        left: 50%;
    }

    .d3 {
        left: 82%;
    }


    /* floor list */

    .floorlist {
        width: calc(100% - 30px);

        max-width: none;

        margin:
            0 15px 60px;

        padding:
            20px 0 0 15px;

        font-size: 9px;

        line-height: 1.9;
    }


    /* footer */

    .bottom {
        padding:
            25px 18px;

        font-size: 9px;

        line-height: 1.8;
    }

}