/* Reklama 3D – wspólne style strony i podglądu w adminie (silnik: jelonka/js/ad-3d.js). */
.ad-3d-host {
    position: relative;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: -webkit-grab;
    cursor: grab;
}

.ad-3d-host .ad-3d-spacer {
    visibility: hidden;
}

.ad-3d {
    position: absolute;
    display: block;
    pointer-events: none;
    -webkit-perspective-origin: 50% 50%;
    perspective-origin: 50% 50%;
}

.ad-3d__body {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: transform;
}

.ad-3d__face {
    position: absolute;
    top: 0;
    left: -0.5px;
    display: block;
    width: calc(100% + 1px);
    height: 100%;
    overflow: hidden;
    outline: 1px solid transparent;
    background: #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.ad-3d__face::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.07), inset 0 -18px 28px -22px rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.ad-3d__gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: -webkit-linear-gradient(345deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 62%);
    background-image: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 62%);
    background-repeat: no-repeat;
    background-size: 260% 100%;
    pointer-events: none;
}

.ad-3d__cap {
    position: absolute;
    display: block;
    background-color: #e9e4df;
    background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.22), rgba(15, 23, 42, 0.06));
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(15, 23, 42, 0.06));
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.ad-3d__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    -o-object-fit: cover;
    object-fit: cover;
}

.ad-3d__shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    opacity: 0;
    pointer-events: none;
}
