@media screen and (min-width:701px) {
    .new_lab {
        z-index: 2;
        position: absolute;
        background: #4caf50;
        padding: 4px 10px;
        right: -13px;
        top: -11px;
        font-size: 12px;
        color: white;
        border-radius: 24px;
    }

    .temp_preview {
        padding: 50px;
        text-align: center;
        width: auto;
        margin: 0 auto;
        overflow-x: scroll;
        background: white;
    }

    .temp_preview h1 {
        text-align: center;
        font-weight: 400;
        margin: 0px 10px 40px;
    }

    .demo_slider {
        display: grid;
        grid-template-columns: auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto;
    }

    .temp_pre {
        display: inline-grid;
        margin: 10px 16px;
        text-align: center;
    }

    .temp_pre img {
        width: 150px;
        border: 30px solid #000000;
        height: auto;
        border-radius: 12px;
        border-left: 5px solid #000000;
        border-right: 5px solid #000000;
        padding: 0px;
    }

    .temp_pre:hover img {
        transition: 0.3s;
        transform: scale(1.1);
    }
}

@media screen and (max-width:700px) {
    .new_lab {
        z-index: 2;
        position: absolute;
        background: #4caf50;
        padding: 4px 10px;
        right: -13px;
        top: -11px;
        font-size: 12px;
        color: white;
        border-radius: 24px;
    }

    .temp_pre {
        display: inline-grid;
        margin: 10px 7px;
        text-align: center;
    }

    .temp_pre img {
        width: 150px;
        height: auto;
    }

    .temp_preview {
        padding: 24px;
        text-align: center;
    }

    .temp_preview h1 {
        text-align: center;
        font-weight: 600;
        margin: 0px 0px 10px;
        font-size: 26px;
        padding: 0px 0px 14px
    }
}