:root {

    --background: #1b1b1b;
    --white: #f7f4f4;
    --grey: #999999;
    /* Improved from #A7A7A7 */
    --grey-light: #D9D9D9;
    --grey-dark: #666666;
    /* Improved from #7C7C7C */
    --grey-darker: #5A5A5A;
    --transition: all 0.3s ease;
    --primary-font: 'Inter', sans-serif;
    --serif-font: 'Playfair Display-Regular', serif;

    color-scheme: light dark;

    font-synthesis: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    line-height: normal;
    color: var(--white);
    background: var(--background);
    background-color: var(--background);
    overflow-x: hidden;
}

a,
p,
h1,
h2,
h3,
h4,
h5,
span,
div,
h6 {
    font-family: var(--primary-font);
    color: var(--white);
    font-weight: 500;
    text-align: left;
    transition: var(--transition);
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 4rem;
}

h3 {
    font-size: 3rem;
}

.size1,
h4 {
    font-size: 2rem;
}

.size2,
h5 {
    font-size: 1.5rem;
}

span,
h6 {
    font-size: 1rem;
}

p {
    font-size: 1rem;
    line-height: 2rem;
}

a {
    font-size: 1.25rem;
    text-decoration: none;
}

span {
    display: flex;
    align-items: flex-end;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.3rem 1.5rem;
    margin: 0 1.875rem;
    z-index: 1000;
    border-bottom: 1px solid;
}

header .logo {
    font-weight: 400;
    font-size: 2.25rem;
    cursor: pointer;
}

header .logo:hover {
    color: var(--grey-light);
}

header input {
    display: none;
}

header label.active {
    display: none;
    cursor: pointer;
}

header nav a {
    margin: 0 1rem;
    padding: 0 0.5rem;
}

header nav a:hover {
    color: var(--grey-light);
}

header path {
    stroke: var(--white);
}

header svg:hover {
    scale: 1.1;
    transition: var(--transition);
}

main {
    margin-left: 1.875rem;
    margin-right: 1.875rem;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 2.3rem;
    padding-bottom: 2.3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.infoFlex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.3rem 1.5rem;
    margin: 0 1.875rem;
}

.infoFlex h4 {
    margin: 0 1rem;
    padding: 0.5rem 0;
}

.wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    align-items: center;
}

.wrap a {
    padding-right: 0.5rem;
    padding-top: 0.5rem;
}

.button {
    font-family: var(--primary-font);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 1rem;
    padding: 0.5rem 0.5rem;
    text-decoration: none;
    border: 1px solid var(--white);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}

.infoFlex .button:hover {
    background-color: var(--grey-light);
    color: var(--background);
    border: 1px solid var(--grey-light);
    transition: smooth;
    scale: 1.05;
}

.layoutGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.justifyEnd {
    justify-content: flex-end;
}

.imgContainer {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.backgroundColor {
    background-color: var(--white);
}

.project .imgContainer {
    cursor: pointer;
}

img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    display: block;
    filter: blur(10px);
    transition: object-position 5s ease-in-out;
}

.loaded {
    filter: blur(0);
}

.imageScroll {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
}



.carouselItem {
    display: none;
    justify-content: center;
    align-items: center;
}

.carouselItem.active {
    display: flex;
}

.carouselPrev,
.carouselNext {
    position: absolute;
    top: 5%;
    font-size: 1rem;
    color: var(--grey-light);
    background-color: transparent;
    border: solid var(--grey-light) 1.7px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carouselPrev:hover,
.carouselNext:hover {
    scale: 1.1;
}

.carouselPrev {
    left: 10px;
}

.carouselNext {
    right: 10px;
}

.project .imgContainer:hover {
    scale: 1.02;
    transition: var(--transition);
}

.container .video:hover {
    scale: 1.01;
    transition: var(--transition);
}


.project .infoFlex {
    padding: 0 0.5rem;
    margin: 0.8rem 1.875rem;
}

.project .borderTop {
    border-top: 1px solid;
    padding: 1rem 0.5rem;
}

.container {
    max-width: 2800px;
    height: auto;
}

.container .sixColumns {
    border: var(--grey-dark) solid 1px;
    border-radius: 15px;
    padding: 1rem;
    margin-top: 3rem;
    min-height: 700px;
}

.container .sixColumns .imgContainer:hover {
    scale: 1.01;
    transition: var(--transition);
}

.container .sixColumns:nth-child(even) {
    direction: rtl;
}

.container .sixColumns:nth-child(even) .imgContainer,
.container .sixColumns:nth-child(even) div:nth-child(2) span,
.container .sixColumns:nth-child(even) p,
.container .sixColumns:nth-child(even) a,
.container .sixColumns:nth-child(even) button {
    direction: ltr;
}

.container .sixColumns:nth-child(even) h4,
.container .sixColumns:nth-child(even) h5 {
    text-align: left;
}

.container .sixColumns .imgContainer {
    min-height: 100%;
}

.container .sixColumns .video {
    height: auto;
}

.container .sixColumns video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

main nav {
    margin-top: 1rem;
}

main nav a {
    margin-right: 1rem;
}

.column p {
    padding-right: 4rem;
}

.serif {
    font-family: var(--serif-font);
    color: var(--white);
    line-height: normal;
    transition: var(--transition);
}

.text-light {
    color: var(--grey-light);
    line-height: normal;
    transition: var(--transition);
}

.marginTop {
    margin-top: 5rem;
    padding: 1rem 0;
}

.smallMarginTop {
    margin-top: 1rem;
}

.marginSides {
    margin-left: 5rem;
    margin-right: 5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.marginSides div {
    margin: 1rem 0;
    color: var(--white);
}

.borderTop {
    border-top: 1px solid;
    padding-top: 1rem;
}

.column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin: 1rem 0;
    padding: 0 0;
}

.right {
    align-self: flex-end;
}

.textAlignLeft {
    display: flex;
    margin-top: 1rem;
}

.right span {
    justify-content: flex-end;
    text-align: right;
    margin: 0 0;
    padding: 0 0;
}

.sixColumns {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.sixColumns .imgContainer {
    grid-column: span 4;
}

.sixColumns .infoFlex {
    grid-column: span 2;
}

.showMore {
    cursor: pointer;
    font-weight: 700;
}

.underline {
    text-decoration: underline;
    font-size: 1rem;
    cursor: pointer;
}

.underline:hover {
    color: var(--grey-light);
    transition: var(--transition);
}

.textLimiter {
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.textLimiter.expanded {
    max-height: 500px;
    overflow: auto;
}

.portrait {
    cursor: default;
    object-position: center;
}

.imgHeight-dynamic,
.imgHeight {
    height: 700px;
    max-height: 1250px;
}

.reveal {
    position: relative;
    opacity: 0;
}

.reveal.active {
    opacity: 1;
}

.active.fade-bottom {
    animation: fade-bottom 1s ease-in;
    animation-fill-mode: forwards;
}

.fullWidth {
    width: 100%;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--grey-dark);
    border-radius: 10px;
    border: 3px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--grey-light);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--grey-darker);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(191, 191, 191, 0.3);
}

.back-to-top:hover {
    background-color: var(--background);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(144, 144, 144, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.social-links a {
    color: var(--grey-light);
    font-size: 1.4rem;
    margin: 0 0.5rem;
}

.copyright {
    color: var(--grey-light);
    font-size: 14px;
    margin-top: 1rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s infinite;
}

.back-to-top:hover {
    animation: none;
    background-color: var(--grey-light);
    transform: translateY(-2px);
}

.goSides {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.goSides img {
    max-height: 1200px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

@media (min-width: 1200px) {
    body {
        font-size: 1.125rem;
    }

    header {
        padding: 3rem 2rem;
    }

    header .logo {
        font-size: 2.5rem;
    }

    header nav a {
        margin: 0 1.5rem;
        padding: 0 1rem;
    }

    header nav a:hover {
        scale: 1.1;
        transition: var(--transition);
    }

    main {
        margin: 2rem;
        padding: 3rem 2rem;
    }

    .sixColumns {
        max-height: 800px;
    }

}


@media (max-width: 995px) {

    a {
        font-size: 1rem;
    }

    header {
        padding: 1.5rem 1rem;
        position: relative;
    }

    header .logo {
        font-size: 1.75rem;
    }

    header nav a {
        margin: 0 0.5rem;
        padding: 0 0.25rem;
        display: block;
        text-align: center;
        color: var(--grey-light);
        padding: 2rem 0;
        border-bottom: 1px solid var(--grey-dark);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    header nav a:last-child {
        border-bottom: none;
    }

    header nav a:hover {
        color: var(--white);
    }

    header label.active {
        display: flex;
        font-family: var(--primary-font);
        color: var(--white);
        font-size: 1.25rem;
        font-weight: 500;
        margin: 0 1rem;
        padding: 0.5rem 0;
        transition: var(--transition);
    }

    header nav {
        position: absolute;
        top: 6.5rem;
        left: -10px;
        width: 105%;
        max-height: 0;
        overflow: hidden;
        background: var(--background);
        transition: max-height 0.5s ease-in-out;
    }

    header input:checked~nav {
        max-height: 366px;
        border-radius: 12px;
    }

    header input:checked~nav a {
        opacity: 1;
        transform: translateY(0);
    }

    main {
        margin: 0.25rem;
        padding: 2.3rem 0.25rem;
    }

    .marginSides {
        margin-left: 1rem;
        margin-right: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .layoutGrid {
        grid-template-columns: 1fr;
    }

    .infoFlex {
        margin: 2.3rem 1rem;
        padding: 0;
    }

    .infoFlex h4 {
        padding: 0;
        margin: 0;
        font-size: 1.5rem;
    }

    .centered-marginTop {
        display: flex;
        justify-content: center;
        margin: 2.3rem auto;
        width: 200px;
    }

    .centered-marginTop:hover {
        background-color: var(--white);
        color: var(--background);
    }

    .container .sixColumns .imgContainer {
        height: 300px;
        grid-column: span 3;
    }

    .container .sixColumns .video {
        width: auto;
        height: auto;
    }

    .img {
        height: 300px;
    }

    .column {
        margin: 0;
        padding: 0;
    }

    .imgHeight-dynamic {
        height: 100%;
    }

    .imgHeight {
        height: 450px;
    }

    .container h2,
    .container h3 {
        font-size: 2rem;
    }

    .right {
        display: flex;
        justify-content: space-around;
        align-self: center;
        padding: 1rem;
        margin: 0;
        border-top: 1px solid;
        width: 90%;
    }

    .right h4,
    h5 {
        text-align: right;
        margin: 1rem;
        font-size: 1.5rem;
    }

    .sixColumns .infoFlex {
        grid-column: span 3;
    }

    .container .sixColumns:nth-child(even) {
        direction: ltr;
        text-align: left;
    }

    .copyright {
        font-size: 10px;
    }

    .size2,
    h5 {
        font-size: 1.2rem;
    }

    .size1,
    h4 {
        font-size: 1.4rem;
    }

}

@keyframes fade-bottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


@media (prefers-color-scheme: light) {
    :root {
        --background: #ffffff;
        --white: #1e1e1e;
        --grey: #4D4D4D;
        --grey-light: #666666;
        --grey-dark: #999999;
        --grey-darker: #B3B3B3;
    }
}