.entry-joke {
    display: grid;
    grid-template-columns: minmax(48px, 1fr) minmax(200px, 400px) minmax(48px, 1fr);
    column-gap: 16px;
}

.jokes .joke {
    margin-bottom: 32px;
}

.joke {
    display: flex;
    align-items: stretch;
    margin: auto;
}

.joke-flip {
    position: relative;
    margin: auto;
    width: 100%;
    height: max-content;
    transition: height 0.5s;
}

.joke-flip .joke-card {
    position: absolute;
    top: 0;
    left: 0;width: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.joke-card {
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    min-height: max-content;
    position: relative;
}

.joke-card--open {
    transform: rotateY(180deg);
}

.joke-flip--flipped .joke-card--open {
    transform: rotateY(0);
    transition: transform 0.5s;
}

.joke-flip--flipped .joke-card--closed {
    transform: rotateY(180deg);
    transition: transform 0.5s;
}

.joke__punchline,
.joke__lead {
    padding: 32px;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    min-height: max-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.joke__punchline {
    background-color: #fefefe;
}

.joke__title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 0;
    text-align: center;
    color: #fff;
}

.joke__title::before {
    content: "";
    display: block;
    width: 20px;
    height: 24px;
    float: right;
}

.joke-nav a,
.joke__btn {
    display: block;
    margin: 0 auto;
    margin-top: 32px;
    padding: 8px 16px;
    border-radius: 24px;
    background-color: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.joke-nav a {
    border: 2px solid #000;
}

.joke__punchline__txt {
    font-size: 32px;
    line-height: 32px;
    text-align: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.joke__punchline__txt p {
    margin: 0;
    padding: 0;
}

.joke-card--closed .joke__punchline {
    display: none;
}

.joke-card--open .joke__lead {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.joke-card--open .joke__punchline {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.joke-card--open .joke__lead {
    padding: 16px;
}

.joke-card--open .joke__title {
    font-size: 24px;
    font-weight: normal;
}


.joke-navigation--previous a,
.joke-navigation--next a {
    background-color: #000;
    color: #fff;
    font-size: 32px;
    line-height: 0;
    height: 48px;
    width: 48px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.joke-navigation--next a {
    margin-left: 0;
}

.joke-navigation--previous a {
    margin-right: 0;
}

.joke-navigation--previous {
    display: flex;
}

.joke-navigation--next {
    display: flex;
}

.joke__badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    height: 80px;
    width: 80px;
    transform: translate(25%, -25%) rotate(35deg);
}

.joke__badge svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.joke__badge__text {
    display: block;
    position: relative;
    text-align: center;
    z-index: 1;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    padding: 8px;
}

.joke__badge__text span:first-child {
    display: block;
    font-size: 10px;
    line-height: 0.5;
    width: min-content;
    margin: auto auto 4px auto;
}

.joke__badge__text span:first-child::after {
    content: " ";
    display: inline-block;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.joke-of-the-day__heading {
    text-align: center;
}

.featured-joke {
    max-width: 460px;
    margin: auto;
}