﻿figure {
    margin: 0;
    box-shadow: 0px -5px 8px rgb(255 255 255 / 40%);
}

    figure img {
        width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
    }

section {
    background: linear-gradient(180deg, black 40%, #333 );
    height: 50vh;
    margin: 0;
    position: sticky;
    top: 0;
    // overflow: hidden;
    padding: 5vmin;
    box-shadow: 0px -5px 8px rgb(255 255 255 / 40%);
    color: black;
}

/*
    section::after {
        content: '';
        position: absolute;
        top: 5vmin;
        right: 45%;
        bottom: 5vmin;
        left: 5vmin;
        border: 2px dashed #000;
        outline: 1px solid #000;
        outline-offset: -5vmin;
        backdrop-filter: invert(1);
        pointer-events: none;
    }*/

    /*section:nth-of-type(2n):after {
        right: 5vmin;
        left: 45%;
    }*/

    section > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 90%;
        padding: 1rem;
        position:relative;
    }

    section h1{
        margin: 20px 0;
        font-size: calc(5vmin + 3vmax);
        text-align: start;
        font-weight: 700;
        line-height: 1;
        word-spacing: .5rem;
        color:#fff;
    }
    section h4 {
        margin: 20px 0;
        font-size: calc(3vmin + 1vmax);
        text-align: center;
        word-spacing: .4rem;
        color:#fff;
    }


    section a {
        text-align: right;
        font-family: "Cormorant", serif;
        font-weight: 400;
        font-style: italic;
        font-size: calc(1.5vmin + 1.75vmax);
        margin-bottom: 5%;
        color: #fff;
    }


article {
    box-sizing: border-box;
    font-family: 'Vollkorn', sans-serif;
    font-size: 1rem;
    background:#fff;
    padding:20px;
}

@media screen and (max-width: 699px) {
    figure{
        height:50vh;
    }
}

@media screen and (min-width: 700px) {

    article {
        box-sizing: border-box;
        font-family: 'Vollkorn', sans-serif;
        font-size: 1rem;
        color: #000;
    }

    body > article {
        display: flex;
        flex-wrap: wrap;
    }

    figure {
        background: #eee;
        width: calc( 50% + 1px);
        height: 100vh;
        margin: 0 auto 10vh 0;
        position: sticky;
        top: 0;
        overflow: hidden;
    }


    section {
        background: linear-gradient(180deg, black 40%, #333 );
        width: 100vw;
        height: 50vh;
        margin: 0;
        position: sticky;
        top: 0;
        // overflow: hidden;
        padding: 5vmin;
        margin: 10px;
        border-radius: 10px;
    }

        figure:nth-of-type(1),
        section:nth-of-type(1) {
            width: 100vw;
        }

    figure:nth-of-type(2n) {
        margin: 0 0 10vh auto;
    }

    section:nth-of-type(2n) {
        /*margin: 0 auto 0vh 0;*/
    }

   /* section:nth-of-type(2n) a{
        text-align:left;
    }*/

    figure:last-of-type,
    section:last-of-type {
        margin-bottom: 0;
    }

    /*section::before {
        background: inherit;
        z-index: 1;
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 7vmin;
        height: 7vmin;
        transform: translate(calc(-50% + 1px), -50%) rotate(-45deg);
        clip-path: polygon(-15% -15%, 110% 0%, 0% 110%);
        box-shadow: -4px -2px 8px rgba(0,0,0,.4);
        border-radius: 1.5vmin 0 0 0;
    }*/

    /*section:nth-of-type(2n)::before {
        left: auto;
        right: 0;
        transform: translate(calc(50% - 1px), -50%) rotate(-45deg) scale(-1);
    }*/

/*    section::after {
        content: '';
        position: absolute;
        top: 5vmin;
        right: 45%;
        bottom: 5vmin;
        left: 5vmin;
        border: 2px dashed #fff;
        outline: 1px solid #fff;
        outline-offset: -5vmin;
        backdrop-filter: invert(1);
        pointer-events: none;
    }*/

    section:nth-of-type(2n):after {
        right: 5vmin;
        left: 45%;
    }

    section > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 90%;
        padding: 1rem;
    }

    section h1,
    section h2 {
        margin: 30px 0;
        font-size: calc(5vmin + 3vmax);
        text-align: start;
        font-weight: 700;
        line-height: 1;
        word-spacing: .5rem;
        color:#fff;
    }


    /*section a {
        color: transparent;
        -webkit-text-stroke: 2px #212121;
        text-decoration: none;
        font-weight: 900;
        letter-spacing: 2px;
    }*/

        section a:hover, section a:focus {
            -webkit-text-stroke: 1px #999;
        }
}
