/* ACM Categories Sidebar */

.sidebar.right {
    float: right;
    width: 200px;
    padding: 10px;
    margin: 0 0 1em 1em;
    background: #ebeef4;   /* change to fit your layout */
}
/* mobile */
.ui-content .sidebar.right {
    width: 33%;
}

/*  Blog Items  */
/* theme classes: block, blog, faq, grid, grid-small, gallery, calendar, all-blog-items */

#content .blog-category-list ul li {
    list-style: none;
}

.blog-category-head {
   margin: 0;
   padding: 0;
}
#blogContent, #blogContent .blog-desc, #blogContent .blog-name, #blogContent .blog-location {
    text-align: left;
}

#blogContent .blog-title h4, #blogContent .blog-title h4 A {
    color: #333;    /* change to fit your layout */
    line-height: normal; 
    text-align: left;
    font-weight: bold; 
    text-decoration: none;
    margin-bottom: 0;
}

#blogContent .blog-title h4 A:hover {
    color: #333;    /* change to fit your layout */ 
    font-weight: bold; 
    text-decoration: underline;
}

#blogContent .blog-name {
    font-weight: bold;
    margin-top: 5px;
}

/* CLASS: FAQ */

#blogContent.faq .blog-item{
   display:block;
   margin-bottom:0;
}

#blogContent.faq .blog-title-list li {
    list-style: none;
    font-weight: bold;
    margin-bottom: 0.5em;
}
#blogContent.faq .blog-title-list li:before { 
    content: "";
    content: none;
}

#blogContent.faq .blog-img {
    float: left;
    display: block;
    vertical-align: top;
    margin: 0 1em 0.5em 0;
    padding: 5px;
    border: 1px solid #605a40;
}

#blogContent.faq .blog-img IMG {
    max-width: 100px;
    max-height: 100px;
    padding: 5px;
    display: block;
    border: none;
    background: #fff;
}

#blogContent.faq .blog-top-link {
    position: relative;
    margin-bottom: 3em;
    padding-left: 1em;
}

#blogContent.faq .blog-top-link:after {
    content: "\2191";
    position: absolute;
    top: -2px;
    left: 0;
}



/* CLASS: GALLERY */


#blogContent.gallery .blog-item {
     width: 10.75%; 
     margin: 0 2% 2em 0; 
     display: inline-block; 
     float: left;
     text-align: left; 
     vertical-align: top;
}

#blogContent.gallery .blog-item * {
    width: 100%;
    text-align: center;
}

#blogContent.gallery .blog-item:nth-of-type(8n+3) {
    clear: left;
}

#blogContent.gallery .blog-item:nth-of-type(8n+10) {
    margin-right: 0;
}


@media screen and (max-width: 840px) {
    
    #blogContent.gallery .blog-item, 
    #blogContent.gallery .blog-item:nth-of-type(even), 
    #blogContent.gallery .blog-item:nth-of-type(odd) {
        width: 23.5%;
        margin-right: 2%;
        clear: none;
    }
    #blogContent.gallery .blog-item:nth-child(4n+4) {
        clear: left;
    }
    #blogContent.gallery .blog-item:nth-child(4n+7) {
        margin-right: 0;
        clear: none;
    }
    
}

#blogContent.gallery .blog-item .blog-img {
    display: block;
    margin-bottom: 10px;
    padding: 1em;
    border: 1px solid #ccc;
    width: 100%;
    height: auto;
    text-align: center;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#blogContent.gallery .blog-item .blog-img:after {
    content: "";
    height: 100%;
    width: 0;
    display: inline-block;
    vertical-align: middle;
}
#blogContent.gallery .blog-item .blog-img IMG {
    display: inline-block;
    vertical-align: middle;
}
    
/* mobile styling - gallery - .ui-page is the mobile class */

.ui-page #blogContent.gallery .blog-item:nth-of-type(4n+6) {
    margin-right: 2%;
}
.ui-page #blogContent.gallery .blog-item:nth-of-type(4n+3) {
    clear: none;
}
.ui-page #blogContent.gallery .blog-item:nth-of-type(4n+0) {
    margin-right: 0;
}
.ui-page #blogContent.gallery .blog-item:nth-of-type(4n+1) {
    clear: left;
}

@media screen and (max-width: 600px) {
    
    #blogContent.gallery .blog-item, 
    #blogContent.gallery .blog-item:nth-of-type(even), 
    #blogContent.gallery .blog-item:nth-of-type(odd) {
        width: 49%;
        margin-right: 2%;
        clear: none;
    }
    #blogContent.gallery .blog-item:nth-of-type(2n+0) {
        margin-right: 0;
    }
    #blogContent.gallery .blog-item:nth-of-type(2n+1) {
        clear: left;
    }
    
}


/* CLASS: GRID */

#blogContent.grid .blog-item {
     width: 23.5%; 
     margin: 0 2% 2em 0; 
     display: inline-block; 
     float: left;
     text-align: left; 
     vertical-align: top;
}

#blogContent.grid .blog-item:nth-of-type(4n+0) {
    margin-right: 0;
}

#blogContent.grid .blog-item:nth-of-type(4n+1) {
    clear: left;
}

#blogContent.grid .blog-item .blog-img {
    display: block;
    margin-bottom: 10px;
    padding: 1em;
    border: 1px solid #ccc;
    width: 100%;
    height: auto;
    text-align: center;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#blogContent.grid .blog-item .blog-img IMG {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}
#blogContent.grid .blog-item .blog-img:after {
    content: "";
    height: 100%;
    width: 0;
    display: inline-block;
    vertical-align: middle;
}

/* mobile styling - grid - .ui-page is the mobile class */

@media screen and (max-width: 600px) {
    
    #blogContent.grid .blog-item, 
    #blogContent.grid .blog-item:nth-of-type(even), 
    #blogContent.grid .blog-item:nth-of-type(odd) {
        width: 49%; 
        margin: 0 2% 2em 0; 
        clear: none;
    }
    #blogContent.grid .blog-item:nth-of-type(2n+0) {
        margin-right: 0;
    }
    #blogContent.grid .blog-item:nth-of-type(2n+1) {
        clear: left;
    }
}


/* CLASS: GRID SMALL */

#blogContent.grid-small .blog-item {
     width: 15%;
     margin: 0 2% 2em 0; 
     display: inline-block; 
     float: left;
     text-align: left; 
     vertical-align: top;
}

#blogContent.grid-small .blog-item:nth-of-type(6n+0) {
    margin-right: 0;
}

#blogContent.grid-small .blog-item:nth-of-type(6n+1) {
    clear: left;
}

#blogContent.grid-small .blog-item .blog-img {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    width: 100%;
    height: 150px;  /* change as needed to fit your layout */
    background: #fff;
    text-align: center;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
#blogContent.grid-small .blog-item .blog-img:after {
    content: "";
    height: 100%;
    width: 0;
    display: inline-block;
    vertical-align: middle;
}
#blogContent.grid-small .blog-item .blog-img IMG {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

/* mobile styling - grid-small */
.ui-page #blogContent.grid-small .blog-item {
    width: 23.5%; 
    margin: 0 2% 2em 0; 
}
.ui-page #blogContent.grid-small .blog-item .blog-img {
    height: 130px;  /* change as necessary to fit your layout */
}
.ui-page #blogContent.grid-small .blog-item:nth-of-type(6n+0) {
    margin-right: 2%;
}
.ui-page #blogContent.grid-small .blog-item:nth-of-type(6n+1) {
    clear: none;
}
.ui-page #blogContent.grid-small .blog-item:nth-of-type(4n+0) {
    margin-right: 0;
}
.ui-page #blogContent.grid-small .blog-item:nth-of-type(4n+1) {
    clear: left;
}

@media screen and (max-width: 600px) {
    #blogContent.grid-small .blog-item, 
    #blogContent.grid-small .blog-item:nth-of-type(even), 
    #blogContent.grid-small .blog-item:nth-of-type(odd) {
        width: 49%;
        margin: 0 2% 2em 0; 
        clear: none;
    }
    #blogContent.grid-small .blog-item .blog-img {
        height: 140px;  /* change as necessary to fit your layout */
    }
    #blogContent.grid-small .blog-item:nth-of-type(2n+0) {
        margin-right: 0;
    }
    #blogContent.grid-small .blog-item:nth-of-type(2n+1) {
        clear: left;
    }
}


/* CLASS: BLOCK */
#content #blogContent.block
{
   width: 100%;
}

#blogContent.block .blog-item {
    clear: both;
    width: inherit;
    margin: 0 0 5px 0;
    padding: 15px;
    display: block;
    text-align: left;  
}

#blogContent.block .blog-item:nth-of-type(even) {
    background: #f4f2eb;  /* change to fit your layout */
}

#blogContent.block .blog-img {
    float: left;
    display: block;
    vertical-align: top;
    margin: 0 15px 15px 0;
    padding: 0;
    background: #fff;
    border: 1px solid #605a40;
}

#blogContent.block .blog-img IMG {
    border: none;
    padding: 5px;
    background: #fff;
    
}

#blogContent.block .blog-date {
    margin-bottom: 8px;
}

/* CLASS: BLOG */

#blogContent.blog .blog-title h4 {
    margin-top: 0.5em;
}
#blogContent.blog .blog-img {
    float: left;
    max-width: 200px;
    max-height: 200px;
    margin: 0 1em 0.5em 0;
    border: 1px solid #ccc;
}

#blogContent.blog .blog-img IMG {
    max-width: 175px;
    max-height: 175px;
    padding: 5px;
    display: block;
}


/* CLASS: CALENDAR - see fullcalendar/fullcalendar.css */
