aside {
    width: auto;
    text-align: center;
    margin: 0 3em;
}
article {
    flex:1;
    flex-flow: row wrap;
    justify-content: stretch;
    align-items: stretch;
    margin: 0 15px;
}
article > div {
    flex-grow: 1;
}

.head-group-text {
    font-family: Kanit;
    font-size: 18px;
    font-weight: normal;
}
.item-list {
    display: flex;
    flex-flow: row wrap;
}
.inst-card {
    width: 96%;
    border: 1px solid #ddd;
    border-radius: 7px;
    background-color: #eef5f8;
    margin: 5px 10px;
    box-shadow: 0 0 6px -3px #888;
}
}
.inst-card .card-body {
    display: flex;
    flex-direction: column;
    padding:0 10px;
    flex:1;
    color:#666;
}
.inst-card .photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 10px;

}
.inst-card .item-name {
    font-family: Kanit;
    font-size: 18px;
    margin: 10px 10px 5px 0;
    font-weight: normal;
    color: #333;
}
.main-photo {
    width: 90%;
    box-shadow: 0 3px 16px -4px rgb(0 0 0 / 62%);
    border-radius: 8px;
    max-width: 250px;
    margin: 1em auto 2em;
}
.head-info {
    flex-direction: column;
}
.header-1{text-align: center; margin-bottom: 3em;}
.header-text {
    margin: 15px 0 10px;
    font-weight: 400;
    font-size: 32px;
}
.sub-header-text{
    display: block;
    color:#777;
    font-size: 1.3em;
}
.tag {
    display: inline-block;
    background-color: #fec846;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Sarabun';
}
q {
    font-style: italic;
    font-size: 16px;
    color: #6d6d6d;
    padding: 1em 1em;
    display: block;
    font-family: 'Sarabun';
    line-height: 1.7em;
    margin-bottom: 1em;
}
.h1 {
    font-size: 24px;
    font-family: sans-serif;
    font-weight: normal;
    color: #009688;
    margin: 10px 0;
}
h1 small{
    color:#666;
    margin: 0 10px;
    font-weight: normal
}
.rich-text {
    margin: 0.5em 2em 2em 20px;
    color:#444;
    font-size: 15px;
    font-family: Sarabun;
}
.rich-text ul, .rich-text ul {
    list-style: disc;
    margin-left: 2em;
}
.rich-text li {
     line-height: 1.5em;
     margin: 4px 0;
}
.rich-text li::marker, .title-list li::marker { color: orange;}
.course-item {
    width: 250px;
    margin:10px;
}
.section-text.teal {
    color:#019291;
}
.body-1 {
    flex-direction: column-reverse;
    margin-top:2em;
}
.icon { width: 2em;height: 2em;margin-right: 15px;}
.clip-zone {
    padding: 1em;
    text-align: center;
}
.clip-zone iframe {
    width: auto;
    box-shadow: 0 0 3px #aaa;
    border-radius: 6px;

}
.display-clip {
    width: 100%;
    height: 100%;
    max-height: 360px;
    aspect-ratio: 16 / 9;
}
.title-list {
    list-style: disc;
    margin: 1em 1em 0 3em;
}
.title-list li{
    
}
.title-list li:before{
    content: "";
}
.title-list li a {
    display: block;
    padding: 7px 5px;
    border-bottom: 1px solid #efefef;
    font-family: 'Sarabun';
    line-height: 1.5em;
}
.title-list li a:hover {
    background-color: #eee;
}
.title-list li.active{
    background-color: #bbe1ef;
    border-radius: 6px;
}
.clip-select {
    display: flex;
    flex-direction: column;
    align-items: start;
    border: 1px solid #ccc;
    border-radius: 7px;
}
.clip-select .left-side {width:100%;}
.sign-tag-box {
    display: flex;
    justify-content: center;
    margin-top: -10px;
}
.sign-tag-box img {
    width:60px;
}
.clip-list{
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;

}
.clip-list > div {
    display: inline-block;
    height: 300px;
    margin:10px;
    flex-grow: 1;
}
.group-1 {
    border: 1px solid #ccc;
    margin: 0 15px;
    padding: 15px;
    border-radius: 7px;
    position: relative;
    background-color: #2f2f2f;
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (min-width: 480px) {
    .inst-card {width: 47%;margin:10px;}
    .head-info { flex-direction: row;}
    /*.main-photo {width:170px;}
    q{font-size: 14px;padding:1em 0;}*/
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 640px) {
    /*.main-photo {width:250px;}*/
    aside {width: 35%;}
    .body-1 {flex-direction: row;}
    .clip-select {flex-direction: row;}
    .clip-select .left-side {width:40%;}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    /*.main-photo {width:300px;}*/
    aside {width: 40%;}
   /* q{font-size: 15px;padding:1em 2em;}*/
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    
    .inst-card .item-name {font-size: 18px;}
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .inst-card {width: 30%;margin:10px;}
    .inst-card .item-name {font-size: 22px;}
}