/**
 * Main CSS for On-Scroll Filter Projects
 */

/* Prefix all classes with 'osf-' to avoid conflicts */

/* Intro section styling */
.osf-intro {
    text-align: center;
    place-items: center;
    display: grid;
}

.osf-intro__title {
    place-items: center;
    margin: 0;
    line-height: .9;
    display: grid;
    margin-top: 15vh;
    font-weight: 400;
}

.osf-intro__title-pre {
    font-family: "stinger-variable", sans-serif;
    font-variation-settings: "wdth" 140, "wght" 300;
    font-weight: 300;
    font-size: clamp(2rem, 10vw, 5rem);
    color: var(--osf-color-title);
}

.osf-intro__title-sub {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.osf-intro__info {
    max-width: 15ch;
    opacity: .6;
    margin-bottom: 4rem;
    padding-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    align-self: end;
}

.osf-intro__info::after {
    content: "";
    width: 1px;
    height: 2rem;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 50%;
}

/* Logo styling */
.osf-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.osf-intro__title-pre.osf-logo img.osf-intro-logo {
    max-height: 6rem;
    width: auto;
    object-fit: contain;

}

.osf-title.osf-title--up.osf-logo img.osf-title-logo {
    max-height: 4rem;
    max-width: 100%;
    width: auto;
    object-fit: contain;

}

/* Content and layout styling */
.osf-content-wrap {
    display: grid;
    place-items: center;
    grid-template-areas: 'main';
}

.osf-content {
    grid-area: main;
    display: grid;    
    place-items: center;
    line-height: 1.2;
    grid-template-areas: 'content';
}

.osf-content-wrap .osf-content:first-child {
    height: 100vh;
}

.osf-content--layout-1 .osf-content__text {
        max-width: 250px;
        text-align: right;
        justify-self: end;
        align-self: end;
    }

    .osf-content--layout-3 .osf-content__text {
        column-count: 2;
        column-gap: 4vw;
        max-width: 590px;
        text-align: justify;
    }

.osf-content--layout-4 .osf-content__text {
    text-align: center;
    max-width: 100%;
    margin-top: 1rem;
    width: 100vw;
}

    .osf-content--layout-5 .osf-content__text {
        max-width: 250px;
        text-align: right;
        justify-self: end;
        align-self: end;
    }

    .osf-content--layout-6 .osf-content__text {
        max-width: 250px;
        justify-self: end;
        align-self: end;
        text-align: right;
    }

    .osf-content--layout-7 .osf-content__text {
        max-width: 250px;
        justify-self: start;
        align-self: start;
        text-align: right;
    }

    .osf-card-wrap {
        grid-template-columns: repeat(3, 250px);
    }
}layout {
    grid-template-areas:  'title-up title-down' 
                          'img img'
                          'text text';
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.osf-content__img {
    grid-area: img;
    max-width: 50%;
    height: auto;
}

.osf-content__img--1 {
    aspect-ratio: 896/1344;
}

.osf-content__img--2 {
    aspect-ratio: 1000/450;
}

.osf-content__img--3 {
    aspect-ratio: 1000/560;
}

.osf-content__img--4 {
    aspect-ratio: 1400/560;
}

.osf-content__img--5 {
    aspect-ratio: 680/920;
}

.osf-content__img--6 {
    aspect-ratio: 1;
}

.osf-content__img--7 {
    aspect-ratio: 1400/560;
}

.osf-title-wrap {
    display: flex;
    gap: 1em;
    align-items: center;
    justify-content: center;
}

.osf-title {
    padding-top: 0.3em;
    line-height: 0.525;
    font-size: 2rem;
    font-family: "stinger-variable", sans-serif;
    font-variation-settings: "wdth" 140, "wght" 150;
    font-weight: 300;
    position: relative;
    z-index: 100;
    text-indent: -0.1em;
}

.osf-title--up {
    grid-area: title-up;
    font-style: italic;
}

.osf-title--down {
    grid-area: title-down;
    font-variation-settings: "wdth" 140, "wght" 350;
}

.osf-content__text {
    grid-area: text;
    font-family: "Montserrat Alternates", sans-serif;
    margin: 0;
    opacity: 1;
}

.osf-content__title {
    margin-top: 40vh;
}

/* Card styling for related projects */
.osf-card-wrap {
    margin-top: 5vh;
    display: grid;
    grid-gap: 2rem;
    grid-auto-flow: row;
    grid-template-columns: 250px;
}

.osf-card__image {
    display: block;
    border-radius: 7px;
    background-size: cover;
    background-position: 50% 50%;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    filter: brightness(0.8);
}

.osf-card__title {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

.osf-card__title a {
    color: inherit;
    text-decoration: none;
}

.osf-card__title a:hover {
    color: var(--osf-color-link-hover);
}

/* Circular stack styling */
.osf-circular-stack {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 2rem auto;
}

.osf-circular-stack__item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.osf-circular-stack__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container */
.osf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Credits */
.osf-credits {
    font-size: 1.5rem;
    text-align: center;
    margin: 50vh auto 0;
}

/* Responsive styles */
@media screen and (min-width: 53em) {
    .osf-intro__title-pre.osf-logo img.osf-intro-logo {
        max-height: 10rem;
    }
    
    .osf-title.osf-title--up.osf-logo img.osf-title-logo {
        max-height: 5rem;
    }
    
    .osf-title {
        font-size: clamp(2rem, 15vw, 9rem);
    }

    .osf-content-wrap:not(:last-child) {
        margin-bottom: 30vmax;
    }

    .osf-content__img {
        max-width: none;
    }

    .osf-content__img--1 {
        height: auto;
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
    }

    .osf-content__img--2 {
        width: 60vw;
    }

    .osf-content__img--3 {
        width: 30vw;
        align-self: center;
    }

    .osf-content__img--4 {
        width: 100%;
        align-self: center;
    }

    .osf-content__img--5 {
        height: auto;
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
    }

    .osf-content__img--6 {
        max-width: 100%;
    }

    .osf-content__img--7 {
        width: 100%;
        align-self: center;
    }

    .osf-content--layout-1 {
        grid-template-areas:  'title-up img ...' 
                              'text img title-down';
        grid-template-columns: 30% auto 30%;
        grid-template-rows: 1fr 1fr;
        column-gap: 2vw;
    }

    .osf-content--layout-2 {
        grid-template-areas:  'title-up ...' 
                              'img img'
                              'text title-down';
        grid-template-columns: auto auto;
        justify-content: center;
        row-gap: 3vh;
    }

    .osf-content--layout-3 {
        grid-template-areas:  'title-up img title-down' 
                              'text text text';
        grid-template-columns: 20vw auto 20vw;
        grid-template-rows: auto auto;
        row-gap: 10vh;
        column-gap: 2vw;
        justify-content: center;
        align-content: center;
    }

    .osf-content--layout-4 {
        width: 100%;
        grid-template-areas:  'title-up'
                               'img'
                               'title-down'
                              'text';
        grid-template-columns: 1fr;
        justify-content: center;
        row-gap: 4vh;
    }

    .osf-content--layout-5 {
        grid-template-areas:  'title-up img ...' 
                              'text img title-down';
        grid-template-columns: 30% auto 30%;
        grid-template-rows: 1fr 1fr;
        column-gap: 3vw;
    }

    .osf-content--layout-6 {
        grid-template-areas:  'title-up img' 
                              'title-down img'
                              'text img';
        grid-template-columns: 1fr 50%;
        grid-template-rows: auto auto 1fr;
        column-gap: 3vw;
        row-gap: 0;
    }

    .osf-content--layout-7 {
        width: 100%;
        grid-template-areas:  'img img img img'
                               '... text title-up ...'
                               '... text title-down ...';
        grid-template-columns: 10vw 1fr 1fr 10vw;
        justify-content: center;
        row-gap: 4vh;
    }

    .osf-title--up {
        justify-self: end;
        align-self: start;
    }

    .osf-content--layout-2 .osf-title--up {
        justify-self: start;
    }

    .osf-content--layout-3 .osf-title--up {
        justify-self: end;
        align-self: center;
    }

    .osf-content--layout-4 .osf-title--up {
        justify-self: center;
    }

    .osf-content--layout-6 .osf-title--up {
        justify-self: end;
        align-self: start;
    }

    .osf-content--layout-7 .osf-title--up {
        justify-self: start;
    }

    .osf-title--down {
        justify-self: start;
        align-self: end;
    }

    .osf-content--layout-2 .osf-title--down {
        justify-self: end;
        align-self: start;
        margin-top: -0.1em;
    }

    .osf-content--layout-3 .osf-title--down {
        align-self: center;
    }

    .osf-content--layout-4 .osf-title--down {
        justify-self: center;
    }

    .osf-content--layout-6 .osf-title--down {
        justify-self: end;
        align-self: start;
    }

    .osf-content--layout-2 .osf-content__text {
        align-self: start;
        justify-self: start;
        max-width: 400px;
    }

    .osf-content--