.tabs-wrapper {
    margin-bottom: 25px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-buttons {
    background-color: #E3F2CE;
    padding: 24px 16px;
    gap: 8px;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: hidden;
    overflow-x: scroll;
    margin: 0;
}

.tab-button {
    width: unset !important;
    white-space: nowrap;
}

.tab-button a {
    width: unset !important;
    font-size: 16px;
    line-height: 1.6;
}

.tab-button .wp-block-button__link {
    background-color: #E3F2CE;
    color: #161616;
    padding: 8px 16px;
    white-space: nowrap;
    text-transform: none;
}

.tab-button:hover .wp-block-button__link {
    background-color: #EEFFD9;
}

.wp-block-button.tab-button.active a {
    background-color: var(--wp--preset--color--white);
    color: #161616;
}

@media screen and (min-width: 620px) {
    .tab-buttons {
        justify-content: center;
    }

    .tab-button a {
        font-size: 18px;
    }
}

.tab-content {
    margin-top: 16px;
    margin-bottom: 0 !important;
}

/* Block Spacing within Tab Content */
.tab-content .tab__text,
.tab-content .tab__media-text>.wp-block-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tab-content .tab__text>*,
.tab-content .tab__media-text>.wp-block-group>* {
    margin: 0;
}

/* Tab Layout - Image & Text, Video & Text */
.tab__media-text {
    display: grid;
    gap: 24px;
}

.tab__media-text>.wp-block-video video {
    aspect-ratio: 1/1;
    object-fit: cover;
}

@media screen and (min-width: 620px) {
    .tab__media-text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "media text";
    }

    .tab__media-text>.wp-block-image,
    .tab__media-text>.wp-block-video {
        grid-area: media;
        margin-bottom: 0 !important;
    }

    .tab__media-text>.wp-block-group {
        grid-area: text
    }
}