/*
Theme Name: Freches Volkstheater Child
Theme URI: https://freches-volkstheater.de/
Description: Astra Child Theme mit Custom Post Types und Stück-Verknüpfungen
Author: Viedev GmbH
Author URI: https://www.viedev.com
Version: 2.13.0
Template: astra
License: GPL v2 or later
*/

/* ============================================================================
   COMPACT PIECES / ROLES SECTION
   ============================================================================ */

.fvt-ensemble-pieces {
    margin: 42px 0 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, .12);
}

.fvt-ensemble-pieces h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: inherit;
}

.fvt-pieces-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fvt-piece-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.fvt-piece-link {
    font-weight: 600;
    text-decoration: none;
}

.fvt-piece-link:hover {
    text-decoration: underline;
}

.fvt-piece-roles {
    color: #666;
    font-size: .93em;
}

.fvt-piece-roles::before {
    content: "Rolle: ";
}

@media (max-width: 600px) {
    .fvt-piece-item {
        display: block;
    }

    .fvt-piece-roles {
        display: block;
        margin-top: 2px;
    }
}

/* ============================================================================
   PORTRAIT GALLERY (image + name only)
   ============================================================================ */
.fvt-portrait-grid {
    display: grid;
    grid-template-columns: repeat(var(--fvt-portrait-columns, 4), minmax(0, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.fvt-portrait-card {
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
    transition: transform .2s ease, box-shadow .2s ease;
}

.fvt-portrait-card:hover,
.fvt-portrait-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .16);
}

.fvt-portrait-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eee;
}

.fvt-portrait-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fvt-portrait-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eee, #ddd);
}

.fvt-portrait-name {
    display: block;
    padding: 14px 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

@media (max-width: 900px) {
    .fvt-portrait-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .fvt-portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 420px) {
    .fvt-portrait-grid { grid-template-columns: 1fr; }
}


/* Lifecycle und mobile Bilddarstellung */
.fvt-is-inactive { opacity: .68; }
.fvt-inactive-badge { display:inline-block; padding:2px 7px; border-radius:999px; background:#ececec; color:#555; font-size:11px; font-weight:700; line-height:1.5; text-transform:uppercase; letter-spacing:.04em; }
.fvt-portrait-image { position:relative; }
.fvt-portrait-image > .fvt-inactive-badge { position:absolute; z-index:2; top:8px; right:8px; }
@media (max-width: 680px) {
  .fvt-portrait-image img { object-position:center top; }
}
