*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    font: inherit;
    font-family: "Montserrat", sans-serif;
    color: var(--clr-primary);
}

html,
body {
    height: 100%;
    width: 100%;
}
html {
    /* scroll-behavior: smooth; */
}
img,
picture,
svg {
    max-width: 100%;
}

li, a {
    color: var(--clr-primary);
    list-style-type: none;
    text-decoration: none;
}

:root {
    --margin: min(2.5rem, 2.5vw);
    --margin-fixed: 2.5rem;
    --margin-medium: min(16rem, 5vw);
    --nav-height: 3.4375rem;

    --content-height: 600px;

    --clr-primary: rgb(0, 0, 0);
    --clr-secondary: rgb(82, 82, 82);
    --clr-translucent: rgba(217, 217, 217, 0.5);
    --clr-glass: rgba(255, 255, 255, 0.8);

    --bg-contrast: rgb(247, 247, 247);

    --gap: 0.5rem;
    --gap-medium: 1rem;
    --gap-large: 1.5rem;

    --fs-300: 0.75rem; /* 12px */
    --fs-400: 1rem; /* 16px */
    --fs-500: 1.5rem; /* 24px */
    --fs-600: 1.875rem; /* 30px */
    --fs-xl: 2.5rem; /* 40px */

    --fw-600: 600;
    --fw-700: 700;
}
.container {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--margin);
    /* height: 100%; */
    overflow: hidden;
    max-width: 1920px;
    margin-bottom: 5rem;
    padding-bottom: 2rem;
}
.container-med {
    max-width: 1600px;
}
.fixed-margin {
    padding-inline: var(--margin-fixed);
}
.medium {
    padding-inline: var(--margin-medium);
}
.header {
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    z-index: 3;
}
.nav-bar {
    height: 100%;
}
.nav-list {
    display:flex;
    gap: 1rem;
    font-size: var(--fs-300);
}
.nav-hamburger {
    z-index: 9999;
    display: none;
    overflow: hidden;
    border-color: transparent;
    background-color: transparent;
}
.nav-svg-open {
    display: none;
}
.primary-nav {
    display: flex;
}
.primary-nav[data-visible="true"]  .nav-list {
    transform: translateX(0);
}
.primary-nav[data-visible="true"] .nav-svg-open {
    display: block;
}
.primary-nav[data-visible="true"] .nav-svg-closed {
    display: none;
}
.nav-spacer {
    height: var(--nav-height);
}

header h1 {
    font-size: var(--fs-400);
    text-transform: uppercase;
    font-weight: var(--fw-600);
}
.translucent {
    /* border-bottom: 1px solid var(--clr-translucent); */
    background-color: white;
}
@supports (backdrop-filter: blur(20px)) {
    .translucent {
        background-color: var(--clr-glass);
        backdrop-filter: blur(20px);
    }
}
.flex {
    display: flex;
}
.split {
    justify-content: space-between;
    align-items: center;
}
.landing-container {
    height: min(100vh - var(--nav-height) - var(--margin), 100vw * (5/4));
    margin-bottom: var(--margin);
}
.landing {
    width:100%;
    /* aspect-ratio: max(4/5); */
}
.maxed-aspect {
    aspect-ratio: max(4/5);
}
.cover-container {
    position: relative;
}
.landing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cover-image-wrapper {
    width: 100%;
    height: 100%; 
    position: absolute;
}
.cover-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 0;
}
.cover-landing {
    position: relative;
}
.landing-text {
    position: absolute;
    top: 0;
    height: 100%;
    /* width: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
}
.eclipsed-image {
    height: 75%;
    bottom: 0;
}
.eclipse-text {
    display: flex;
    position: absolute;
    height: 50%;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.eclipse-text svg {
    max-width: 90%;
    width: 50rem;
}
.landing-title h1 {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: white;
}
.landing-title h2 {
    font-size: var(--fs-600);
    font-weight: var(--fs-500);
    color: white;
}
.relative {
    position: relative;
    width: 100%;
    height: 100%;
}
.eclipse-title {
    position: absolute;
    height: 50%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    flex-direction: column;
    flex: 1;
}
.allcaps {
    text-transform: uppercase;
}
.contrast {
    background-color: var(--bg-contrast);
}

.image-text-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-cover {
    position: absolute;
    top: 0;
    padding: 2rem 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}
.text-cover h2 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-700);
    color: white;
}
.text-cover h3 {
    font-size: var(--fs-600);
    font-weight: 500;
    color: white;
}
.cover {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}
.photo-aspect img {
    aspect-ratio: 4/3;
}
.section-header {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    
}
.section-header-eclipse {
    position: relative;
    margin-left: var(--gap);
    margin-bottom: 0;
    display: inline-block;
    transform: translateY(50%);
    z-index: 2;
    text-transform: uppercase;
}
.section-header h2 {
    font-size: var(--fs-500);
    font-weight: 700;
    color: var(--clr-secondary);
    /* color: var(--clr-secondary); */
}
.card-holder {
    display: flex;

    gap: var(--gap-large);
    margin-inline: auto;
    overflow: hidden;
}
.card {
    flex: 1 0 300px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-medium);
    width: 500px;
    /* background-color: white; */
    /* padding: 1rem; */
    /* height: var(--content-height);
    width: var(--content-height); */
}
.card > div {
    flex: 1;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit:contain;
    aspect-ratio: 1;
    cursor: pointer;
    /* border: 1px solid var(--clr-secondary); */
    padding: 1rem;
    /* background-color: var(--clr-secondary); */
}
.text-image-section {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-large);
    margin-left: 10vw;
    margin-right: 10vw;
    margin-bottom: var(--gap-large);    
}
.text-image-section > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--gap-large);
    min-width: 200px;
}
.text-image-section > div:first-child {
    flex:2;
}
.text-image-section h2 {
    font-size: var(--fs-500);
    font-weight: 500;
}
.flex-reverse {
    flex-direction: row-reverse;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 300, 1fr));
    gap: var(--gap);
}
.slim {
    width: 80%;
}
.gallery > div,
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bottom-right {
    position: absolute;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--gap-large);
    width:100%;
    height: 100%;
}
.btn {
    padding: 0.75rem 1rem;
    border: 1px solid black;
    /* border-radius: 0.25rem; */
    border-collapse: separate;
    transition: 
        background-color 10ms ease-in,
        color 10ms ease-in;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-300);
    font-weight: var(--fw-600);
    text-transform: uppercase;
}
/* .btn::after {
    content: "";
    display: block;
    margin-inline: auto;
    height: 1px;
    background-color: black;
    width: 0%;
    transition: width 300ms ease-in;
}
.btn:hover::after {
    width:100%;
} */
.btn:hover {
    background-color: black;
    color: white;
}

.float-right {
    float: right;
}
.gallery-wide {
    grid-column: span 2 / auto;
}
.flex-grid {
    display: grid;
    gap: var(--gap);
    margin-bottom: var(--gap);
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    overflow: hidden;
}
.flex-grid > * {
    min-height: 200px;
    aspect-ratio: 3/2;
}
.project-cover {
    display: flex;
    flex-wrap: wrap-reverse;
    /* gap: var(--gap-large); */
}
.project-cover > * {
    flex: 9999 1 calc(800px - var(--margin) * 2);
    
}
.project-cover > *:first-child {
    flex: 1 1 calc(600px - var(--margin) * 2);
}
.project-cover-image {
    flex: 3;
    width: 60%;
    right: 0;
}
.project-cover-text {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.project-cover h1 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-700);
    text-transform: uppercase;
}
.project-cover h2 { 
    font-size: var(--fs-500);
    font-weight: 500;
    text-transform: uppercase;
}
.project-cover > .cover-image-wrapper {
    width: 75%;
}


.test-image-text-wrapper {
    position: relative;
}
.test-image-text-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.test-cover {
    width: 100%;
    height: 100%;
    top:0;
    position: absolute;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--gap-large);
}

.landing-container-test {
    min-height: min(100vh - var(--nav-height) - var(--margin), 100vw * (5/4));
    margin-bottom: var(--margin);
}

.test-grid {
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(min(600px, 100%), 1fr));
    gap:var(--gap);
    margin-bottom:var(--gap);
    overflow: hidden;
}
.test-grid > div {
    /* height: var(--content-height); */
    width: 100%;
    aspect-ratio: 16/9;
}
.test-cover-container {
    position: relative;
}
.test-cover-container img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.test-text-cover {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    padding: var(--margin);
    flex-direction: column;;
}

.test-text-cover h2,
.test-text-cover h3 {
    color:white;
}
.test-text-cover h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
}
.test-text-cover h3 {
    font-size: var(--fs-500);
    font-weight: 400;
}
.bottom-left {
    justify-content: flex-end;
    align-items: flex-start;
}
.top-center {
    align-items: center;
}

.tri-grid {
    display: grid;
    min-height: var(--content-height);
    background-color: var(--bg-contrast);
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-medium)
}
.tri-grid > div {
    border: 1px solid red;
}
.tri-grid > div:nth-child(1) {
    grid-row: span 2;
}

.three-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-medium)
}
.three-grid img {
    border: 1px solid var(--clr-secondary);
}
.three-grid > div {
    /* border: 1px solid red; */
    /* aspect-ratio: 1; */
}
.three-grid h2 {
    font-size: var(--fs-500);
    font-weight: 700;
    text-transform: uppercase;
    margin-block: 0.25rem;
}


.img-row {
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(min(600px, 100%), 1fr));
    gap:var(--gap);
    margin-bottom:var(--gap);
    overflow: hidden;
}

.footer {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: rgb(122, 122, 122);
    font-size: .75rem;
    flex-direction: column;
}

@media only screen and (max-width: 833px) {
    .nav-list {
        position: fixed;
        flex-direction: column;
        z-index: 1000;
        height: 100vh;
        inset: 0 0 0 30%;
        background-color: white;
        padding: min(30vh, 10rem) 3em;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 200ms ease-out;
    }
    .nav-hamburger {
        display: flex;
    }
    :root {
        --content-height: 500px;
    }
    /* .test-grid {
        grid-template-columns: 1fr;
    } */
}