/* ============================================= */
/* GENERAL */
/* ============================================= */

/* Tablet styles: 600px – 1200px */
@media (min-width: 600px) and (max-width: 1200px) {
    
}

/* Tablet styles: 1200px – 1400px */
@media (min-width: 1200px) and (max-width: 1400px) {
    
}

/* Screens styles bigger than 1900px */
@media (min-width: 1900px) {
    
}

/* Mobile styles: up to 700px */
@media only screen and (max-width: 700px) {

    /* General */

    html,
    body {
        overscroll-behavior: none !important;
    }

    :root{
        --header-height:70px;
        --top-height: calc(30px + var(--header-height));
        --top-height_s: calc(90px - var(--header-height));
        --row-gap: 60px;
        --row-gap-small: 20px;
        --row-gap-medium: 55px;
        
        --main-gutter: 18px;
        --main-margin: 18px;
        --main-padding: 16px;
        --main-padding_s: 12px;

        --t-xxsmall: 12px;
        --t-xsmall: 13px;
        --t-small: 15px;
        --t-medium: 17px;
        --t-body: 17px;
        --t-xmedium: 20px;
        --t-large: 21px;
        --t-xlarge: 26px;
        --t-xxlarge: 46px;
        --t-huge: ;

        --lh-xxsmall: 15px;
        --lh-xsmall: 20px;
        --lh-small: 22px;
        --lh-medium: 27px;
        --lh-body: 25px;
        --lh-xmedium: 27px;
        --lh-large: 28px;
        --lh-xlarge: 33px;
        --lh-xxlarge: 50px;
    }

    button, a {
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }

    .main-grid,
    .central-grid_s,
    .central-grid,
    .central-grid_l,
    [data-template="about"] main * {
        grid-column: 1/-1;
        grid-template-columns: repeat(8, 1fr); 
    }

    h3, h3>*, a {
        font-size: var(--t-xmedium);
        line-height: var(--lh-xmedium);
    }

    /* mask the crome mobile bottom gap */

    body::before {
        content: "";
        position: sticky;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: 8;
        height: calc(var(--header-height) + 20px);
        top: calc(var(--full-height));
    }

    main {
        margin-top: calc((var(--header-height) + 20px) * -1);
    }

    
    /* MENU */
    
    .menu {
        bottom: 0;
        top: unset;
        justify-content: center;
        align-items: end;
        min-height: var(--header-height);
        width: var(--full-width);
        padding: 0 var(--main-margin) 22px var(--main-margin);
    }
    
    .menu--logo-mobile {
        display: flex;
        justify-content: center;
        position: fixed;
        width: var(--full-width);
        height: 70px;
        padding-top: 22px;
        top: 0;
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-in;
    }
    
    body.hero-closed .menu--logo-mobile {
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.3s ease-in;
    }
    
    .languages--wrapper {
        position: relative;
    }
    
    .language.--active {
        order: 2;
    }
    
    .language {
        position: absolute;
        order: 1;
    }
    
    .menu--nav {
        margin-left: -20px;
    }

    [data-template="about"] .menu-bg,
    body[data-template="about"]::before {
        background: var(--about-color);
    }
    [data-template="essays"] .menu-bg,
    body[data-template="essays"]::before {
        background: var(--essays-color);
    }
    [data-template="essay"] .menu-bg,
    body[data-template="essay"]::before {
        background: var(--essay-color);
    }
    [data-template="glossary"] .menu-bg,
    body[data-template="glossary"]::before {
        background: var(--glossary-color);
    }

    [data-template="about"] .menu--logo-mobile.menu-bg {
        background: linear-gradient(to bottom, var(--about-color) 0%, var(--about-color) 40%, transparent 100%);
    }
    [data-template="essays"] .menu--logo-mobile.menu-bg {
        background: linear-gradient(to bottom, var(--essays-color) 0%, var(--essays-color) 40%, transparent 100%);
    }
    [data-template="essay"] .menu--logo-mobile.menu-bg {
        background: linear-gradient(to bottom, var(--essay-color) 0%, var(--essay-color) 40%, transparent 100%);
    }
    
    [data-template="glossary"] .menu--logo-mobile.menu-bg {
        background: linear-gradient(to bottom, var(--glossary-color) 0%, var(--glossary-color) 40%, transparent 100%);
    }

    .button--back {
        right: calc(50%);
        top: unset;
        bottom: 20px;
        transform: translateX(50%);
    }

    /* FOOTER */

    footer h5 {
        font-size: var(--t-xxsmall);
        line-height: var(--lh-xxsmall);
    }
    
    footer.main-grid {
        padding: 20rem var(--main-padding) 7.5rem var(--main-padding) !important;
    }
    
    .FBAUP {
        margin: 12px 0 2.5rem 40px 0;
    }

    .issn {
        text-wrap: nowrap !important;
        display: flex;
        justify-content: center;
        gap: 6px;
    }
    
    /* SLIDER */
    
    #essays-slider {
        height: calc(var(--full-height) - (var(--header-height) * 2));
        min-height: unset;
    }
    
    #highlited--essays-wrapper {
        align-items: center;
    }
    
    .essay--slide {
        display: flex;
        max-height: 100%;
        padding-top: 0;
        height: clamp(470px, 60vh, 720px);
    }
    
    .essay--cover {
        aspect-ratio: 9 / 13;
        /* margin-top: 6rem; */
        /* margin-bottom: 6rem; */
        width: 100%;
        height: auto;
        max-height: 100%;
    }
    
    .essay--cover-text {   
        padding: 21px 20px 26px 20px;
        align-items: center;
        justify-content: space-between;
    }
    
    .essay--cover-text h2,
    .essay--cover-text h1 {
        font-size: var(--t-xmedium);
        line-height: 25px;
        margin-top: 0;
    }
    
    .essay--cover-text h6 {
        font-size: var(--t-xsmall);
        line-height: var(--lh-xsmall);
        position: static !important;
    }
    
    
    /* ESSAYS */

    .hero--home h1 {
        top: 15vh;
        transform: translate(-50%);
        letter-spacing: 6px;
        text-wrap: unset;
        width: 90%;
        text-align: center;
        font-size: 25px;
        line-height: 33px;
    }

    .hero--home h3 {
        display: flex;
        bottom: 10vh;
        gap: 0;
        letter-spacing: 2px;
        flex-direction: column;
    }
    .hero--home h3 span {
        font-size: 18px !important;
    }

    .hero--home svg {
        bottom: 50%;
        width: 31px;
    }
    
    
    #essayListHead {
        display: flex;
        flex-direction: column;
    }
    
    .essay--info-foot {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .dot-line {
        transform: translateY(18px);
    }
    
    #essays-slider h2 {
        line-height: 26px;
    }
    
    /* ABOUT */
    
    /* [data-template="about"] main *:not(.t-large *) {
        text-align: center;
        } */
        
    [data-template="about"] main h3 ~ *{
        text-align: center;
    }

    [data-template="about"] main {
        padding-top: 10rem;
    }
    
    .topic--module ul {
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .topic--module ul h3:nth-child(2) {
        display: none;
    }
    
    [data-template="about"] main .t-large {
        grid-column: 1 / -1;
        margin-bottom: 4rem !important;
        text-align: left;
    }

    #text a,
    .group--letter,
    .topic--title,
    .glossary-tag {
        font-size: var(--t-xmedium);
        line-height: var(--lh-xmedium);
    }

    .topic--module *,
    .team--module a {
        font-size: var(--t-body);
        line-height: var(--lh-body);
    }

    .essays--list  {
        margin-top: clamp(3rem, 1rem, 3rem);
    }

    body[data-template="about"] #gallery {
        grid-column: 2 / -2;
        margin: 0;
    }
    
    /* GLOSSARY */

    .tag-group {
        display: flex;
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .tag-group:first-of-type {
        margin-top: 70px;
    }

    .topic-group {
        margin-bottom: 60px;
    }

    #glossary h2 {
        padding: 0 0 8px 0;
        background: var(--glossary-color);
        top: 0;
        /* position: sticky; */
        height: 100px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    [data-template="glossary"] main {
        padding-top: 80px;
    }

    .topic--title {
        margin-bottom: 25px;
    }

    #essayHead h1 {
        font-size: var(--t-xlarge);
        line-height: var(--lh-xlarge);
        order: 1;
        text-align: center;
        text-wrap: pretty;
        text-wrap: pretty !important;
        /* text-wrap: balance; */
    }

    .essay-topic {
        order: 2;
        margin-bottom: 45px;
    }

    .reading-time {
        display: none;
    }

    .essay-title {
        margin-top: 45px;
    }
    .essay-authors {
        margin-bottom: 45px;
    }

    #essayLayout #heading {
        font-size: var(--t-body);
        line-height: 23px;
    }

    #quote:not(:first-child), #quote:not(:last-child) {
        margin: -2.5rem 0 19px 0;
    }

    #quote,
    #quote p {
        font-size: var(--t-body);
        line-height: var(--lh-body);
    }

    #image.smaller {
        width: 100%;
    }

    #gallery {
        gap: 12px;
    }

    .footnote-list {
        display: flex;
        flex-direction: column;
        transform: translateX(var(--main-padding));
        margin-bottom: 4rem;
        padding-right: var(--main-padding);
    }

    .footnote-list li {
        padding-left: 8px;
    }

    .footnote-modal-number {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footnote-modal-text {
        grid-column: 1 / -1;
        text-align: center;
        padding: 0 var(--main-margin);
    }

    figcaption, figcaption>* {
        font-size: var(--t-xsmall);
        line-height: 16px;
        padding-top: 13px !important;
        text-align: left !important;
    }





    
}