/* ==========================================================
   DP – UNIWERSALNY BANER GALERII
   Kolory Dziennika Polickiego:
   #01182a, #c0130e, #ffffff, #ffcc00
   ========================================================== */

.dp-gallery-banner,
.dp-gallery-banner *,
.dp-gallery-banner *::before,
.dp-gallery-banner *::after {
    box-sizing: border-box;
}

.dp-gallery-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, 44%) minmax(0, 56%);
    width: 100%;
    min-height: 310px;
    margin: 28px 0;
    overflow: hidden;
    color: #ffffff !important;
    text-decoration: none !important;
    background: #01182a;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(1, 24, 42, .18);
    isolation: isolate;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.dp-gallery-banner:hover,
.dp-gallery-banner:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(1, 24, 42, .24);
}

.dp-gallery-banner:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 4px;
}

/* Lewa część */

.dp-gallery-banner__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 80px 50px 40px;
    background:
        radial-gradient(circle at 70% 50%, rgba(255,255,255,.045) 0 90px, transparent 92px),
        linear-gradient(135deg, #01182a 0%, #062640 100%);
}

.dp-gallery-banner__content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.7) 1px, transparent 1px);
    background-size: 12px 12px;
    mask-image: linear-gradient(to top right, #000 0%, transparent 54%);
}

.dp-gallery-banner__content::after {
    content: "";
    position: absolute;
    top: -8%;
    right: -32px;
    z-index: 4;
    width: 64px;
    height: 116%;
    background: #c0130e;
    transform: skewX(-16deg);
    box-shadow: 12px 0 0 rgba(255,255,255,.08);
}

.dp-gallery-banner__badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 14px 26px;
    color: #ffffff;
    background: #c0130e;
    border-radius: 0 0 8px 0;
    font-family: "Saira Condensed", Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.dp-gallery-banner__badge svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dp-gallery-banner__title {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0;
    color: #ffffff;
    font-family: "Saira Condensed", Arial, sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 6px 22px rgba(0,0,0,.22);
}

.dp-gallery-banner__title::after {
    content: "";
    display: block;
    width: 118px;
    height: 5px;
    margin-top: 22px;
    background: #ffcc00;
    border-radius: 3px;
}

.dp-gallery-banner__title-top,
.dp-gallery-banner__title-bottom {
    display: block;
}

.dp-gallery-banner__title-top {
    font-size: clamp(46px, 4.1vw, 76px);
    line-height: .92;
}

.dp-gallery-banner__title-bottom {
    margin-top: 8px;
    font-size: clamp(38px, 3.5vw, 66px);
    line-height: .95;
}

.dp-gallery-banner__title-bottom strong {
    color: #c0130e;
    font-weight: 900;
}

.dp-gallery-banner__lead {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    color: rgba(255,255,255,.92);
    font-size: 20px;
    line-height: 1.25;
}

.dp-gallery-banner__lead > span {
    color: #ffcc00;
    font-size: 32px;
    line-height: 1;
    transition: transform .25s ease;
}

.dp-gallery-banner:hover .dp-gallery-banner__lead > span {
    transform: translateX(4px);
}

/* Prawa część */

.dp-gallery-banner__photo {
    position: relative;
    z-index: 1;
    display: block;
    min-width: 0;
    min-height: 310px;
    overflow: hidden;
    background: #01182a;
}

.dp-gallery-banner__photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(to right, rgba(1,24,42,.28), transparent 38%),
        linear-gradient(to top, rgba(1,24,42,.4), transparent 48%);
}

.dp-gallery-banner__photo::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 150px;
    height: 120px;
    pointer-events: none;
    opacity: .22;
    background-image:
        radial-gradient(circle, #ffffff 1.5px, transparent 1.5px);
    background-size: 13px 13px;
    mask-image: linear-gradient(to bottom left, #000, transparent 70%);
}

.dp-gallery-banner__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
    transition: transform .55s ease, filter .35s ease;
}

.dp-gallery-banner:hover .dp-gallery-banner__photo img {
    transform: scale(1.035);
    filter: saturate(1.05);
}

.dp-gallery-banner__button {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 58px;
    padding: 13px 20px;
    color: #ffffff;
    background: rgba(1,24,42,.94);
    border: 2px solid #c0130e;
    border-radius: 6px;
    font-family: "Saira Condensed", Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
    transition: background .25s ease, transform .25s ease;
}

.dp-gallery-banner:hover .dp-gallery-banner__button {
    background: #c0130e;
    transform: translateX(2px);
}

.dp-gallery-banner__button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 5px;
}

.dp-gallery-banner__button-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dp-gallery-banner__arrow {
    color: #ffcc00;
    font-size: 31px;
    line-height: 0;
    transition: transform .25s ease;
}

.dp-gallery-banner:hover .dp-gallery-banner__arrow {
    transform: translateX(5px);
}

/* Tablet */

@media (max-width: 980px) {
    .dp-gallery-banner {
        grid-template-columns: minmax(300px, 47%) minmax(0, 53%);
        min-height: 270px;
    }

    .dp-gallery-banner__content {
        padding: 74px 34px 32px;
    }

    .dp-gallery-banner__photo,
    .dp-gallery-banner__photo img {
        min-height: 270px;
    }

    .dp-gallery-banner__badge {
        min-height: 52px;
        padding: 12px 20px;
        font-size: 17px;
    }

    .dp-gallery-banner__lead {
        font-size: 17px;
    }

    .dp-gallery-banner__button {
        right: 16px;
        bottom: 16px;
        min-height: 50px;
        padding: 10px 14px;
        font-size: 17px;
    }
}

/* Telefon */

@media (max-width: 680px) {
    .dp-gallery-banner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        margin: 22px 0;
        border-radius: 8px;
    }

    .dp-gallery-banner__content {
        min-height: 220px;
        padding: 72px 22px 28px;
    }

    .dp-gallery-banner__content::after {
        top: auto;
        right: auto;
        left: -8%;
        bottom: -13px;
        width: 116%;
        height: 26px;
        transform: skewY(-3deg);
        box-shadow: none;
    }

    .dp-gallery-banner__badge {
        min-height: 46px;
        padding: 10px 15px;
        font-size: 15px;
    }

    .dp-gallery-banner__badge svg {
        width: 20px;
        height: 20px;
    }

    .dp-gallery-banner__title-top {
        font-size: 46px;
    }

    .dp-gallery-banner__title-bottom {
        font-size: 38px;
    }

    .dp-gallery-banner__title::after {
        width: 90px;
        height: 4px;
        margin-top: 17px;
    }

    .dp-gallery-banner__lead {
        margin-top: 20px;
        font-size: 16px;
    }

    .dp-gallery-banner__photo,
    .dp-gallery-banner__photo img {
        min-height: 210px;
    }

    .dp-gallery-banner__button {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        justify-content: space-between;
        min-height: 48px;
        padding: 9px 13px;
        font-size: 16px;
    }

    .dp-gallery-banner__button-icon {
        width: 34px;
        height: 34px;
    }
}

/* Użytkownicy ograniczający animacje */

@media (prefers-reduced-motion: reduce) {
    .dp-gallery-banner,
    .dp-gallery-banner *,
    .dp-gallery-banner *::before,
    .dp-gallery-banner *::after {
        transition: none !important;
    }
}
