/* ============================================================
   TEASER BOX (assets/css/teaser.css)
   ============================================================ */

/* Outer box — display: block like other box types (static-image-box, parallax-box).
   custom.css handles .content height: 100% and flex layout inside. */
.teaser-box {
    position: relative;
    overflow: hidden;
    height: var(--h, 35vh);
    display: block;
    text-decoration: none;
    color: inherit;
}

.teaser-box .static-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.teaser-box .video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Readability overlay */
.teaser-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
    pointer-events: none;
}

.teaser-box.gradient-box::after {
    display: none;
}

/* Content — mirrors .parallax-box > .content from custom.css:
   height: 100% + justify-content: flex-end pushes text to the bottom.
   position: relative + z-index: 2 set explicitly (not relying on cascade from custom.css). */
.teaser-box > .content {
    position: relative;
    z-index: 2;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 45px var(--content-padding-default, 30px) 1.5em;
    color: #fff;
}

/* Preserve center/top alignment variants (override the flex-end default above) */
.teaser-box > .content.center {
    justify-content: center;
    align-items: center;
}

.teaser-box > .content.top {
    justify-content: flex-start;
    align-items: flex-start;
}

/* Chip */
.teaser-meta-top { margin-bottom: 0.6em; }

.teaser-chip {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    background-color: rgba(255,255,255,0.18);
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease;
}

.teaser-chip:hover { background-color: rgba(255,255,255,0.28); }

/* Title */
.teaser-title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.4em;
    color: #fff;
}

/* Cutout effect — background-clip reveals box background through text */
.teaser-title.cutout {
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}

/* Subtitle */
.teaser-subtitle {
    font-size: 0.9rem;
    margin: 0 0 0.4em;
    color: rgba(255,255,255,0.82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author */
.teaser-author {
    font-size: 0.8rem;
    margin: 0;
    color: rgba(255,255,255,0.6);
}

/* Hover zoom */
.teaser-box.hover-zoom .static-image-bg,
.teaser-box.hover-zoom .video-bg {
    transition: transform 0.4s ease;
}

.teaser-box.hover-zoom:hover .static-image-bg,
.teaser-box.hover-zoom:hover .video-bg {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .teaser-box {
        height: var(--h, 45vw);
        min-height: 200px;
    }

    .teaser-box > .content {
        padding: 20px var(--content-padding-mobile, 10px) 1.2em;
    }
}
