/* ============================================ */
/* ============= QUERIES.CSS ================= */
/* Breakpoints: 768px (tablet), 480px (mobile) */
/* ============================================ */


/* ============================================ */
/* =============== TABLET ==================== */
/* max-width: 820px                             */
/* ============================================ */

@media (max-width: 820px) {

    /* --- NAVIGATION --- */
    .fixed_nav2 {
        left: 0em;
        right: 0em;
        width: auto;
        max-width: calc(100vw - .5em);
        box-sizing: border-box;
        padding: 0.4em .75em;
    }

    .navtext a{
        width: 75%;
        font-size: 1em;
    }

    .middle {
        width: 60%;
        justify-content: space-evenly;
        text-align: center;
    }


    /* --- FOOTER --- */

    .square1,
    .square2,
    .square3,
    .square4 {
        width: 50%;
        height: auto;
        padding: 0em 0 0em 0;
    }

    .square1 h3,
    .square2 h3{
        font-size: 1em;
    }

    .square1 a,
    .square2 a{
        font-size: .65em;
    }

    .square2 a{
        position: relative;
        top: .5em;
    }

    .square4 {
        justify-content: flex-start;
        font-size: .8em;
    }

    .square4 p{
        position: relative;
        top: .65em;
    }

    .footer h3{
    border-bottom: solid 1px rgba(0, 0, 0, .1);
    width: 400%;
    }

    .sq1col2{
        padding-top: .5em;
    }

    .donate-btn{
       top: 8em;
        right: 0em;
    }


    /* --- LANDING PAGE --- */
    .header_name {
        font-size: 8vw;
    }

    .main1{
        padding: 0em 1em;
    }

    .main1A{
        border-radius: 20px;
    }

    .figcapLanding{
        left:32%;
    }


    /* --- ABOUT PAGE --- */
    .about_main {
        width: 100%;
        padding: 3.5em 1.25em 0em;
    }

    .about_body {
        flex-direction: column;
        gap: 1.5em;
    }

    .about_image {
        position: relative;
        top: auto;
        width: 100%;
    }

    .about_image img {
        width: 100%;
        height: auto;
    }

    .about_text h3 {
        font-size: 1.1em;
    }


    /* --- CHOREOGRAPHY PAGE --- */
    .choreo_main {
        padding: 4em 1.25em 0em;
    }

    .choreo_column2 {
        width: 100%;
    }

    .choreo_card_tops,
    .choreo_card_bottoms,
    .choreo_card_bottoms2 {
        flex-direction: column;
        gap: 1.25em;
    }

    .work_card2 {
        width: 100%;
    }


    /* --- WORK DETAIL PAGES (fragile, limbic, flesh) --- */
    .fragile_card,
    .limbic_card,
    .flesh_card {
        width: 55%;
    }

    .fragile_body_header,
    .limbic_body_header,
    .flesh_body_header {
        width: 100%;
    }

    .fragile_body,
    .limbic_body,
    .flesh_body {
        column-count: 1;
    }

    .flesh_image,
    .studies_image,
    .paradise_image{
        width: auto;
        object-fit: contain;
    }

    .fragile_main video{
        transform-origin: center;
    }
    #justin_web_short{
        object-fit:cover;
    }


    /* --- PARADISE / STUDIES PAGES --- */
    .paradise_card,
    .studies_card {
        width: 55%;
    }


    /* --- FOOTER --- */
    .footer {
        height: auto;
    }

    /* --- SUPPORT PAGE --- */
    .support_main {
        min-height: unset;
        height: auto;
        padding: 4em 1.25em;
    }

    .support_header {
        width: 100%;
    }

    .support_card_tops,
    .support_card_bottoms {
        width: 100%;
    }

    .calendar_main{
        height: 88vh;
        min-height: unset;
        padding: 4em 1.25em;
    }
}


/* ============================================ */
/* =============== MOBILE ==================== */
/* max-width: 480px                             */
/* ============================================ */

@media (max-width: 480px) {

    /* --- NAVIGATION --- */
    .fixed_nav2 {
        left: 0em;
        right: 0em;
        width: auto;
        max-width: calc(100vw - .75em);
        box-sizing: border-box;
        padding: 0.4em 0.75em;
        margin: 0 0.5em;
    }

    .navtext {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .middle {
        width: 80%;
        text-align: center;
        justify-content: space-evenly;
        font-size: 0.8em;
    }

    .end{
        justify-self: flex-end;
        font-size: .8em;
    }

    #logo {
        height: 1.25em;
    }


    /* --- FOOTER --- */

    .footer{
        padding-bottom: .25em;
    }
    .squares {
        flex-direction: column;
    }

    .square1,
    .square2,
    .square3,
    .square4 {
        width: 100%;
        height: 2.25em;
        padding: 0em 0 .5em .5em;
    }
    .square1 a{
        font-size: .75em;
    }

    .donate-btn{
        top: auto;
        bottom: 1.75em;
        right: 0;
    }

     .square2 a{
        font-size: 1em;
        right: .2em;
     }

     .footer h3{
        margin-bottom: 0;
        width: auto;
     }

    .square4 {
        justify-content: flex-start;
    }

    .footer {
        margin: 0.5em;
    }

    .footer h3{
        border-bottom: solid 1px rgba(0, 0, 0, .1);
    }

    .sq1col2{
        padding-top: .5em;
    }


    p {
        font-size: 0.8em;
    }


    /* --- LANDING PAGE --- */
    .i_body{
    max-height: 100vh;
    }

    .header_name {
        font-size: 9vw;
    }
    .main1A {
        width: 90%;
        height: 15em;
        border-radius: 16px;
        /* border: 1px red solid; */
    }

    .main1{
        padding: 0;
    }

    .home_target{
        /* border: 1px red solid; */
        height: 13em;
        align-self: center;
    }

    .home_background{
        width: 110%;
    }

    .figcapLanding {
        visibility: hidden;
    }


    /* --- ABOUT PAGE --- */
    .about_main {
        width: 100%;
        padding: 4em 0.75em 1em;
        height: auto;
    }

    .about_body {
        flex-direction: column;
        gap: 1em;
    }

    .about_image {
        position: relative;
        top: auto;
        width: 100%;
        height: auto;
    }

    .about_image img {
        width: 100%;
        height: auto;
    }

    .about_text {
        padding: 0.75em;
    }

    .about_text h3 {
        font-size: 1em;
    }

    .about_text p {
        font-size: 0.8em;
    }

    .about_header {
        font-size: 1.5em;
    }


    /* --- CHOREOGRAPHY PAGE --- */
    .choreo_main {
        padding: 4em 0.75em 1em;
    }

    .choreo_column2 {
        width: 100%;
    }

    .choreo_card_tops,
    .choreo_card_bottoms,
    .choreo_card_bottoms2 {
        flex-direction: column;
        gap: 1em;
    }

    .work_card,
    .work_card2 {
        width: 100%;
    }

    .work_cardcard {
        width: 70%;
    }

    .choreo_header {
        font-size: 1.5em;
    }


    /* --- WORK DETAIL PAGES (fragile, limbic, flesh) --- */
    .fragile_card,
    .limbic_card,
    .flesh_card {
        position: relative;
        top: 0;
        margin-top: 4.5em;
        width: calc(100% - 1.5em);
        margin-left: 0.75em;
        margin-right: 0.75em;
        margin-bottom: 0.75em;
        overflow-y: visible;
        height: auto;
    }

    .fragile_body_header,
    .limbic_body_header,
    .flesh_body_header {
        width: 100%;
    }

    .fragile_body,
    .limbic_body,
    .flesh_body {
        column-count: 1;
    }

    .fragile_header,
    .limbic_header,
    .flesh_header {
        font-size: 1.2em;
    }

    /* --- FRAGILE / LIMBIC video background fix --- */
    #justin_web_short,
    #magician_web_short {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .fragile_card,
    .limbic_card {
        z-index: 10;
    }

    .fragile_main,
    .limbic_main,
    .flesh_main {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        position: static;
    }

    .footer {
        position: relative;
        z-index: 10;
        height: auto;
        margin-bottom: 0;
    }

    /* --- FLESH / STUDIES / PARADISE image fix --- */
    .flesh_image {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
    }

    .flesh_image,
    .studies_image,
    .paradise_image {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }


    /* --- PARADISE / STUDIES PAGES --- */
    .paradise_main,
    .studies_main {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .paradise_card,
    .studies_card {
        position: relative;
        top: 0;
        margin-top: 4.5em;
        width: calc(100% - 1.5em);
        margin-left: 0.75em;
        margin-right: 0.75em;
        margin-bottom: 0.75em;
        overflow-y: visible;
        height: auto;
    }

    .paradise_image,
    .studies_image {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1;
    }

    .paradise_header,
    .studies_header {
        font-size: 1.2em;
    }


    /* --- SUPPORT PAGE --- */
    .support_main {
        height: auto;
        min-height: 82vh;
        padding: 4em 0.75em 1.5em;
        flex-direction: column;
    }

    .calendar_main{
        height: auto;
        min-height:82vh;
        margin: 0;
        padding: 2em 1em;
    }

    .calendar_main h2{
        padding-top: 2em;
    }

    .support_header {
        width: 100%;
        font-size: 1.2em;
    }

    .support_card_tops,
    .support_card_bottoms {
        width: 100%;
    }

    .socialorgs a {
        font-size: 0.8em;
    }

    .square3 h3{
        font-size: 1em;
    }

}

