/* Scoped styles: intentionally minimal so the widget inherits the active theme. */
.tge-ptw-list,
.tge-ptw-list * {
    box-sizing: border-box;
}

.tge-ptw-list {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.tge-ptw-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.28);
    overflow: hidden;
}

.tge-ptw-item:first-child {
    padding-top: 0;
}

.tge-ptw-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.tge-ptw-thumb-right .tge-ptw-item {
    flex-direction: row-reverse;
}

.tge-ptw-thumb {
    flex: 0 0 var(--tge-ptw-thumb-width, 90px);
    width: var(--tge-ptw-thumb-width, 90px);
    max-width: 46%;
    height: var(--tge-ptw-thumb-height, 70px);
    overflow: hidden;
    display: block;
    text-decoration: none;
    line-height: 0;
}

.tge-ptw-thumb img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    border: 0;
    border-radius: 3px;
}

.tge-ptw-content {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

.tge-ptw-headline {
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit;
    font-size: var(--tge-ptw-title-size, 15px) !important;
    line-height: 1.32 !important;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tge-ptw-headline a {
    color: inherit;
    text-decoration: none;
}

.tge-ptw-headline a:hover,
.tge-ptw-headline a:focus {
    text-decoration: underline;
}

.tge-ptw-date {
    display: block;
    margin-top: 5px;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.3;
    opacity: 0.72;
}

.tge-ptw-block-widget,
.tge-ptw-shortcode-widget {
    width: 100%;
    max-width: 100%;
}

.tge-ptw-block-title {
    margin-top: 0;
}

/* Very narrow footer columns or sidebars: keep the image from swallowing the headline. */
@media (max-width: 420px) {
    .tge-ptw-item {
        gap: 10px;
    }

    .tge-ptw-thumb {
        max-width: 42%;
    }
}
