/* 
    dm baby
    by Operon Design
*/

/* Basics */

body {
    background-color: #fff6eb;
    color: #021b39;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
}
.container {
    max-width: 1248px;
    padding: 24px;
    margin: 0 auto;
    width: 100%;
}
.narrow-container {
    width: 100%;
    max-width: 788px;
    padding: 24px;
    margin: 0 auto;
}

header {
    background-color: #3d2235;
    color: white;
    margin-bottom: 64px;
}
h1 {
    font-size: 72px;
    text-transform: uppercase;
    font-weight: 700;
}
h3.overtitle {
    text-transform: uppercase;
    margin-bottom: 16px;
}
.intro {
    font-size: 24px;
    line-height: 30px;
}
.collab {
    width: 70%;
    max-width: 400px;
    margin: 0 auto;
    margin-bottom: 36px;
}
.article {
    margin-bottom: 64px;
}
.article-text {
    width: 80%;
    background-color: #fff6eb;
    border-right: 3px solid #3d2235;
    border-top: 3px solid #3d2235;
    margin-top: -72px;
    padding-top: 16px;
    padding-right: 24px;
    min-height: 140px;
}
.intro a {
    font-weight: bold;
    color: #3d2235;
    font-size: 0.95em;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: 0.3s all;
}
.intro a:hover {
    text-decoration-color: #3d2235;
}
.article h2 {
    font-size: 36px;
    line-height: 42px;
    margin-bottom: 16px;
}
.cta {
    padding: 8px 30px;
    padding-top: 11px;
    text-transform: uppercase;
    font-weight: 400;
    border: 1px solid #3d2235;
    color: #3d2235;
    background: transparent;
    margin-right: 16px;
    font-size: 12px;
}
.cta i {
    position: relative;
    margin-left: 4px;
}
.cta:first-child i {
    top: -1.5px;
}
.cta:hover {
    background: #3d2235;
    color: white;
}
.article:nth-child(2n) .article-text {
    background-color: #fff6eb;
    border-left: 3px solid #3d2235;
    margin-left: 20%;
    border-right: none;
    padding-right: 0px;
    padding-left: 24px;
}

/* Typography */



/* Gallery */

.native-visual .third {
    overflow: hidden;
    position: relative;
    padding-top: 20%;
}
.native-visual .third img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
} 
.native-visual .third img:nth-child(2) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    animation-name: image-fade;
    animation-iteration-count: infinite;
    animation-duration: 12s;
    animation-delay: 3s;
    z-index: 2;
} 
.native-visual .third img:nth-child(3) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    animation-name: image-fade;
    animation-iteration-count: infinite;
    animation-duration: 12s;
    animation-delay: 6s;
    z-index: 3;
} 
.native-visual .third img:nth-child(4) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    animation-name: image-fade;
    animation-iteration-count: infinite;
    animation-duration: 12s;
    animation-delay: 9s;
    z-index: 4;
}
.tracker {
    width: 1px;
    height: 1px;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
}

@keyframes image-fade {
    0% {
        opacity: 0;
    }
    20% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    55% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
  }

@media screen and (max-width: 1025px) {
    header, .article {
        margin-bottom: 32px;
    }
    .native-visual .third {
        width: 49.99%;
        padding-top: 30%;
    }
    h1 {
        font-size: 40px;
        margin-bottom: 16px;
    }
    .article h2 {
        font-size: 24px;
        line-height: 30px;
    }
    .article-text {
        width: 90%;
        margin-top: -48px;
    }
    .cta {
        margin-bottom: 8px;
    }
    .article:nth-child(2n) .article-text {
        margin-left: 10%;
    }
}