.nytc-recipe-container {
    max-width: 100%;
    width: 1270px;
    margin: 0 auto;
    padding: 20px 16px;
    display: grid;
    /* grid-template-columns: 1fr 35%; */
    grid-template-columns: 1fr 20%;
    gap: 16px 30px;
}

/*
 * Recipe Header
 */

.nytc-recipe-header {
    background: linear-gradient(to bottom, #ebf9f1, #ffffff);
    padding: 16px 40px;
    display: grid;
    grid-template-columns: 1fr 35%;
    gap: 5px;
    grid-column: span 2;
}

.nytc-recipe-header .nytc-recipe-col {
    position: relative;
}

.nytc-recipe-header .nytc-recipe-col:nth-child(1) {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-title {
    color: #000;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 32px;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0 20px;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta .nytc-recipe-author-avatar {
    grid-row: span 2;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta span {
    display: flex;
    font-weight: 700;
    font-size: 18px;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta span.nytc-recipe-author {
    color: rgba(12, 41, 117, 1);
    align-items: flex-end;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta span.nytc-recipe-author a:hover {
    color: rgba(12, 41, 117, 1);
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta span.nytc-recipe-date-time {
    color: rgba(91, 110, 143, 1);
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta .nytc-recipe-author-avatar img {
    border-radius: 50%;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    word-break: break-word;
    text-transform: none;
    overflow: visible;
    margin: auto;
    border: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    color: #fff;
    padding: 10px 20px;
    border-radius: 60px;
    text-decoration: none;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a img {
    width: 18px;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a:nth-child(1) {
    background-color: rgba(27, 174, 94, 1);
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a:nth-child(1):hover {
    background-color: rgba(27, 174, 94, .8);
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a:nth-child(2) {
    background-color: rgba(124, 195, 67, 1);
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a:nth-child(2):hover {
    background-color: rgba(124, 195, 67, .8);
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-image-placeholder {
    width: 100%;
    height: auto;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-image {
    position: absolute;
    top: 33px;
    left: calc(50% + 11px);
    transform: translateX(-50%);
    width: 362px;
}

.nytc-recipe-header .nytc-recipe-col .nytc-recipe-image img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.nytc-recipe-content {
    background-color: red;
    padding: 0 16px;
}

/*
 * Recipe Content
 */

/*
 * Recipe Sidebar
 */

.nytc-recipe-right-sidebar .block-sidebar-pin-recipe{
    display: flex;
    justify-content: flex-end;
}

.nytc-recipe-right-sidebar .block-sidebar-pin-recipe a {
    display: block;
}

@media (max-width: 1025px) {

    .nytc-recipe-container {
        grid-template-columns: 1fr 25%;
    }

    /*
    * Recipe Header
    */

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-title {
        font-size: 38px;
        margin-bottom: 32px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta span {
        font-size: 16px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons {
        gap: 13px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a {
        gap: 13px;
        font-size: 16px;
        padding: 10px 20px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a img {
        width: 16px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-image {
        top: 25px;
        left: calc(50% + 8px);
        width: 280px;
    }

    /*
    * Recipe Content
    */

}

@media (max-width: 991px) {

    /*
    * Recipe Header
    */

    .nytc-recipe-header {
        padding: 30px 40px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nytc-recipe-header .nytc-recipe-col:nth-child(2) {
        width: 400px;
        margin: auto;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-image {
        top: 32px;
        left: calc(50% + 10px);
        width: 355px;
    }

    /*
    * Recipe Content
    */

} 

@media (max-width: 767px) {

    /*
    * Recipe Header
    */

    .nytc-recipe-container {
        width: 100%;
        padding: 0 16px 20px 16px;
        display: block;
    }

    .nytc-recipe-header {
        padding: 20px 16px 16px 16px;
        margin: 0 -16px;
        gap: 16px;
    }

    .nytc-recipe-header .nytc-recipe-col:nth-child(2) {
        width: 100%;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-title {
        font-size: 35px;
        margin-bottom: 20px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta {
        grid-template-columns: 48px 1fr;
        gap: 0 13px;
        align-items: center;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta .nytc-recipe-author-avatar {
        width: 48px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta span {
        font-size: 15px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 18px;
        margin-top: 18px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-social-icons{
        order: 2;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons {
        flex-direction: row;
        gap: 13px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a {
        font-size: 15px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a img {
        width: 15px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-image {
        top: 31px;
        left: calc(50% + 10px);
        width: calc(100% - 40px);
    }

    /*
    * Recipe Content
    */

    /*
    * Recipe Sidebar
    */

    .nytc-recipe-right-sidebar .block-sidebar-pin-recipe{
        justify-content: center;
    }

} 

@media (max-width: 375px) {

    .nytc-recipe-header {
        gap: 13px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-title {
        font-size: 30px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-meta span {
        font-size: 14px;
    }
    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons {
        gap: 5px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a {
        font-size: 14px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-buttons-container .nytc-recipe-buttons a img {
        width: 14px;
    }

    .nytc-recipe-header .nytc-recipe-col .nytc-recipe-image {
        top: 26px;
        left: calc(50% + 9px);
        width: calc(100% - 33px);
    }

}