/*
 * Dziennik Policki — zdjęcie główne artykułu premium
 */

.dp-article-photo {
    width: 100%;
    margin: 0 0 32px;
}

.dp-article-photo,
.dp-article-photo * {
    box-sizing: border-box;
}

.dp-article-photo__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 9px 9px 0 0;
    background: #01182a;
    box-shadow: 0 12px 30px rgba(1, 24, 42, .12);
}

.dp-article-photo__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 674;
    object-fit: cover;
    object-position: center;
    border: 0;
}

.dp-article-photo__status {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 14px 7px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 5px;
    color: #fff;
    font-family: 'Saira Condensed', Arial, sans-serif;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .35px;
    text-transform: uppercase;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .25);
}

.dp-article-photo__status--urgent {
    background: #c0130e;
}

.dp-article-photo__status--live {
    background: rgba(1, 24, 42, .92);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.dp-article-photo__status-icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #c0130e;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
}

.dp-article-photo__live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef241c;
    box-shadow: 0 0 0 0 rgba(239, 36, 28, .55);
    animation: dp-article-live-pulse 1.8s ease-out infinite;
}

.dp-article-photo__caption {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 11px 14px 12px;
    border-left: 3px solid #c0130e;
    border-radius: 0 0 7px 7px;
    background: #f1f3f4;
    color: #5c6871;
    font-size: 13px;
    line-height: 1.45;
}

.dp-article-photo__description {
    min-width: 0;
}

.dp-article-photo__author {
    margin-left: auto;
    color: #01182a;
    font-weight: 700;
    white-space: nowrap;
}

@keyframes dp-article-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 36, 28, .58);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(239, 36, 28, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 36, 28, 0);
    }
}

@media (max-width: 700px) {
    .dp-article-photo {
        margin-bottom: 25px;
    }

    .dp-article-photo__media {
        border-radius: 6px 6px 0 0;
    }

    .dp-article-photo__status {
        top: 12px;
        left: 12px;
        min-height: 32px;
        gap: 7px;
        padding: 6px 10px 5px;
        font-size: 15px;
    }

    .dp-article-photo__status-icon {
        width: 15px;
        height: 15px;
        font-size: 11px;
    }

    .dp-article-photo__live-dot {
        width: 8px;
        height: 8px;
    }

    .dp-article-photo__caption {
        flex-direction: column;
        gap: 4px;
        padding: 10px 12px;
    }

    .dp-article-photo__author {
        margin-left: 0;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dp-article-photo__live-dot {
        animation: none;
    }
}


/* Korekta pozycjonowania w GK Technews */
.itemView .dp-article-photo,
.item-body .dp-article-photo,
.article-main-text + .dp-article-photo {
    display: block !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
}

.itemView .dp-article-photo__media,
.item-body .dp-article-photo__media {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.itemView .dp-article-photo__image,
.item-body .dp-article-photo__image {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}
