.wpe-body-widget {
    width: 1240px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: black;
    position: relative;
}

/* Kafelki klepsydr */
.wpe-page-box {
    top: 0;
    width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
    font-family: 'CrimsonText', serif;
}

.wpe-fade-content {
    position: absolute;
    background-color: #ffffff98;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

.wpe-loading-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wpe-loading-wheel {
    width: 10%;
    height: auto;
    color: #000;
    animation: spin-steps 1s steps(12) infinite;
}

@keyframes spin-steps {
        from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.wpe-page-row {
    display: flex;
    flex-direction: row;
}

.wpe-page-item-box {
    width: 300px;
    height: 300px;
    padding: 12px;
}

.wpe-page-item {
    min-width: 100%;
    min-height: 100%;
    font-size: 16pt;
    border: 1px double rgb(158, 158, 158);
    color: #000;
    position: relative;
    cursor: pointer;
    user-select: none; /* Standard syntax */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    -moz-user-select: none; /* Forefox syntax */
}

.wpe-item-background {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.wpe-item-sw {
    position: absolute;
    top: 34%;
    width: 100%;
    text-align: center;
    font-weight: bold;
}

.wpe-item-nameln {
    position: absolute;
    top: 42%;
    width: 100%;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.wpe-item-namewarp {
    width: 80%;
    text-align: center;
}

.noWarpTxt {
    white-space: nowrap;
    text-wrap: nowrap;
}

.wpe-item-death-date {
    width: 100%;
    top: 66%;
    text-align: center;
    position: absolute;
    font-weight: normal;
    font-style: normal;
}

/* Nawigacja */
.wpe-fotter-widget {
    display: flex;
    width: 100%;
    height: 56px;
    justify-content: center;
    align-items: center;
}

.wpe-navigator-box {
    display: flex;
    flex-direction: row;
    width: 90%;
    height: 80%;
    justify-content: space-between;
    align-items: center;
    font-family: 'CrimsonText', serif;;
    font-style: normal;
    font-weight: normal;
    font-size: 18pt;
}

.wpe-navigator-btn {
    cursor: pointer;
    display: block;
}

.wpe-left-navi-btn-box {
    width: 50%;
    display: flex;
    justify-content: flex-start;
    user-select: none; /* Standard syntax */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    -moz-user-select: none; /* Forefox syntax */
}

.wpe-right-navi-btn-box {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    user-select: none; /* Standard syntax */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    -moz-user-select: none; /* Forefox syntax */
}


@media (min-width: 360px) {
    .wpe-body-widget {
        width: 360px;
    }

    .wpe-page-box {
        width: 320px;
        grid-template-columns: repeat(1, 1fr);
        gap: 0px;
    }

    .wpe-page-item-box {
        width: 320px;
        height: 320px;
    }

    .wpe-page-item {
        font-size: 14pt;
    }

    .wpe-navigator-box {
        font-size: 16pt;
    }
}

@media (min-width: 768px) {
    .wpe-body-widget {
        width: 768px;
    }

    .wpe-page-box {
        width: 728px;
        grid-template-columns: repeat(2, 1fr);
        gap: 0px;
    }

    .wpe-page-item-box {
        width: 364px;
        height: 364px;
    }

    .wpe-page-item {
        font-size: 20pt;
    }

    .wpe-navigator-box {
        font-size: 18pt;
    }
}

@media (min-width: 1240px) {
    .wpe-body-widget {
        width: 1240px;
    }

    .wpe-page-box {
        width: 1200px;
        grid-template-columns: repeat(4, 1fr);
        gap: 0px;
    }

    .wpe-page-item-box {
        width: 300px;
        height: 300px;
    }

    .wpe-page-item {
        font-size: 14pt;
    }
    
    .wpe-navigator-box {
        font-size: 18pt;
    }
}