.contain-use {
    margin: 25px 0px;
}

.contain-use h3 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2e2f7a;
    margin-bottom: 3rem;
}

.bg-use-header {
    width: auto;
    height: auto;
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    padding: .2em 1.6em .2em 1.6em;
    font-size: 2.2em;
    margin-top: -15px;
    font-family: 'Noto Sans Thai', sans-serif;
    color: #fff;
    left: 50%;
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    letter-spacing: 1px;
    z-index: 1;
}

.box_use .detail {
    width: 100%;
    position: relative;
    background-image: linear-gradient(to bottom, #5354b8 0%, #2e2f7a 100%);
    padding: 4em 3em 1em 3em;
    color: #666666;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 1.25em;
    line-height: 1.4em;
    border-radius: 40px 40px 0px 0px;
}

.box_right .box_type {
    position: relative;
    z-index: 0;
    text-align: center;
    color: #2e2c7c;
}

.box_right .box_type .type {
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 1.8em;
}

.box_right .box_type .desc {
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 1.1em;
    line-height: 1.5em;
    padding: 0.8em 6em;

}

.box_right .box_type .btn {
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 0.9em;
    box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to bottom, #5354b8 0%, #2e2f7a 100%);
    color: white;
    border-radius: 30px;
    padding: 0.4em 2.5em;
    letter-spacing: 0.2px;
    margin-top: 10px;
}

.box_right .box_type .btn:hover {
    -ms-transform: scale(1.01);
    -webkit-transform: scale(1.01);
    transform: scale(1.01);
    box-shadow: 0 3px 5px .5px rgba(0, 0, 0, 0.3);
}

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

    .bg-use-header {
        padding: .2em 1.6em .2em 1.6em;
        font-size: 2em;
    }

    .box_use .detail {
        font-size: 1.15em;
        line-height: 1.4em;
    }

    .box_right .box_type .type {
        font-size: 1.5em;
    }

    .box_right .box_type .desc {
        font-size: 0.95em;
        line-height: 1.5em;
        padding: 0.8em 3.5em;
    }

    .box_right .box_type .btn {
        font-size: 0.8em;
    }
}

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

    .box_use .detail {
        font-size: 1.1em;
        line-height: 1.4em;
    }

    .box_right .box_type {
        margin: 70px auto;
    }
}

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

    .bg-use-header {
        margin-top: -10px;
        font-size: 1.8em;
    }

    .box_use .detail {
        font-size: 1.1em;
        line-height: 1.4em;
        padding: 3.5em 2em 1em 2em;
        border-radius: 30px 30px 0px 0px;
    }

    .box_right .box_type .type {
        font-size: 1.3em;
    }

    .box_right .box_type .desc {
        font-size: 0.9em;
        line-height: 1.5em;
        padding: 0.8em 3em;
    }

    .box_right .box_type .btn {
        font-size: 0.7em;
    }

}

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

    .bg-use-header {
        margin-top: -8px;
        font-size: 1.5em;
    }

    .box_use .detail {
        font-size: 1em;
        line-height: 1.4em;
        padding: 3.5em 2em 1em 2em;
        border-radius: 30px 30px 0px 0px;
    }

    .box_right .box_type .type {
        font-size: 1.1em;
    }

    .box_right .box_type .desc {
        font-size: 0.8em;
        line-height: 1.5em;
        padding: 0.8em 3em;
    }

    .box_right .box_type .btn {
        font-size: 0.65em;
    }
}

/* ------------------------ image gallery css section -------------------------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    /* font-family: Arial; */
}

/* The grid: Four equal columns that floats next to each other */

/* Style the images inside the grid */
.row .column img {
    opacity: 0.7;
    filter: brightness(.7);
    cursor: pointer;
    transition: all .3s ease;
}

.row .column img:hover {
    opacity: 1;
    filter: brightness(1);
}

/* Clear floats after the columns */
.row2:after {
    content: "";
    display: table;
    clear: both;
}

/* The expanding image container */
.container2 {
    position: relative;
    display: block;
}

/* Expanding image text */
#imgtext {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-size: 20px;
}

/* Closable button inside the expanded image */
.closebtn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

#expandedImg {
    /* width:49%; */
    /* margin-right: 1%; */
    width: 100%;
}

#expandedImg2 {
    width: 49%;
}

@media screen and (max-width: 495px) {
   #expandedImg {
       /* width: 48%;
       margin-right: 1%; */
       width: 100%;
   }

   #expandedImg2 {
       width: 48%;
   }
}

@media screen and (max-width: 269px) {
    #expandedImg {
        /* width: 47%;
       margin-right: 1%; */
       width: 100%;
       }

    #expandedImg2 {
        width: 47%;
    }
}
