[id^=modal] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
}

[id^=modal]:target {
    display: block;
}

input[type=checkbox] {
    position: absolute;
    clip: rect(0 0 0 0);
}

.popup {
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.popup--overlay {
    position: fixed;
    z-index: 1;
    display: block;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #000000b3;
}

.popup--wrapper {
    position: fixed;
    display: flex;
    flex-direction: column;
    z-index: 9;
    width: 92vw;
    height: 95vh;
    border-radius: 5px;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px 7px 7px 7px;
    background: #fff;
}

.popup--wrapper .icon {
    font-size: 0.5em;
    font-weight: 400;
    letter-spacing: 0.13em;
    margin-left: 10px;
}

.popup--wrapper a {
    margin-top: 5px;
}

.popup--close {
    position: absolute;
    top: -12px;
    right: 26px;
    text-decoration: none;
    color: #000;
    font-weight: 456;
    font-size: 40px;
}

.pdf-mobile {
    width: 100%;
    height: 98%;
}

.pdf-title {
    position: absolute;
    top: 7px;
    left: 17px;
    font-size: 17px;
    font-weight: 520;
    text-transform: capitalize;
}

article .popup--wrapper {
    position: fixed;
    display: flex;
    flex-direction: row;
    z-index: 9;
    width: 92vw;
    max-width: 800px;
    height: fit-content;
    border-radius: 5px;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px 7px 7px 7px;
    background: #fff;
}

.subject-box-modal {
    width: 30%;
    height: fit-content;
    max-height: 160px;
    margin: 30px 20px;
}

.subject-box-modal img {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s;
}

.subject-box-modal:hover img {
    transform: scale(1.1);
}

@media screen and (max-width:550px) {

    .subject-box-modal {
        width: 60%;
        margin: 3vw auto;
        /* margin: auto; */
    }
    
    article .popup--wrapper {
        flex-direction: column;
        width: 90vw;
        max-width: 300px;
    }
}