button, a {
    position: relative;
}

.emoji {
    position: absolute;
    width: 24px;
    height: 24px;
    /* animation: flyOut 1s ease-out forwards; */
    animation: flyOut 1.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

/* @keyframes flyOut {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50px + 100px * var(--random-x)), 100px) scale(1);
        opacity: 0;
    }
} */

@keyframes flyOut {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    40% {
        opacity: 1;
        transform: translate(var(--x), var(--y)) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--x), 300px) scale(1);
    }
}

.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem;
}

.modal-content {
    background-color: #FFF;
    overflow: hidden;
    width: 100%;
    max-width: 98rem;
    min-height: 37rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
}

.modal-content-image {
    position: relative;
    width: 100%;
    max-width: none;
    height: 21rem;
}

.modal-content-info {
    position: relative;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.close-featured-jobs {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background-color: #F0F0F0;
    height: 3.2rem;
    width: 3.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.4rem;
    border-radius: 50%;
}

.close-featured-jobs svg {
    height: 1.6rem;
    width: 1.6rem;
}

.featured-jobs-list {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}

.featured-job-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

.featured-job-item a {
    flex-shrink: 0;
}

.featured-job-item a:hover {
    color: #f16722 !important;
}

.featured-job-item h3 {
    font-family: Helvetica Neue, sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 2.8rem;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    }

    .modal-content-image {
        height: auto;
        max-width: 38rem;
    }

    .featured-job-item h3 {
        font-weight: 500;
        font-size: 2.4rem;
        line-height: 1.4;
    }
}