/* 
    Utils 
*/

/* Project */
.page {
    
}

.page__footer {
    margin-top: 5vh;
    padding: 1rem;
}

/* Desktop */
@media only screen and (min-width: 48rem) {
    .page__footer {
        display: flex;
        grid-column: 1/-1;
        align-items: flex-end;
    }

    .page__footer__half {
        text-wrap: balance;
        width: 50%;
    }
}

/* Info */

.info__header {
    padding: 1rem;
    margin: 4rem 0 10vh;
}

.info__header__link:not(:last-child):after {
    content: ", "
}

.info__section {
    padding: 1rem;
}

.info__section:not(:last-child) {
    margin-bottom: 2rem;
}

.info__section__half:first-child {
    margin-bottom: 1em;
}

.info__header__half:last-child {
    display: none;
}

.team__previously {
    display: none;
}

.team__previously.open {
    display: none;
}

.team__button:hover {
    color: black;
}

.more-content {
    display: none;
}

.more-content.active {
    display: block;
}

/* Desktop */
@media only screen and (min-width: 48rem) {
    .info__header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto;
        /* gap: 1rem; */
        margin: 0 0 10vh;
        height: 100vh;
    }

    .info__header__half {
        grid-row: 2;
    }

    .info__header__half:last-child {
        display: block;
    }

    .info__section {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        scroll-margin-top: 4rem;
    }

    .info__section__quarter {
        grid-column: span 1;
        padding-right: 1rem;
    }

    .info__section__half {
        grid-column: span 2;
    }

    .info__section:not(:last-child) {
        margin-bottom: 15vh;
    }

    .info__header__half:first-child,
    .info__section__half:first-child {
        padding-right: 1rem;
    }
}

/* Info comma and parenthesis fix */
.comma-after:first-child::before {
    content: "(";
}

.comma-after:last-child::after {
    content: ")";
}

/* Text */

.text {
    margin-top: 15vh;
    padding: 1rem;
    margin-bottom: 33vh;
}

.text__header,
.text__aside {
    margin-bottom: 2rem;
}

/* Desktop */
@media only screen and (min-width: 48rem) {
    .text {
        margin-top: 0;
        margin-left: 50%;
    }

    .text__header {
        text-align: right;
        margin: 0;
    }

    .text__aside {
        position: fixed;
        bottom: 1rem;
        left: 1rem;
        align-self: flex-end;
        max-width: 25vw;
        margin: 0;
    }

    .text__content {
        margin-top: 4rem;
        grid-column: 2/3;
        grid-row: 1/3;
    }
}


/* Object */
.grid-space-calc {
    display: flex;
    flex-direction: column;
}

.object {
    position: relative;
    display: none;
    height: fit-content;
}

.object.visible {
    display: block;
    animation: fade-in 500ms 700ms ease both;
}

.object img,
.object svg {
    pointer-events: none;
}

.object h2 {
    font-size: 0.98rem !important;
    padding-top: 0.25rem;
}

.object h2.hidden {
    opacity: 0;
}

.object__image {
    object-fit: contain;
    object-position: 0% 0%;
}

.object__image svg {
    height: 100%;
    width: unset;
    object-fit: contain;
    object-position: 0% 0%;
}

/* Max-height Image */
.home .object__image,
.home .object__image svg,
.lense .object__image,
.lense .object__image svg {
    max-height: calc(100vw/25 * 15);
}

/* Max-height Image */
.project .object__image,
.project .object__image svg {
    max-height: calc(100vw/25 * 25);
}

/* Max-height Image */
.trope .object__image,
.trope .object__image svg {
    max-height: calc(100vw/25 * 16);
}

/* Desktop */
@media only screen and (min-width: 48rem) {
    .grid-space-calc.center {
        justify-content: center;
    }

    /* Max-height Image */
    .home .object__image,
    .home .object__image svg,
    .lense .object__image,
    .lense .object__image svg {
        max-height: calc(100vw/55 * 14);
    }

    /* Max-height Image */
    .project .object__image,
    .project .object__image svg {
        max-height: calc(100vw/55 * 32);
    }

    /* Max-height Image */
    .trope .object__image,
    .trope .object__image svg {
        max-height: calc(100vw/55 * 20);
    }
}


/* Blocks */
.block-heading {
    margin: 0 0 1em
}
.block-heading:not(:first-child) {
    margin: 2em 0 1em;
}

.block-quote {
    margin: 2em 0 2em 6em;
}


/* 
    Projects 
*/

.projects {
    padding: 6rem 1rem 4rem;
}

.projects__project {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

/* Mobile only */
@media only screen and (max-width: 60rem) {
    .projects__project .title {
        width: 100%;
    }

    .projects__project .name {
        width: 100%;
    }

    .projects__project .kind,
    .projects__project .area {
        display: none;
    }

    .projects__project .status {
        width: 100%;
        order: 4;
    }


    .projects__project .location {
        display: flex;
    }

    .projects__project .location::after {    
        content: "; ";
        margin-right: 0.5em;
    }
}


/* Desktop */
@media only screen and (min-width: 60rem) {
    .projects {
        padding: 15vh 1rem 15vh;
    }
    .projects__project {
        display: grid;
        position: relative;
        grid-template-columns: 2.75rem calc(50% - 2.75rem) calc(50%/3) calc(50%/3) calc(50%/3 - 5.5rem) 5.5rem;
        margin-bottom: 0;
    }
    
    .projects__project.link:hover {
        color: #FF8CC8;
        cursor: pointer;
    }

    .projects__project * {
        white-space: nowrap;
    }

    .projects__project .status {
        display: none;
    }
}

/* Desktop Large  */
@media only screen and (min-width: 92rem) {
    .projects__project {
        display: grid;
        grid-template-columns: 2.75rem calc(50% - 2.75rem) calc(50%/4) calc(50%/4) calc(50%/4) calc(50%/4 - 5.5rem) 5.5rem;
    }

    .projects__project .status {
        display: block;
    }
}