@media screen and (max-width:375px) {

    :root .pdf-theme-1,
    :root .pdf-theme-2,
    :root .pdf-theme-3,
    :root .pdf-theme-4,
    :root .pdf-theme-5 {
        --h2: normal 600 28px/1.2 var(--second-font);
        --h3: normal 600 16px/1.2 var(--first-font);
        --common-text: normal 400 14px/1.4 var(--first-font);
    }

    .gallery-card {
        padding: 30px 15px;
    }

    /* pdf gallery theme 1 start  */
    .pdf-theme-1 .card-title h2,
    .pdf-theme-3 .card-title h2,
    .pdf-theme-5 .card-title h2 {
        margin-bottom: 20px;
    }

    .pdf-theme-1 .gallery-card-image,
    .pdf-theme-3 .gallery-card-image,
    .pdf-theme-5 .gallery-card-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 20px;
    }

    .pdf-theme-1 .gallery-card-content p,
    .pdf-theme-2 .gallery-card-content p,
    .pdf-theme-4 .gallery-card-content p,
    .pdf-theme-5 .gallery-card-content p {
        margin-bottom: 20px;
    }

    .pdf-theme-1 .gallery-card-image {
        outline-offset: 5px;
    }

    .pdf-theme-1 .gallery-card {
        padding: 30px 15px;
    }

    .gallery-card-content p,
    .pdf-theme-3 .gallery-card-content p {
        margin-bottom: 20px;
    }

    .gallery-card-content ul {
        padding: 0;
        gap: 10px;
    }

    .gallery-card-content-info .pdf-name span {
        font: 500 13px var(--first-font);
    }

    .pdf-theme-1 ul li .gallery-card-content-info,
    .pdf-theme-2 ul li .gallery-card-content-info,
    .pdf-theme-4 ul li .gallery-card-content-info,
    .pdf-theme-5 ul li .gallery-card-content-info {
        gap: 8px;
    }

    .pdf-theme-1 .gallery-bottom-content li a,
    .pdf-theme-2 .gallery-bottom-content li a,
    .pdf-theme-4 .gallery-bottom-content li a,
    .pdf-theme-5 .gallery-bottom-content li a {
        padding: 5px 15px 5px 6px;
    }

    .pdf-theme-1 .gallery-bottom-content .pdf-icon,
    .pdf-theme-2 .gallery-bottom-content .pdf-icon,
    .pdf-theme-4 .gallery-bottom-content .pdf-icon,
    .pdf-theme-5 .gallery-bottom-content .pdf-icon {
        width: 45px;
        height: 45px;
        padding: 10px 14px;
    }

    .pdf-list-item {
        width: 8px;
    }

    /* pdf gallery theme 1 end */

    /* pdf gallery theme 2 start */
    .pdf-theme-2 .gallery-card {
        padding: 180px 15px 30px;
    }

    /* pdf gallery theme 2 end */

    /* pdf gallery theme 3 start  */
    .pdf-theme-3 .gallery-card {
        padding: 30px 15px 85px;
    }

    .pdf-theme-3 .pdf-icon {
        width: 50px;
        height: 50px;
        padding: 10px 15px;
    }

    .pdf-theme-3 .pdf-data {
        padding: 7px 10px 7px 10px;
    }

    .pdf-theme-3 ul li .gallery-card-content-info {
        gap: 8px;
    }

    /*pdf gallery theme 3 end  */

    /*pdf gallery theme 4 start  */
    .pdf-theme-4 .gallery-card-image,
    .pdf-theme-4 .gallery-img-wrp::after {
        width: 115px;
        height: 160px;
    }

    .pdf-theme-4 .bg-card-1 {
        top: 110px;
        right: 14%;
    }

    .pdf-theme-4 .gallery-card-content {
        padding: 20px 15px;
    }

    .pdf-theme-4 .bg-card-2 {
        top: -15px;
        width: 70px;
    }

    /* pdf gallery theme 4 end  */

    /* pdf gallery theme 5 start  */
    .pdf-theme-5 .gallery-img-wrp::after {
        width: 120px;
        height: 120px;
    }

    .pdf-theme-5 .gallery-bottom-content li {
        border-radius: 15px;
        -webkit-border-radius: 15px;
        -moz-border-radius: 15px;
        -ms-border-radius: 15px;
        -o-border-radius: 15px;
    }

    /* pdf gallery theme 5 end  */
}