#menu .submenu {
    font-family: "Gilda Display", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 10px;
    margin-top: 3vh;
}

#menu .submenu li {
    margin-bottom: 2vh;
}

.scroll-spy.active {
    color: coral;
}

.scroll-spy2.active h3 {
    color: coral;
}

/* MAIN */

/* UI/UX DESIGN */
.uiux-design, .graphic-design {
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    position: relative;

    padding-bottom: 5vh;
    margin-bottom: 5vh;

    border-bottom: 2px solid rgba(114, 94, 83, 0.1);
}

.local-nav {
    width: 10%;
    position: sticky;
    top: 27.5vh;
    padding-left: 10px;

    z-index: 9;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3.5vh;
}

.local-nav .scrolly-spy2 {
    display: block;
}

.article-container {
    width: 90%;
}

.section2025 {
    scroll-margin-top: 30vh; /* adjust the default anchor scrolling behavior */
}

.section2024 {
    scroll-margin-top: 16vh;
}

#remanier-bleu {
    scroll-margin-top: 12vh;
}

#didot-specimen-booklet,
#wayfinding-system,
#stray-birds,
#wordless-diagram,
#gatsby-book-jacket {
    scroll-margin-top: 120px;
}

.t-h2 {
    display: none;
}

#project h2 {
    font-size: clamp(10px, 5vw, 16px);
    letter-spacing: 1px;

    text-align: center;

    margin-top: 20vh;

    transform: translateX(-5vw);
}

#project h3 {
    font-family: "Gilda Display", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: clamp(10px, 5vw, 16px);
    font-weight: 300;

    writing-mode: vertical-rl;
    text-orientation: upright;


    align-self: flex-start;
}

article {
    width: 100%;
    margin-bottom: 20vh;

    position: relative;
}

.page {
    width: 90%;
    padding-bottom: 5vh;
    margin-top: 11vh;

    box-shadow: 10px 10px 10px rgba(114, 94, 83, 0.3);
}

#project h4 {
    font-family: "Gilda Display", Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 10vw;
    font-weight: 300;

    text-transform: uppercase;
    padding-left: 5vw;

    transform: translateY(-2.7vh);
}

#project .small-caps {
    letter-spacing: 6px;
    padding-left: 6vw;

    transform: translateY(-2.7vh);
}

#project .bold-point {
    padding-left: 5vw;

    display: flex;
    flex-wrap: wrap;

    font-size: 10px;
    font-weight: 400;
}

#project .bold-point li {
    padding-right: 5vw;
    padding-bottom: 1vh;
}

.uiux-design .img-box {
    width: 90vw;
    height: 50vw;
    overflow: hidden;

    margin-left: auto;
    margin-right: 0;

    margin-top: 5vh;

    transform: translateY(-2.7vh);
}

.uiux-design .img-box:hover img {
    filter: blur(0.5px) brightness(0.8);
}

.uiux-design .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    transition: filter 0.3s ease;
}

.img-box {
    position: relative;
}

.img-box:hover .img-text {
    opacity: 1;
}

.img-text {
    color: white;

    font-family: "Rosario", Verdana, Geneva, Tahoma, sans-serif;
    font-size: 8px;
    font-weight: 300;

    letter-spacing: 3px;

    text-transform: uppercase;

    position: absolute;
    left: 0;
    bottom: 0;

    padding: 0;
    margin-bottom: 8px;
    margin-left: 5px;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;
}

.shortline-notice {
    font-family: "Rosario", Verdana, Geneva, Tahoma, sans-serif;
    font-size: 10px;
    font-weight: 100;
    font-style: italic;

    margin-top: -2vh;
    margin-bottom: 3vh;
}

#project .text-box p {
    width: 75%;
    margin-top: 8vh;
    margin-bottom: 5vh;
    margin-left: 3vw;
    padding-left: 2vw;

    font-family: "Rosario", Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 300;

    border-left: 5px solid coral;

    transform: translateY(-2.7vh);
}

.uiux-design img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* GRAPHIC DESIGN */
#project .graphic-design .img-box {
    margin-left: auto;
    margin-right: 0;

    margin-top: 5vh;

    transform: translateY(-2.7vh);

    cursor: pointer;
}

.vl {
    width: 90vw;
    overflow: hidden;
}

.hr-wide {
    width: 90vw;
    height: 120vw;
    overflow-x: scroll;
    overflow-y: hidden;
    /*scrollbar-width: none;*/
}

/* .hr-wide::-webkit-scrollbar {
    display: none;
} */

.vl img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

#project .graphic-design .hr-wide img {
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.hr-gallery {
    display: flex;
    justify-content: space-evenly;

    overflow-x: scroll;
    scrollbar-width: auto;
}

.hr-gallery::-webkit-scrollbar {
    height: 5px;
}

.hr-gallery::-webkit-scrollbar-track {
    background: white;
}

.hr-gallery::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
}

.hr-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}

.hr-gallery img {
    margin-right: 2vw;
}

#didot-specimen-booklet .hr-gallery {
    height: 75vh;
    overflow-x: auto;
    overflow-y: hidden;
}

#didot-specimen-booklet .hr-gallery img {
    height: 100%;
    width: auto;
    flex-shrink: 0;
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    inset: 0;

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

    z-index: 999;

    padding: 40px;

    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);

    opacity: 0;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
}

#lightbox.active {
    animation: lightboxFadeIn 0.2s ease-in-out forwards;
}

#lightbox.active #lightbox-img {
    animation: lightboxZoomIn 0.2s ease-in-out forwards;
}

#lightbox.closing {
    animation: lightboxFadeOut 0.2s ease-in-out forwards;
}

#lightbox.closing #lightbox-img {
    animation: lightboxZoomOut 0.2s ease-in-out forwards;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightboxFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes lightboxZoomIn {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

@keyframes lightboxZoomOut {
    from { transform: scale(1); }
    to { transform: scale(0.95); }
}




/* RESPONSIVE DESIGN */
@media (min-width: 376px) {
    #menu .submenu {
        font-size: 12px;
    }

    .uiux-design h2 {
        font-size: clamp(10px, 5vw, 24px);
    }

    #project h3 {
        font-size: clamp(10px, 5vw, 20px);
    }

    #project h4 {
        font-size: 11vw;
    }

    .img-text {
        font-size: 10px;
    }

    #project .small-caps {
        font-size: 10px;
    }

    .shortline-notice {
        font-size: 12px;
    }

    #project .bold-point {
        font-size: 12px;
    }

    #project .text-box p {
        font-size: 16px;
    }
}

/* FOR TABLET */
@media (min-width: 768px) {
    .scroll-spy.active h2 {
        color: coral;
    }

    .scroll-spy2.active h3 {
        color: coral;
    }

    /* UI/UX DESIGN */
    .uiux-design, .graphic-design {
        width: 100%;
        margin-top: 10vh;

        border-bottom: none;

        scroll-margin-top: 10vh;
    }

    .uiux-design {
        scroll-margin-top: 22vh;
    }

    .local-nav {
        width: 21%;

        position: fixed;
        top: 18.5vh;

        margin-left: 30px;
        padding-left: 0;

        display: block;
    }

    .local-nav.hide-on-footer {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out;
    }

    .graphic-design .local-nav {
        top: 40vh;
    }

    .article-container {
        width: 70%;

        margin-right: 0;
        margin-left: auto;
    }

    .section2025, .section2024 {
        scroll-margin-top: 15vh;
    }

    .m-h2 {
        display: none;
    }

    #project .t-h2 {
        display: block;

        font-size: clamp(10px, 2vw, 16px);
        text-align: left;

        margin-top: 0.8vh;
        margin-bottom: 5vh;

        padding-left: 5px;

        transform: none;
    }

    #project h3 {
        width: min-content;
        font-size: 16px ;
        writing-mode: horizontal-tb;
        letter-spacing: 1px;

        margin-top: 3vh;
        margin-left: auto;

        text-align: right;
    }

    #project h4 {
        font-size: 8vw;
    }

    .img-text {
        font-size: 12px;
        letter-spacing: 5px;
        margin-bottom: 10px;
        margin-left: 10px;
    }

    #project .small-caps {
        font-size: 12px;

        margin-left: auto;
        margin-right: 10px;

        padding-left: 0;

        text-align: right;
    }

    .shortline-notice {
        font-size: 14px;
    }

    #project .bold-point {
        font-size: 14px;
    }

    .uiux-design .img-box {
        width: 70vw;
        height: 38vw;
    }

    #project .text-box p {
        font-size: 16px;

        margin-left: 5vw;
        padding-left: 1vw;
    }

    .vl {
        width: 70vw;
        overflow: hidden;
    }

    .hr-wide {
        width: 70vw;
        height: 90vw;
        overflow-x: scroll;
        overflow-y: hidden
    }

}

/* FOR LAPTOP */
@media (min-width: 1024px) {
    .local-nav {
        width: 15%;
        top: 25vh;
        margin-left: 50px;
    }

    #project .t-h2 {
        font-size: clamp(10px, 2vw, 14px);
    }

    #project h3 {
        font-size: 12px;
    }

    .page {
        margin-top: 17vh;
    }

    #project h4 {
        font-size: 5.5vw;
        padding-left: 0;
    }

    #project .small-caps {
        padding-left: 0.5vw;
    }

    #project .bold-point {
        padding-left: 0;
    }

    #project .graphic-design .vl {
        margin-left: 0;
        margin-right: auto;
    }

    .vl:not(.vl-lg) {
        width: auto;
        height: 80vh;
    }

    .vl:not(.vl-lg) img {
        width: auto;
        height: 100%;
    }

    .hr-wide:not(.hr-gallery) {
        width: 70vw;
        height: auto;
        overflow-x: hidden;
    }

    .hr-wide:not(.hr-gallery) img {
        width: 100%;
        height: auto;
    }

    .hr-gallery {
        height: 75vh;
    }
}

@media (min-width: 1440px) {
    .local-nav {
        width: 13%;
    }

    #project .h1-box {
        right: -1vw;

        width: 65vw;
    }

    #project h4 {
        font-size: 5vw;
    }
    
    #project .graphic-design .vl:not(.vl-lg) {
        margin-left: 8vw;
    }
}

@media (min-width: 1920px) {
    #project .t-h2 {
        font-size: clamp(10px, 2vw, 20px);
    }

    #project h3 {
        font-size: 18px;
    }

    .img-text {
        font-size: 14px;
        letter-spacing: 8px;
        margin-bottom: 15px;
        margin-left: 15px;
    }

    #project .small-caps {
        font-size: 16px;
    }

    .shortline-notice {
        font-size: 18px;
    }

    #project .bold-point {
        font-size: 18px;
    }

    #project .text-box p {
        font-size: 20px;
        width: 30vw;
    }
}