/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/


/* *****************************************************************************
******************************************************************************
*************               LONG FORM CSS             *********************
*******************************************************************************
******************************************************************************* */

#main section.heineken-longform {
  padding-top: 0;
}

/* body *,
body *::after,
body *::before {
    border: 1px solid rgba(255, 0, 0, 0.3)!important;
} */

@media (max-width: 1921px) {

    #main:has(section.heineken-longform) {
        overflow: hidden;
    }
}



/* LONGFORM HEADER */

/* Hero Image */
.longform-header .hero-image {
    position: relative;
    width: 100vw;
    width: 100dvw;
    left: 50%;
    max-width: 1920px;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    aspect-ratio: 16/7;
    overflow: hidden;
}

section.heineken-longform .longform-header .hero-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}


@media (max-width: 800px) {
    .longform-header .hero-image {
        aspect-ratio: 16/10;
    }
}

@media (max-width: 670px) {
    .longform-header .hero-image {
        aspect-ratio: 16/13;
    }
}


/* Long form title */
section.heineken-longform .longform-title {
    text-align: center;
    padding-top: 1rem;
}

section.heineken-longform .longform-title h1 {
    max-width: 30ch;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    margin-inline: auto;
    font-family: FranklinGothic, sans-serif;
}

section.heineken-longform .longform-title p {
    font-size: 1.2rem;
    color: slategrey;
    margin-bottom: 0.5rem;
    max-width: 60ch;
    margin-inline: auto;
}

@media (max-width: 800px) {
    section.heineken-longform .longform-title p {
        font-size: 1.1rem;
        max-width: 55ch;
    }
}



section.heineken-longform .longform-title .date-author {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 0.5rem;
}

section.heineken-longform .longform-title .date-author .author {
    margin-bottom: 0;
    -webkit-box-flex: 1;
        -ms-flex: 1 1 0px;
            flex: 1 1 0;
    text-align: right;
}

section.heineken-longform .longform-title .date-author .author span {
    color: #eb3c30;
}



/* Long form content */
section.heineken-longform .longform-content {
    max-width: 900px;
    margin: 3rem auto;
    padding-top: 3rem;
    border-top: 1px solid #b9b9b9;
}

section.heineken-longform .longform-content > * {
    margin-inline: auto;
}

section.heineken-longform .longform-content h4,
section.heineken-longform .longform-content p {
  margin-bottom: 2rem;
}

section.heineken-longform .longform-content p a {
    color: #eb3c30;
}


section.heineken-longform .longform-content .longform-media,
section.heineken-longform .longform-content .longform-grid,
section.heineken-longform .sticky-cards {
    margin-block: 3rem;
}

section.heineken-longform .longform-content h2,
section.heineken-longform .longform-content h3,
section.heineken-longform .longform-content h4,
section.heineken-longform .longform-content p,
section.heineken-longform .longform-content .longform-grid {
    width: 65%;
}

@media (max-width: 1281px) {
    section.heineken-longform .longform-content h2,
    section.heineken-longform .longform-content h3,
    section.heineken-longform .longform-content h4,
    section.heineken-longform .longform-content p,
    section.heineken-longform .longform-content .longform-grid {
        width: 55%;
    }
}

@media (max-width: 800px) {
    section.heineken-longform .longform-content h2,
    section.heineken-longform .longform-content h3,
    section.heineken-longform .longform-content h4,
    section.heineken-longform .longform-content p,
    section.heineken-longform .longform-content .longform-grid {
        width: 70%;
    }
}

@media (max-width: 670px) {

    section.heineken-longform .longform-content {
        margin: 2rem auto 0;
        padding-top: 2rem;
    }

    section.heineken-longform .longform-content h2,
    section.heineken-longform .longform-content h3,
    section.heineken-longform .longform-content h4,
    section.heineken-longform .longform-content p,
    section.heineken-longform .longform-content .longform-grid {
        width: 87%;
    }

    section.heineken-longform .longform-content p {
        font-size: 0.9rem;
        line-height: 1;
    }

    section.heineken-longform .longform-content .longform-media,
    section.heineken-longform .longform-content .longform-grid,
    section.heineken-longform .sticky-cards {
        margin-block: 2rem;
    }
}

section.heineken-longform .longform-content h2,
section.heineken-longform .longform-content h3 {
    font-family: FranklinGothic, sans-serif;
    margin-bottom: 0.7rem;
    line-height: 1.05;
}

section.heineken-longform .longform-content h4,
section.heineken-longform .longform-content p {
    font-size: 1.1rem;
    line-height: 1.5;
}

@supports (initial-letter: 3 3) {

    section.heineken-longform .longform-content h4::first-letter {
        color: #eb3c30;
        font-family: FranklinGothic, sans-serif;
        font-weight: 700;
        -webkit-initial-letter: 3 3;
        initial-letter: 3 3;
        margin-right: 0.7rem;
    }
}

section.heineken-longform .longform-content .longform-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

section.heineken-longform .longform-content .longform-media.mobile-image {
    aspect-ratio: 16 / 12;
}

section.heineken-longform .longform-media img,
section.heineken-longform .longform-media video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}


section.heineken-longform .longform-content .longform-grid {
    position: relative;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 0.5rem 1fr;
    grid-template-columns: repeat(2, 1fr);
    -ms-grid-rows: 1fr 0.5rem 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: dense;
    gap: 0.5rem;
}


/* section.heineken-longform .longform-content .longform-grid > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}


section.heineken-longform .longform-content .longform-grid > *:nth-child(2) {
  -ms-grid-row: 1;
  -ms-grid-column: 3;
}


section.heineken-longform .longform-content .longform-grid > *:nth-child(3) {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
}


section.heineken-longform .longform-content .longform-grid > *:nth-child(4) {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
} */

/* @property --position {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
} */

section.heineken-longform .longform-content .longform-grid .longform-grid-title {
    /* --size: 40%; */

    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
            transform: translate(-50%,-50%);
    width: 80vw;
    max-width: 80rem;
    height: auto;

    /*
    Initially:
    #000 (0% - 40% = -40%)
    #0000 0%

    On hover:
    #000 (140% - 40% = 100%)
    #0000 140%
    */

    /* -webkit-mask-image: -webkit-gradient(
        linear,
        left top, right top,
        from(#000),
        to(#0000)
    ); */

    -webkit-mask-image: linear-gradient(
        90deg,
        #000 calc(var(--position) - var(--size)),
        #0000 calc(var(--position))
    );

    /* mask-image: -webkit-gradient(
        linear,
        left top, right top,
        from(#000),
        to(#0000)
    );
 */
    mask-image: linear-gradient(
        90deg,
        #000 calc(var(--position) - var(--size)),
        #0000 calc(var(--position))
    )
}

@media (max-width: 1281px) {
    section.heineken-longform .longform-content .longform-grid .longform-grid-title {
        width: 70vw;
    }
}

@media (max-width: 800px) {
    section.heineken-longform .longform-content .longform-grid .longform-grid-title {
        width: 90vw;
    }
}


section.heineken-longform .longform-content .longform-grid .longform-grid-title img {
    width: 100%;
    height: auto;
}

section.heineken-longform .longform-content .longform-grid .longform-grid-image {
    width: 100%;
    aspect-ratio: 9/13;
    z-index: 10;
}

section.heineken-longform .longform-content .longform-grid .longform-grid-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}


@media (max-width: 670px) {

    section.heineken-longform .longform-content .longform-grid {
        /* -ms-grid-rows: -webkit-min-content (1fr)[2]; */
        /* -ms-grid-rows: min-content (1fr)[2]; */
        grid-template-rows: -webkit-min-content repeat(2, 1fr);
        grid-template-rows: min-content repeat(2, 1fr);
    }

    section.heineken-longform .longform-content .longform-grid .longform-grid-title {
        position: relative;
        top: 0;
        left: 0;
        -webkit-transform: translate(0%,0%);
            -ms-transform: translate(0%,0%);
                transform: translate(0%,0%);
        width: 100%;
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }

    section.heineken-longform .longform-content .longform-grid .longform-grid-title img {
        display: block;
        width: 90%;
        margin-inline: auto;
    }
}


section.heineken-longform .sticky-cards {
    position: relative;
    width: 100vw;
    height: 100vh;
    left: 50%;
    max-width: 1920px;
    -webkit-transform: translate(-50%,0);
        -ms-transform: translate(-50%,0);
            transform: translate(-50%,0);
    background-color: #e4e6e1;
    overflow: hidden;
}

section.heineken-longform .sticky-cards .sticky-cards-title  {
    position: absolute;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-align: center;
}

section.heineken-longform .sticky-cards .sticky-cards-title h2 {
    font-size: 8vw;
    white-space: nowrap;
    color: rgb(197, 197, 195);
    margin-bottom: 0;
}

section.heineken-longform .sticky-cards .sticky-cards-title p {
    font-size: 1.2rem;
    color: rgb(165, 165, 165);
    white-space: nowrap;
}

@media (max-width: 670px) {
    section.heineken-longform .sticky-cards .sticky-cards-title h2 {
        font-size: 23vmin;
        white-space: wrap;
    }
}

section.heineken-longform .sticky-card {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
            transform: translate(-50%,-50%);
    will-change: transform;
    width: 23rem;
    aspect-ratio: 9/12;
    padding: 1rem 1rem 5rem;
    background-color: white;
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1537px) {

    section.heineken-longform .sticky-card {
        width: 17rem;
    }
}

@media (max-width: 1281px) {

    section.heineken-longform .sticky-card {
        width: 15rem;
        padding: 0.75rem 0.75rem 3rem;
    }
}

section.heineken-longform .sticky-card img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

section.heineken-longform .scroll-element {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    padding: 0.5rem 2rem;
    background-color: white;
    border-radius: 50vw;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    font-size: 1rem;
    color: rgb(98, 98, 98);
    text-align: center;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    -webkit-transform: translate(-50%,0);
        -ms-transform: translate(-50%,0);
            transform: translate(-50%,0);
    -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}


/* Footer */
section.heineken-longform .longform-content .article-footer {
    width: 100%;
    text-align: center;
}

section.heineken-longform .longform-content .article-footer h2 {
    width: 100%;
}

section.heineken-longform .longform-content .article-footer h2 span { 
    padding-inline: 2rem;
}

section.heineken-longform .longform-content .article-footer ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 4rem;
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

section.heineken-longform .longform-content .article-footer ul li a {
    text-transform: uppercase;
    font-size: 1.1rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}


@media (max-width: 670px) {
    section.heineken-longform .longform-content .article-footer ul {
        gap: 2rem;
    }
    section.heineken-longform .longform-content .article-footer ul li a {
        font-size: 1rem;
    }
}