/* Manşet / köşe kartı taşma kilidi */
.masthead__stage,
.masthead__slide,
.masthead-card {
    overflow: hidden !important;
    border-radius: 0.65rem !important;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    clip-path: inset(0 round 0.65rem);
    -webkit-clip-path: inset(0 round 0.65rem);
}

.masthead__slide img,
.masthead-card img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.masthead-card--cover .masthead-card__shade,
.masthead-card--cover .masthead-card__title,
.masthead-rail__label--oncard {
    display: none !important;
}

.masthead__rail--left {
    display: grid !important;
    gap: 0.55rem !important;
    align-content: start !important;
}

.masthead__rail--left > .masthead-rail__label {
    position: static !important;
    z-index: auto !important;
    margin: 0 !important;
}

.masthead__overlay {
    max-height: 48% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.masthead__title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

@media (max-width: 767.98px) {
    .masthead__title {
        font-size: 1.05rem !important;
        line-height: 1.2 !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
    .masthead__overlay {
        padding: 1rem 0.9rem 0.95rem !important;
        max-height: 42% !important;
    }
    .masthead__rail--left {
        gap: 0.65rem !important;
    }
}

@media (min-width: 768px) {
    .masthead__rail--left {
        grid-template-rows: auto repeat(3, minmax(0, 1fr)) !important;
    }
}
