.contest-archive {
    background: #fff;
    padding: 26px 0;
}

.contest-archive__container {
    max-width: 1440px;
    padding: 0 58px;
}

.contest-archive__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}

.contest-archive__title-block {
    flex: 1;
    min-width: 0;
}

.contest-archive__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.contest-archive__status,
.contest-archive__tag {
    display: inline-flex;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.contest-archive__status {
    gap: 8px;
    padding: 7px 13px;
    background: #e9f3e9;
    color: #2c6b33;
    font-size: 11.5px;
    letter-spacing: 1.61px;
}

.contest-archive__status::before {
    width: 8px;
    height: 8px;
    background: #3f9a4a;
    content: "";
}

.contest-archive__status--closed {
    background: #efeff2;
    color: #5d6470;
}

.contest-archive__status--closed::before {
    background: #9aa0ac;
}

.contest-archive__status--upcoming {
    background: #fbf3da;
    color: #8a6d1f;
}

.contest-archive__status--upcoming::before {
    background: #c9a84e;
}

.contest-archive__tag {
    padding: 8px 12px;
    background: #80b1de;
    color: #fff;
    font-size: 12px;
    letter-spacing: .24px;
}

.contest-archive__title {
    max-width: 700px;
    margin: 18px 0;
    color: #000;
    font-family: "Frank Ruhl Libre", serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 47px;
    text-transform: uppercase;
}

.contest-archive__title-anchor:hover h2,
.contest-archive__title-anchor:hover h1 {
    color: #000;
    text-decoration: underline;
}

.contest-archive__subheading {
    max-width: 560px;
    margin: 0;
    color: #000;
    font-size: 19px;
    font-weight: 600;
    line-height: 30px;
}

.contest-archive__closing {
    flex: 0 0 auto;
    padding-bottom: 6px;
    text-align: right;
}

.contest-archive__closing-label {
    display: block;
    margin-bottom: 8px;
    color: #5d6470;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: normal;
    text-transform: uppercase;
}

.contest-archive__closing-date {
    color: #000;
    font-family: "Frank Ruhl Libre", serif;
    font-size: 27px;
    line-height: 32px;
}

.contest-archive__feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 64px;
    align-items: start;
    margin-top: 42px;
}

.contest-archive__artwork {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 470px;
    margin: 0;
    padding: 36px;
    overflow: hidden;
    background: #202f50;
}

.contest-archive__artwork img {
    display: block;
    width: auto;
    max-width: 373px;
    height: auto;
    max-height: 398px;
    object-fit: contain;
}

.contest-archive__copy {
    margin-top: 44px;
    color: #1b1b1b;
    font-size: 17px;
    line-height: 31px;
}

.contest-archive__copy> :first-child {
    margin-top: 0;
}

.contest-archive__copy> :last-child {
    margin-bottom: 0;
}

.contest-archive__copy p {
    margin: 0 0 16px;
}

.contest-archive__copy em {
    color: #2a3f6d;
    font-size: 17.5px;
}

.contest-archive__details {
    position: relative;
    padding: 32px 32px 34px;
    overflow: hidden;
    border: 1px solid #e3e3e6;
    background: #fff;
}

.contest-archive__details::before,
.contest-archive__empty::before {
    position: absolute;
    top: -1px;
    right: -1px;
    left: -1px;
    height: 4px;
    background: #e6c65b;
    content: "";
}

.contest-archive__details-title {
    margin: 0 0 22px;
    color: #000;
    font-family: "Frank Ruhl Libre", serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 26px;
    text-transform: uppercase;
}

.contest-archive__detail {
    padding: 16px 0;
    border-top: 1px solid #e3e3e6;
}

.contest-archive__detail:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.contest-archive__detail-label {
    margin: 0 0 7px;
    color: #c9a84e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.76px;
    line-height: normal;
    text-transform: uppercase;
}

.contest-archive__detail-copy {
    color: #1b1b1b;
    font-size: 15px;
    line-height: 26px;
}

.contest-archive__detail-copy p {
    margin: 0;
}

.contest-archive__enter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding: 18px;
    background: #e6c65b;
    color: #223453;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: normal;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease;
}

.contest-archive__enter:hover,
.contest-archive__enter:focus {
    background: #edd777;
    color: #223453;
}

.contest-archive__enter img {
    width: 14px;
    height: 14px;
}

.contest-archive__form-note {
    margin: 16px 0 0;
    color: #5d6470;
    font-size: 12.5px;
    line-height: 19px;
    text-align: center;
}

.contest-archive__rules {
    display: block;
    margin: 12px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c9a84e;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.56px;
    line-height: normal;
    text-decoration: underline;
    text-transform: uppercase;
}

.contest-archive--empty {
    padding: 30px 0 16px;
}

.contest-archive__empty {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 66px 56px;
    overflow: hidden;
    border: 1px solid #e3e3e6;
    background: #eef0f9;
    text-align: center;
}

.contest-archive__empty-icon {
    width: 44px;
    height: 42px;
}

.contest-archive__empty-title {
    margin: 24px 0 16px;
    color: #000;
    font-family: "Frank Ruhl Libre", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 41px;
    text-transform: uppercase;
}

.contest-archive__empty-copy {
    max-width: 620px;
    margin: 0;
    color: #5d6470;
    font-size: 17px;
    line-height: 30px;
}

@media (max-width: 1199px) {
    .contest-archive__container {
        padding-right: 40px;
        padding-left: 40px;
    }

    .contest-archive__feature {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 36px;
    }
}

@media (max-width: 899px) {
    .contest-archive__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .contest-archive__closing {
        text-align: left;
    }

    .contest-archive__feature {
        grid-template-columns: 1fr;
    }

    .contest-archive__details {
        width: 100%;
    }
}

@media (max-width: 599px) {
    .contest-archive {
        padding: 20px 0;
    }

    .contest-archive__container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .contest-archive__title {
        font-size: 32px;
        line-height: 38px;
    }

    .contest-archive__subheading {
        font-size: 17px;
        line-height: 27px;
    }

    .contest-archive__feature {
        gap: 28px;
        margin-top: 32px;
    }

    .contest-archive__artwork {
        height: 360px;
        padding: 24px;
    }

    .contest-archive__artwork img {
        max-width: 100%;
        max-height: 100%;
    }

    .contest-archive__copy {
        margin-top: 30px;
        font-size: 16px;
        line-height: 28px;
    }

    .contest-archive__details {
        padding: 28px 24px;
    }

    .contest-archive__empty {
        padding: 48px 24px;
    }

    .contest-archive__empty-title {
        font-size: 28px;
        line-height: 34px;
    }

    .contest-archive__empty-copy {
        font-size: 16px;
        line-height: 27px;
    }
}

.contest-rules-modal {
    display: none;
}

.contest-rules-modal.is-open {
    display: block;
}

.contest-rules-modal__overlay {
    position: fixed;
    z-index: 10000000000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(5, 13, 26, .72);
}

.contest-rules-modal__container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 70px rgba(5, 13, 26, .4);
}

.contest-rules-modal__head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e3e3e6;
}

.contest-rules-modal__title {
    margin: 0;
    color: #000;
    font-family: "Frank Ruhl Libre", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 29px;
    text-transform: uppercase;
}

.contest-rules-modal__close {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.contest-rules-modal__close img {
    display: block;
    width: 40px;
    height: 40px;
}

.contest-rules-modal__content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 26px 32px 34px;
    overflow-y: auto;
    color: #1b1b1b;
    font-size: 14.5px;
    line-height: 26px;
}

.contest-rules-modal__content>* {
    margin-top: 0;
    margin-bottom: 14px;
}

.contest-rules-modal__content> :last-child {
    margin-bottom: 0;
}

.contest-rules-modal__content>p:first-child {
    color: #5d6470;
    font-size: 12.5px;
    line-height: 21px;
    text-transform: uppercase;
}

.contest-rules-modal__content h2,
.contest-rules-modal__content h3,
.contest-rules-modal__content h4 {
    color: #2a3f6d;
    font-family: "Montserrat", sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.84px;
    line-height: normal;
    text-transform: uppercase;
}

.contest-rules-modal__content ul,
.contest-rules-modal__content ol {
    padding-left: 22px;
}

.contest-rules-modal__content::-webkit-scrollbar {
    width: 6px;
}

.contest-rules-modal__content::-webkit-scrollbar-track {
    background: #f2f2f2;
}

.contest-rules-modal__content::-webkit-scrollbar-thumb {
    background: #c9a84e;
}

.contest-rules-modal[aria-hidden="false"] .contest-rules-modal__overlay {
    animation: contest-modal-fade-in .25s ease both;
}

.contest-rules-modal[aria-hidden="false"] .contest-rules-modal__container {
    animation: contest-modal-slide-in .25s ease both;
}

.contest-rules-modal[aria-hidden="true"] .contest-rules-modal__overlay {
    animation: contest-modal-fade-out .2s ease both;
}

.contest-rules-modal[aria-hidden="true"] .contest-rules-modal__container {
    animation: contest-modal-slide-out .2s ease both;
}

@keyframes contest-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes contest-modal-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes contest-modal-slide-in {
    from {
        transform: translateY(20px);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes contest-modal-slide-out {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(20px);
    }
}

@media (max-width: 599px) {
    .contest-rules-modal__overlay {
        align-items: flex-start;
        padding: 16px;
    }

    .contest-rules-modal__container {
        max-height: calc(100vh - 32px);
    }

    .contest-rules-modal__head {
        padding: 18px 20px;
    }

    .contest-rules-modal__title {
        font-size: 21px;
        line-height: 26px;
    }

    .contest-rules-modal__close,
    .contest-rules-modal__close img {
        width: 36px;
        height: 36px;
    }

    .contest-rules-modal__close {
        flex-basis: 36px;
    }

    .contest-rules-modal__content {
        padding: 22px 20px 28px;
    }
}

.past-contests {
    padding: 46px 0 66px;
    background: #fff;
}

.past-contests__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.past-contests__head-copy {
    min-width: 0;
}

.past-contests__eyebrow {
    margin: 0 0 10px;
    color: #c9a84e;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: normal;
    text-transform: uppercase;
}

.past-contests__title {
    margin: 0 0 10px;
    color: #000;
    font-family: "Frank Ruhl Libre", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 41px;
    text-transform: uppercase;
}

.past-contests__description {
    max-width: 640px;
    margin: 0;
    color: #5d6470;
    font-size: 15.5px;
    line-height: 25px;
}

.past-contests__nav {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.past-contests__nav[hidden] {
    display: none;
}

.past-contests__nav-button {
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.past-contests__nav-button img {
    display: block;
    width: 48px;
    height: 48px;
}

.past-contests__nav-button:disabled {
    opacity: .45;
    cursor: default;
}

.past-contests__rail {
    display: flex;
    gap: 26px;
    width: 100%;
    padding: 34px 0 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: #223453 #e3e3e6;
    scrollbar-width: thin;
    scroll-snap-type: inline proximity;
}

.past-contests__rail::-webkit-scrollbar {
    height: 3px;
}

.past-contests__rail::-webkit-scrollbar-track {
    background: #e3e3e6;
}

.past-contests__rail::-webkit-scrollbar-thumb {
    background: #223453;
}

.past-contests__card {
    display: flex;
    flex: 0 0 404px;
    flex-direction: column;
    width: 404px;
    overflow: hidden;
    border: 1px solid #e3e3e6;
    background: #fff;
    scroll-snap-align: start;
}

.past-contests__artwork {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 251px;
    margin: 0;
    overflow: hidden;
    background: #202f50;
}

.past-contests__artwork-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.past-contests__card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px 24px;
}

.past-contests__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.past-contests__status,
.past-contests__tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.61px;
    line-height: normal;
    text-transform: uppercase;
}

.past-contests__status {
    gap: 8px;
    background: #efeff2;
    color: #5d6470;
}

.past-contests__status::before {
    width: 8px;
    height: 8px;
    background: #9aa0ac;
    content: "";
}

.past-contests__tag {
    padding: 8px 12px;
    background: #80b1de;
    color: #fff;
    font-size: 12px;
    letter-spacing: .24px;
}

.past-contests__card-title {
    width: 100%;
    margin: 0 0 12px;
    color: #2a3f6d;
    font-family: "Frank Ruhl Libre", serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 25px;
    text-transform: none;
}

.past-contests__card-title a {
    color: #000;
}

.past-contests__card-title a:hover {
    color: #000;
    text-decoration: underline;
}

.past-contests__dates {
    width: 100%;
    margin: 0 0 12px;
    color: #5d6470;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .78px;
    line-height: normal;
    text-transform: uppercase;
}

.past-contests__prize {
    width: 100%;
    margin: 0;
    color: #1b1b1b;
    font-size: 14.5px;
    line-height: 23px;
}

.past-contests__prize strong {
    font-weight: 400;
}

.past-contests__winner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 30px;
    padding: 13px 15px;
    border-left: 3px solid #e6c65b;
    background: #eef0f9;
}

.past-contests__winner-image {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.past-contests__winner-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.past-contests__winner-label {
    color: #5d6470;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.68px;
    line-height: normal;
    text-transform: uppercase;
}

.past-contests__winner-name {
    overflow: hidden;
    color: #1b1b1b;
    font-size: 13px;
    line-height: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 899px) {
    .past-contests__head {
        align-items: flex-start;
    }
}

@media (max-width: 599px) {
    .past-contests {
        padding: 38px 0 50px;
    }

    .past-contests__head {
        flex-direction: column;
        gap: 24px;
    }

    .past-contests__title {
        font-size: 28px;
        line-height: 34px;
    }

    .past-contests__nav {
        align-self: flex-end;
    }

    .past-contests__rail {
        gap: 18px;
        padding-top: 26px;
    }

    .past-contests__card {
        flex-basis: calc(100vw - 40px);
        width: calc(100vw - 40px);
        max-width: 404px;
    }

    .past-contests__artwork {
        height: 220px;
    }
}

.contest-newsletter {
    padding-block: 42px;

    .heading {
        text-transform: uppercase;
    }

    .content {
        @media (min-width: 1200px) {
            padding-right: 48px;
        }
    }
}