/* Cache-resistant Sher's Thoughts presentation bridge for Photofall. */
.tbfbkm-pf-item.has-sher-thoughts-feed {
    overflow: visible !important;
    background: transparent !important;
}

.tbfbkm-pf-item.has-sher-thoughts-feed > .tbfbkm-pf-inner {
    overflow: hidden !important;
    border-radius: 12px;
}

.tbfbkm-pf-sher-thoughts,
.tbfbkm-lb-sher-thoughts-host .tbfbkm-sher-thoughts-note {
    position: relative;
    display: block !important;
    box-sizing: border-box;
    padding: 20px 24px 18px 28px;
    border: 1px solid #e3cf92;
    border-radius: 4px 14px 6px 12px;
    background: linear-gradient(90deg, transparent 0 22px, rgba(211,92,86,.24) 22px 23px, transparent 23px), repeating-linear-gradient(0deg, rgba(95,126,168,.1) 0 1px, transparent 1px 27px), linear-gradient(145deg, #fffdf1 0%, #fff6cb 68%, #f7e7a5 100%);
    color: #4a3920;
    box-shadow: 0 14px 32px rgba(15,23,42,.24);
}

.tbfbkm-pf-sher-thoughts {
    width: calc(100% - 24px) !important;
    height: auto !important;
    margin: 12px auto 16px !important;
    transform: rotate(-1.15deg) !important;
}

.tbfbkm-sher-thoughts-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #8a5b16;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tbfbkm-sher-thoughts-body {
    font-family: "Segoe Print", "Bradley Hand", Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

#tbfbkm-lightbox .tbfbkm-lb-media-shell.has-sher-thoughts {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
}

#tbfbkm-lightbox .tbfbkm-lb-media-shell.has-sher-thoughts > .tbfbkm-lb-media-inner {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
}

#tbfbkm-lightbox .tbfbkm-lb-sher-thoughts-host {
    display: block;
    flex: 0 0 auto;
    width: min(100%, 760px);
    max-height: 42%;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#tbfbkm-lightbox .tbfbkm-lb-sher-thoughts-host[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .tbfbkm-pf-sher-thoughts {
        transform: rotate(-.8deg) !important;
    }
    #tbfbkm-lightbox .tbfbkm-lb-sher-thoughts-host {
        width: 100%;
        max-height: 34%;
    }
    .tbfbkm-sher-thoughts-body {
        font-size: 14px;
        line-height: 1.58;
    }
}
