.capsule {
    width: 100%;
    display: flex;
    justify-content: center;
}

.capsule-560 .capsule-image {
    height: 560px;
}

.capsule-427 .capsule-image {
    height: 427px;
}

.capsule-225 .capsule-image {
    height: 225px;
}

.capsule p {
    line-height: 1.25;
}

.capsule-body {
    width: 100%;
    height: 100%;
    max-width: 1260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.capsule-image {
    width: 100%;
    display: flex;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}


.capsule-cover  .capsule-image{
    background-size: cover;
}

.capsule-contain  .capsule-image{
    background-size: contain;
}


.capsule-image-70 {
    order: 2;
}

.capsule-image-50 {
    order: 2;
}

.capsule-content {
    flex-grow: 1;
    padding: 1rem;
    order: 1;
}

.capsule-content-left {
    max-width: 350px;
    margin-right: auto;
}

.capsule-content-center {
    max-width: 810px;
    margin-left: auto;
    margin-right: auto;
}

.capsule-content-right {
    max-width: 350px;
    margin-left: auto;
}

.capsule-text {
    font-size: 1.25rem;
}

.capsule-text-a a {
    display: block !important;
    width: inherit !important;
}

.capsule p {
    margin-bottom: 0;
}

.capsule a {
    color: inherit;
}

.capsule-link::after {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
    margin-left: .25rem;
}

.capsule-links-arrow-right a::after {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
    margin-left: .25rem;
}

.capsule-links-button-white a, .capsule-links-button-black a {
    display: inline-block;
    width: max-content;
    color: inherit;
    cursor: pointer;
    padding: .375rem .75rem;
    border-radius: .25rem;
    border-width: 1px;
    border-style: solid;
}

.capsule-links-button-white a {
    border-color: #ffffff;
}

.capsule-links-button-black a {
    border-color: #000000;
}

.note-popover a {
    border: none !important;
}

.note-popover a::after {
    content: none !important;
}

.capsule-tab-pill {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
}

.capsule-tab-pill::after {
    content: none !important;
}

.capsule-tabs {
    width: 100%;
    height: 100%;;
    display: flex;
    flex-direction: column;
}

.capsule-tabs-content {
    flex-grow: 1;
}

.capsule-tabs-pills, .capsule-tabs-pills-4 {
    margin-top: 1rem;
}

/* .capsule-tabs-pills .nav-item {
    width: 33%;
} */

.capsule-tabs-pills .nav-link.active, .capsule-tabs-pills-4 .nav-link.active {
    background-color: unset;
}

.capsule-tab-pill {
    max-width: 125px;
    /* min-width: 125px; */
    padding: 0;
    margin-right: 1rem;
    opacity: .5;
    font-size: 1rem;
    line-height: 1;
}

.capsule-tabs-pills .capsule-tab-pill.active, .capsule-tabs-pills-4 .capsule-tab-pill.active {
    opacity: 1;
}

.capsule-tab-pill:hover {
    opacity: 1;
}

.capsule-tabs-pills .nav-link, .capsule-tabs-pills-4 {
    color: #ffffff;
}

/* .nav-pills .nav-link:not(.active):focus, .nav-pills .nav-link:not(.active):hover {
    color: unset !important;
} */

.capsule-video {
    width: 100%;
    height: 100%;
    margin: auto;
}

/* Extra small devices (portrait phones, less than 576px) */
@media (min-width: 576px) {
    /* .capsule-video { max-width: 540px; } */
    .capsule-tabs-pills, .capsule-tabs-pills-4 {
        margin-top: 1rem;
        margin-bottom: -1.875rem;
        height: 48px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (min-width: 768px) {
    .capsule-560 {
        height: 560px;
    }

    .capsule-427 {
        height: 427px;
    }

    .capsule-225 {
        height: 225px;
    }

    .capsule-body {
        flex-direction: row;
    }

    .capsule-image {
        height: 100%;
    }

    .capsule-image-70 {
        flex: 0 0 70%;
        order: 1;
    }

    .capsule-image-50 {
        flex: 0 0 50%;
        order: 1;
    }

    .capsule-content {
        padding: 1.875rem;
        order: 2;
    }

    div.capsule-tab-image {
        display: none !important;
    }

    img.capsule-tab-image {
        display: none !important;
    }

    div.capsule-tab-image.active {
        display: block !important;
    }
}

@media (max-width: 768px){
    div.capsule-tab-image {
        display: none !important;
    }

    img.capsule-tab-image {
        display: none !important;
    }

    img.capsule-tab-image.active {
        display: block !important;
    }
}

@media (max-width: 400px){
    .capsule-content{
        word-break: break-word;
        hyphens: auto;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (min-width: 992px) {
    /* .capsule-video { max-width: 960px; } */

    /* .capsule-tabs-pills .nav-item {
        width: auto;
    } */

    .capsule-tab-pill {
        min-width: 125px;
    }

    .capsule-tab-pill::before {
        content: '';
        width: 100%;
        height: 5px;
        display: block;
        margin-bottom: .25rem;
        background-color: #ffffff;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (min-width: 1200px) {
    /* .capsule-video { max-width: 1140px; } */
}
