/*
 Theme Name:   Astra Child
 Theme URI:    https://lit-hamburg.de/
 Description:  Child Theme for Astra — contains custom functionality for lit-hamburg
 Author:       LiTo
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* ── Veranstaltung: Elemente nur bei verknüpften Autor*innen zeigen ── */
body.lit-event-no-authors .lit-hide-if-no-authors {
    display: none !important;
}

/* ── Autor*innenarchiv ── */
.author-bio .xpro-element-custom-field {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-portrait {
    flex: 0 0 130px !important;
    width: 130px !important;
}

.author-portrait img {
    width: 130px !important;
    height: 80px !important;
    object-fit: cover !important;
    object-position: center top;
    display: block;
}

/* ── Autor*innen Detailseite ── */
.author-portrait-single .elementor-widget-container,
.author-portrait-single .xpro-cf-wrapper,
.author-portrait-single .xpro-element-custom-field,
.author-portrait-single a {
    display: block;
    width: 100%;
}

.author-portrait-single img {
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Mobile */
@media (max-width: 767px) {
    .author-portrait {
        order: -1;
    }

    .author-portrait-single img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .author-portrait-single {
        flex: 0 0 340px !important;
        width: 340px !important;
        min-width: 340px !important;
    }

    .author-portrait-single img {
        width: 100% !important;
        height: 230px !important;
    }
}
