/* Trinity Newsletters
   Lightweight carousel styling
*/

.tnl-wrap,
.tnl-wrap * {
    box-sizing: border-box;
}

.tnl-wrap {
    width: 100%;
    font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

.tnl-carousel {
    position: relative;
    width: 100%;
}

.tnl-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 2px 18px;
}

.tnl-viewport::-webkit-scrollbar {
    display: none;
}

.tnl-track {
    display: flex;
    align-items: stretch;
    margin: 0 -10px;
}

.tnl-card {
    position: relative;
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
    margin: 0 10px;
    overflow: hidden;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 7px 24px rgba(0,0,0,.05);
    scroll-snap-align: start;
}

.tnl-card.is-current {
    border-color: #b9d7dc;
}

.tnl-cover-link {
    display: block;
    text-decoration: none !important;
}

.tnl-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 8.5 / 11;
    overflow: hidden;
    background: #f2f2f2;
}

.tnl-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .2s ease;
}

.tnl-cover-link:hover img,
.tnl-cover-link:focus img {
    transform: scale(1.015);
}

.tnl-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 28px;
    background: #dceff2;
    color: #292929;
    text-align: center;
}

.tnl-placeholder span {
    margin-bottom: 5px;
    color: #a71920;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tnl-placeholder strong {
    font-size: 27px;
    font-weight: 500;
}

.tnl-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-block;
    padding: 7px 10px;
    border-radius: 4px;
    background: #a71920;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.tnl-card-body {
    padding: 20px 20px 22px;
}

.tnl-date {
    margin: 0 0 6px !important;
    color: #777777;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.tnl-title {
    margin: 0 0 16px !important;
    color: #292929;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.tnl-title a {
    color: #292929 !important;
    text-decoration: none !important;
}

.tnl-title a:hover,
.tnl-title a:focus {
    color: #a71920 !important;
}

.tnl-view-link {
    color: #a71920 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.tnl-view-link:hover,
.tnl-view-link:focus {
    text-decoration: underline !important;
}

.tnl-arrow {
    position: absolute;
    z-index: 5;
    top: 42%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    border: 1px solid #c8c8c8;
    border-radius: 50%;
    background: #ffffff;
    color: #292929;
    box-shadow: 0 3px 12px rgba(0,0,0,.10);
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
}

.tnl-arrow:hover,
.tnl-arrow:focus {
    border-color: #a71920;
    color: #a71920;
}

.tnl-arrow:disabled {
    opacity: .3;
    cursor: default;
}

.tnl-prev {
    left: -21px;
}

.tnl-next {
    right: -21px;
}

.tnl-mobile-hint {
    display: none;
    margin-top: 4px;
    color: #777777;
    font-size: 12px;
    text-align: center;
}

.tnl-admin-note,
.tnl-empty {
    padding: 18px 20px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    background: #ffffff;
    color: #555555;
    font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

/* Tablet */
@media (max-width: 960px) {
    .tnl-card {
        flex-basis: calc(50% - 20px);
    }
}

/* Mobile */
@media (max-width: 700px) {
    .tnl-track {
        margin: 0 -6px;
    }

    .tnl-card {
        flex-basis: calc(88% - 12px);
        margin: 0 6px;
    }

    .tnl-card-body {
        padding: 17px 17px 20px;
    }

    .tnl-title {
        font-size: 18px;
    }

    .tnl-arrow {
        display: none;
    }

    .tnl-mobile-hint {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tnl-viewport {
        scroll-behavior: auto;
    }

    .tnl-cover img {
        transition: none;
    }
}
