/* -------------------------------------------------- home -------------------------------------------------- */

body {  
    width: 100vw;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto 85svh;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
        "header"
        "nav";
}
*{
    position: relative;
    /*    float: left;*/
}

header { grid-area: header; }

nav { 
    grid-area: nav; 
    height: calc(100% - 1vw); 
    padding: 0 1vw 1vw 0; 
    width: 100vw; 
    max-width: 100vw;
}

nav a{
    font-size: clamp(6svh,7.95vw,15svh);
    line-height: 1;
    /*        background: red;*/
    height: 100%;
    /*    width: inherit;*/
}


nav#topNav ul { 
    position: relative;
    height: 80svh; 
    width: 100%; 
    /*
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    align-content: space-between;
    flex-direction: row;
    gap:2vw;
    align-items: flex-end
    */

    display: grid;
    justify-items: start;
    align-items: end; 
    justify-content: space-around !important;
    grid-template-columns: auto auto auto;
    grid-template-rows: 75% 25%;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
        "event events about"
        "locations events about";
}
nav>ul li a{ 
    writing-mode: vertical-lr; 
    height: auto; 
    display: flex; 
    align-content: center; 
    align-items: center; 
    justify-content: center;
}
/*
nav a.events{
width: 20vw;
}    
nav a.about{
width: 12vw;
}
*/

nav #currentEvent{
    grid-area: event;
    position: relative;
    padding-bottom: calc(var(--font-size) + 2vw);
}

nav .events.book{
    transform: rotate(16deg);
    transform-origin: right bottom;
    margin-right: 0;
    line-height: 1;
    padding: 1vw 3vw 1vw 4vw;
    text-align: center;
    position: relative;
    bottom: 0;
    right: clamp(8svh,4vw,8svh);
    right: clamp(4svh,4vw,8svh);
    width: 20vw;
    height: 40vw;
    max-height: 65svh;

    grid-area: events;
}
nav .events.book a{
    height: 40vw;
    max-height: 65svh;
    width: 100%;
}
nav .about.book{
    transform: rotate(4deg);
    transform-origin: right bottom;
    margin-right: 0;
    line-height: 1;
    padding: 1vw 1vw 1vw 3vw;
    text-align: center;
    position: relative;
    bottom: 0;
    right: 0vw;
    width: 12vw;
    height: 45vw;
    max-height: 80svh;

    grid-area: about;
}
nav .about.book a{
    height: 45vw;
    max-height: 80svh;
    width: 100%;
}

nav .book.locations{   
    z-index: 2;
    margin: 0;
    margin-right: 0;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: calc(var(--font-size) + 2vw);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    position: relative;
    /*    background: var(--locationsClr);*/
    font-size: clamp(6svh,7.95vw,15svh);
    /*    height: 15vw;*/
    padding:3vw 3vw 1.5vw 3vw ;
    line-height: 1;
    text-align: center;
    transform-origin: bottom left;
    transform: rotate(-4deg);
    width: calc(100% - (clamp(8svh,4vw,8svh) / 3));
    height: 11vw;
    max-height: 18svh;

    grid-area: locations;
}
nav .book.locations a{
    writing-mode: initial;
}
nav .book.locations a span{
    transform: rotate(0deg);
}


nav .book span{ transform: rotate(180deg); text-align: center;}

main { 
    grid-area: main; 
    height: calc(100% - 4vw); 
    padding: 0 0 2vw 2vw; 
    max-width: 55vw; 
    max-width: 55vw;
    width: 55vw;
}

#content{
    height: 100%;
    width: calc(50vw - (clamp(8svh,4vw,8svh) / 3));
    /*    width: calc(100% - (clamp(8svh,4vw,8svh) / 3));*/
    display: flex;
    align-items: flex-end;
    padding: 0;
}
#content .event, #content>a{
    width: 100%;
}

#content .event .book.title{
    position: relative;
    margin: 0;
    line-height: 1.1;
    margin-bottom: 1vw;
    margin-left: clamp(4svh,2vw,4svh);
    height: clamp(35svh,20vw,20svh);
    /*    max-height: 30svh;*/
    transform-origin: bottom left;
    transform: rotate(-10deg);
    background: var(--eventClr);
    color: #000000;
    text-align: center;
    width:  calc(50vw + (clamp(8svh,4vw,8svh) / 3));
    width:  52vw;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    padding: 3vw;

    writing-mode: initial;
}
#content .event h2 {
    /*    font-size: calc(var(--font-size) + var(--ratio)) !important;*/
    /*    font-size: clamp(4svh,calc(var(--font-size) - var(--ratio)),calc(var(--font-size) + var(--ratio))) !important;*/
    font-size: clamp(4svh,2vw,4svh);
    margin: unset; 
    width: 100%;
}
#content .event p {
    /*    font-size: calc(var(--font-size) + var(--ratio)) !important;*/
    /*    font-size: clamp(4svh,4vw,8svh) !important;*/
    padding-top: 2svh; 
    font-size: clamp(4svh,6.5vw,10svh) !important;
}

#content .event:hover  .book, nav .book:hover{
    background: var(--color);
    color: var(--background);
}
#content #Newsevent.event{
    cursor: default;
}
#content #Newsevent.event *{
    font-size: clamp(4svh,2vw,4svh) !important;
}
#content #Newsevent.event:hover .book{
    background: var(--color);
    color: var(--background);
}
#content #Newsevent.event .book a{
    text-decoration: underline;
    text-decoration-skip-ink: none;
    writing-mode: initial;
    display: inline;
}

#content #Newsevent.event .book a:hover{
    color: var(--background);
}



@media all and (max-width: 780px) and (orientation: portrait){

    /* -------------------------------------------------- home -------------------------------------------------- */
    body.home{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0px 0px;
        grid-auto-flow: row;
        grid-template-areas:
            "header"
            "nav";
        overflow-y: auto;
        min-height: 100svh;
        height: auto;
        max-height: unset;
        padding-bottom: 5svh;
    }
    nav#topNav ul{
        position: relative;
        height: auto;
        width: 100%;
        display: grid;
        justify-items: center;
        align-items: end;
        justify-content: space-around !important;
        grid-template-columns: 100%;
        grid-template-rows: auto;
        gap: 0px;
        grid-auto-flow: row;
        grid-template-areas:
            "event"
            "events"
            "locations"
            "about";

        padding: 1svh 0;
    }
    header{
        font-size: 18.5vw;
        line-height: 0.8;
        padding:  4svh 2vw 0 2vw !important;
    }
    nav{
        height: auto;
        padding: 2vw;
        width: 100vw;
        max-width: 100%;
    }
    nav a.events, nav a.about{
        width: 100%;
    }

    nav .events.book, nav .about.book {
        transform: rotate(0deg);
        right: unset;
        width: 100%;
        max-width: 100%;
        background: transparent;
        height: auto;
        padding: 0;
        margin: 2vw 0;
    }
    nav .book.locations{
        margin-bottom: 0;
        padding: 8svh 0 7svh 0;
        width: 100%;
        transform: rotate(-1deg);
        margin: 1vw 0 0 0;
    }
    nav .events.book a {
        transform: rotate(0.5deg);
        right: unset;
        width: 100%;
        max-width: 100%;
    }
    nav .about.book a{
        transform: rotate(0.5deg);
        right: unset;
        width: 100%;
        max-width: 100%;
    }
    nav .events.book a, nav .about.book a{
        transform-origin: center;
        margin-right: 0vw;
        line-height: 1;
        padding: 4svh 0 3svh 0;
        text-align: center;
        height: auto;
        writing-mode: unset;
        font-size: 18.5vw;
        position: relative;
    }

    nav .events.book a{
        background: var(--eventsClr);
    }
    nav .about.book a{
        background: var(--aboutClr);
    }
    nav .book span {
        transform: rotate(0deg);
        text-align: center;
        color: #000000;
    }
    nav #currentEvent{
        width: 100%;
        padding-bottom: 0;
    }
    main{
        padding: 2vw;
        padding-bottom: 4svh;
        height: 100%;
        width: 100%;
        max-width: 100%;
    }

    #content{
        width: 100%;
        height: auto;
    }
    #content a{
        width: 100%;
        height: auto;
    }

    #content .event{
        display: flex;
        flex-direction: column-reverse;
        padding: 4svh 4vw;
        background: var(--eventClr);
        height: 100%;
        align-items: center;
        justify-content: center;
        transform: rotate(-1deg);
    }

    #content .event .book.title{
        /*        font-size: calc(var(--font-size) + var(--ratio) - 2px) !important;*/
        font-size: clamp(4svh,4vw,8svh) !important;
        line-height: 1.1;
        padding: 0;
        transform-origin: center;
        transform: rotate(0deg);
        margin-bottom: 0vw;
        margin-left: 0vw;
        margin-right: 0vw;
        background: transparent;
        /*        width: 100%;*/
        width: auto;
        height: auto;
        max-height: auto;
    }
    #content .event h2{
        font-size: calc(var(--font-size) - (var(--ratio) / 2) - 2px);
    }
    nav .book{
        width: 100%;
    }

    #content .event:hover  .book, nav .book:hover{
        background: inherit;
        color: inherit;
    }
    .locations.book:hover{
        background: var(--locationsClr);
    }
    #content #Newsevent.event:hover .book{
        background: inherit;
        color: inherit;
    }
    #content #Newsevent.event .book a:hover{
        color: inherit;
    }
}