﻿/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/


section.eoygr-section {

    --black:                #2e2e38;
    --white:                #ffffff;
    --yellow:               #ffe600;


    padding-block: 0;
    background-color: black;
    -o-border-image: fill 0 -o-linear-gradient(left,#000000 50%, #63605b 50%);
       border-image: fill 0 -webkit-gradient(linear,left top, right top,color-stop(50%, #000000), color-stop(50%, #63605b));
       border-image: fill 0 linear-gradient(90deg,#000000 50%, #63605b 50%);
    border-image-outset: 0 100vw;
}

.eoygr-item {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (1fr)[4];
    grid-template-columns: repeat(4, 1fr);
    -ms-grid-rows: auto 1fr;
    grid-template-rows: auto 1fr;    
}

.eoygr-item > *:nth-child(1) {

    -ms-grid-row:                1;

    -ms-grid-column:                1;
}

.eoygr-item > *:nth-child(2) {

    -ms-grid-row:                1;

    -ms-grid-column:                2;
}

.eoygr-item > *:nth-child(3) {

    -ms-grid-row:                1;

    -ms-grid-column:                3;
}

.eoygr-item > *:nth-child(4) {

    -ms-grid-row:                1;

    -ms-grid-column:                4;
}

.eoygr-item > *:nth-child(5) {

    -ms-grid-row:                2;

    -ms-grid-column:                1;
}

.eoygr-item > *:nth-child(6) {

    -ms-grid-row:                2;

    -ms-grid-column:                2;
}

.eoygr-item > *:nth-child(7) {

    -ms-grid-row:                2;

    -ms-grid-column:                3;
}

.eoygr-item > *:nth-child(8) {

    -ms-grid-row:                2;

    -ms-grid-column:                4;
}

.eoygr-item-header {
    grid-column: 2 / -1;
    -ms-grid-row: 1;
    grid-row: 1 / 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    gap: 1rem;
    padding-top: 3rem;
    padding-bottom: 1rem;
    z-index: 10;
}

.eoygr-item-header small {
    font-size: 1rem;
    margin: 0;
    line-height: 1;
    color: white;
}

.eoygr-item-header a {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 150px;
            flex: 0 1 150px;
}

.eoygr-item-header a svg {
    fill: white;
}


.eoygr-item-image {
    position: relative;
    -ms-grid-column: 1;
    -ms-grid-column-span: 3;
    grid-column: 1 / span 3;
    grid-row: 1 / -1;
}

.eoygr-item-image a {
    position: absolute;
    top: 0;
    left: 0;
}

.eoygr-item-image a,
.eoygr-item-image a img {
    width: 100%;
    height: 100%;
}

.eoygr-item-image a img {
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: top left;
       object-position: top left;
}

.eoygr-item-content {
    grid-column: 3 / -1;
    -ms-grid-row: 2;
    grid-row: 2 / 2;
    background-color: white;
    padding: 2rem 3rem 3rem;
    margin-bottom: 2rem;
    z-index: 10;
}

.eoygr-item-content nav {
    margin-bottom: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    gap: 2rem;
}

.eoygr-item-content nav span {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 180px;
            flex: 0 1 180px;
}

.eoygr-item-content h2 {
    font-size: 3rem;
    line-height: 1;
    max-width: 17ch;
    color: var(--black);
}

.eoygr-item-content h2 a {
    color: inherit;
}

.eoygr-item-content p {
    margin-bottom: 3rem;
}

.eoygr-item-content > a {
    background-color: var(--yellow);
    color: var(--black);
    text-transform: uppercase;
    padding: 1em 2.5em;
    font-size: 0.9rem;
}


@media (max-width: 1360px) {

    .eoygr-item-image {
        -ms-grid-column: 1;
        -ms-grid-column-span: 4;
        grid-column: 1 / span 4;
    }

    .eoygr-item-content h2 {
        font-size: 2.5rem;
    }
}


@media (max-width: 1280px) {

    section.eoygr-section {
        padding-bottom: 2rem;
        padding-inline: 0;
        background-color: black;
        -o-border-image: none;
           border-image: none;
    }

    .eoygr-item {
        -ms-grid-columns: 1fr 60vw 1fr;
        grid-template-columns: 1fr 60vw 1fr;
        -ms-grid-rows: auto;
        grid-template-rows: auto; 
        grid-auto-rows: auto;  
    }

    .eoygr-item > *:nth-child(1) {

        -ms-grid-row:                1;

        -ms-grid-column:                1;  
    }

    .eoygr-item > *:nth-child(2) {

        -ms-grid-row:                1;

        -ms-grid-column:                2;  
    }

    .eoygr-item > *:nth-child(3) {

        -ms-grid-row:                1;

        -ms-grid-column:                3;  
    }

    .eoygr-item-header {
        grid-column: 1 / -1;
        padding: 1rem;
    }

    .eoygr-item-image {
        grid-column: 1 / -1;
        -ms-grid-row: 1;
        -ms-grid-row-span: 2;
        grid-row: 1 / span 2;
        margin-bottom: -15rem;
    }

    .eoygr-item-image a {
        position: relative;
        aspect-ratio: 16/12;
    }

    .eoygr-item-image a img {
        -o-object-position: top center;
           object-position: top center;
        -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(70%, black), color-stop(95%, transparent));
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 95%);
        mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(70%, black), color-stop(95%, transparent));
        mask-image: linear-gradient(to bottom, black 70%, transparent 95%);
    }

    .eoygr-item-content {
        grid-column: 2 / -2;
        -ms-grid-row: 3;
        grid-row: 3 / 3;
        padding: 3rem;
        -webkit-box-shadow: none;
                box-shadow: none;
    }

}


@media (max-width: 1170px) {

    section.eoygr-section {
        padding-bottom: 3rem;
    }

    .eoygr-item {
        -ms-grid-columns: 3rem minmax(0, 1fr) 3rem;
        grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    }

    .eoygr-item-header {
        grid-column: 2 / -2;
        -ms-grid-row: 1;
        -ms-grid-row-span: 2;
        grid-row: 1 / 3;
        padding: 0 0 0.5rem;
    }

    .eoygr-item-header a {
        -ms-flex-preferred-size: 100px;
            flex-basis: 100px;
    }

    .eoygr-item-image {
        margin-bottom: -7rem;
    }

    .eoygr-item-content {
        margin-bottom: 0;
    }
    
    .eoygr-item-content h2 {
        font-size: 6vw;
    }

    .eoygr-item-content p {
        font-size: 0.92rem;
        max-width: 65ch;
    }
}


@media (max-width: 670px) {

    section.eoygr-section {
        padding-bottom: 1.5rem;
    }

    .eoygr-item {
        -ms-grid-columns: 1.5rem minmax(0, 1fr) 1.5rem;
        grid-template-columns: 1.5rem minmax(0, 1fr) 1.5rem;
    }

    .eoygr-item-image {
        margin-bottom: -3rem;
        aspect-ratio: 16/14;
    }

    .eoygr-item-content {
        padding: 1.75rem;
    }

    .eoygr-item-content nav {
        gap: 1rem;
    }

    .eoygr-item-content nav span {
        -webkit-box-flex: 0;
            -ms-flex: 0 1 110px;
                flex: 0 1 110px;
    }

    .eoygr-item-content h2 {
        font-size: 7vw;
    }

    .eoygr-item-content > a {
        display: block;
        text-align: center;
        width: 100%;
    }

}