/* Frontend CSS for Post Type Builder plugin

----*/

/************************************************************************************
RESET
*************************************************************************************/
img, fieldset {
	border: 0;
}

/* set img max-width */
img {
	max-width: 100%;
	height: auto;
}

/* set html5 elements to block */
article, figure { 
    display: block;
}

/* audio */
audio {
	max-width: 100%;
}

/* iframes and objects max-width (for embed media) */
iframe, object, embed {
	max-width: 100%;
}

/* set general layout elements box-sizing */
img, .ptb_post, .ptb_post_nav, .ptb_pagenav, .ptb_col {
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}


/************************************************************************************
GRID & COLUMNS
*************************************************************************************/
.ptb_col {
    float: left;
}

.ptb_col.ptb_col1-1 {
    width: 100%;
}

.ptb_col.ptb_col6-1,
.ptb_col.ptb_col5-1,
.ptb_col.ptb_col4-1,
.ptb_col.ptb_col4-2,
.ptb_col.ptb_col4-3,
.ptb_col.ptb_col3-1,
.ptb_col.ptb_col3-2,
.ptb_col.ptb_col2-1,
.ptb_grid.ptb_grid3,
.ptb_grid.ptb_grid2,
.ptb_grid.ptb_grid4 {
    margin-left: 3.2%;
    margin-right: 0;
}

.ptb_col.ptb_col6-1 {
    width: 14%;
}
.ptb_col.ptb_col5-1 {
    width: 17.44%;
}
.ptb_col.ptb_col4-1,
.ptb_grid.ptb_grid4 {
    width: 22.6%;
}
.ptb_col.ptb_col4-2,
.ptb_col.ptb_col2-1,
.ptb_grid.ptb_grid2 {
    width: 48.4%;
}
.ptb_col.ptb_col4-3 {
    width: 74.2%;
}
.ptb_col.ptb_col3-1,
.ptb_grid.ptb_grid3 {
    width: 31.2%;
}
.ptb_col.ptb_col3-2 {
    width: 65.6%;
}
.ptb_col_first,
.ptb_grid_first {
    margin-left: 0 !important;
    clear: left !important;
}
.ptb_grid_clear {
    margin-left: 0 !important;
    clear: both !important;
}

.ptb_grid.ptb_block {
    float: none;
}
.ptb_col_first.ptb_grid_clear {
    clear: none;
}

/************************************************************************************
TEMPLATE RENDERING
*************************************************************************************/
/* module wrapper */
.ptb_module {
    margin: 0 0 .3em;	
}

/* static text module */
.ptb_module.ptb_custom_text {
    margin: 0;	
}

/* inline module */
.ptb_module_inline {
	display: inline-block;
}
.ptb_module_inline > div,
.ptb_module_inline h1,
.ptb_module_inline h2,
.ptb_module_inline h3,
.ptb_module_inline h4,
.ptb_module_inline h5,
.ptb_module_inline h6 {
	display: inline-block;
}

/* text before */
.ptb_text_before {
    font-weight: bold;
    margin-right: 5px;
}

/************************************************************************************
POST STYLING
*************************************************************************************/
/*
GENERIC POST
================================================ */
.ptb_post {
    margin-bottom: 3em;
}

/* post content */
.ptb_post_content {
    min-width: 120px;
}

/* post title */
.ptb_post_title {
    line-height: 1.4em;
    margin: 0 0 .6em;
    padding: 0;
}
.ptb_post_title a {
    text-decoration: none;
}

/* post image */
.ptb_post_image {
    margin: 0 0 1em;
}

/* post date */
.ptb_post_date {
    margin: 0 0 .8em;
}

/*
GRID4 POST
================================================ */
.ptb_loops_wrapper.ptb_grid4 .ptb_post {
    width: 22.6%;
    margin-left: 3.2%;
    float: left;
    margin-bottom: 2.5em;
}

/*
GRID3 POST
================================================ */
.ptb_loops_wrapper.ptb_grid3 .ptb_post {
    width: 31.2%;
    margin-left: 3.2%;
    float: left;
    margin-bottom: 3.1em;
}

/*
GRID2 POST
================================================ */
.ptb_loops_wrapper.ptb_grid2 .ptb_post {
    width: 48.4%;
    margin-left: 3.2%;
    float: left;
}

/*
CLEAR GRID FLOAT
================================================ */
.ptb_loops_wrapper.ptb_grid4 .ptb_post:nth-of-type(4n+1),
.ptb_loops_wrapper.ptb_grid3 .ptb_post:nth-of-type(3n+1),
.ptb_loops_wrapper.ptb_grid2 .ptb_post:nth-of-type(2n+1) {
    margin-left: 0;
    clear: left;
}


/************************************************************************************
COMMENTS
*************************************************************************************/
.commentwrap {
    margin: .625em 0 1.25em;
    position: relative;
    clear: both;
}

/* comment title */
.comment-title, .comment-reply-title {
    font-size: 140%;
    margin: 0 0 0.625em;
    padding: 0;
}

/* comment pagenav */
.commentwrap .pagenav {
    margin: 10px 0;
    border: none;
    box-shadow: none;
}
.commentwrap .pagenav.top {
    margin: 0;
    position: absolute;
    top: 0;
    right: 0;
}

/* commentlist */
.commentlist {
    margin: 0 0 30px;
    padding: 5px 0 0;
    border-top: solid 1px rgba(0,0,0,.1);
}
.commentlist li {
    margin: 0;
    padding: 15px 0 0;
    list-style: none;
    position: relative;
}
.commentlist .comment-author {
    margin: .2em 0 1em;
    padding: 0;
}
.commentlist .avatar {
    float: left;
    margin: 0 15px 0 0;
}
.commentlist cite {
    font-style: italic;
    font-size: 130%;
}
.commentlist cite a {
    text-decoration: none;
}
.commentlist .comment-time {
    font-size: .85em;
    text-transform: uppercase;
}
.commentlist .commententry {
    border-bottom: solid 1px rgba(0,0,0,.1);
    position: relative;
    min-height: 40px;
    overflow: hidden;
    padding-bottom: 5px;
    word-wrap: break-word;
}
.commentlist ul, .commentlist ol {
    margin: 0 0 0 7%;
    padding: 0;
}

/* reply link */
.commentlist .reply {
	position: absolute;
	right: 0;
	top: 1em;
}
.commentlist .comment-reply-link {
	text-transform: uppercase;
	text-decoration: none;
}
.commentlist .comment-reply-link:hover {
	text-decoration: none;
}

/* 
COMMENT FORM
================================================ */
#respond {
	margin: 0;
	padding: 10px 0 0;
	position: relative;
	clear: both;
}
#respond #cancel-comment-reply-link {
	position: absolute;
	top: 20px;
	right: 0;
	font-size: .85em;
	line-height: 100%;
	text-decoration: none;
	padding: .5em .8em;
	display: block;
	color: #fff;
	background-color: #e41d24;
	border-radius: 5px;
}
#respond #cancel-comment-reply-link:hover {
	background: #fb4e55;
}
#commentform {
	margin: 15px 0 0;
}
#commentform input[type=text] {
	width: 206px;
	margin-right: 5px;
}
#commentform label {
	font-weight: bold;
}
#commentform label small {
	font-weight: normal;
}
#commentform textarea {
	height: 140px;
}
#commentform input#submit {
	padding: 7px 20px;
}

/************************************************************************************
CLEAR & ALIGNMENT
*************************************************************************************/
.clear {
	clear: both;
}
.left {
	float: left;
}
.right {
	float: right;
}
.textleft {
	text-align: left;
}
.textright {
	text-align: right;
}
.textcenter {
	text-align: center;
}

/* clearfix */
.clearfix:after,
.ptb_post:after, 
.ptb_post_nav:after, 
.ptb_pagenav:after, 
.ptb_col:after {
	content: "";
	display: table;
	clear: both;
}
.ptb_post img:not(.ptb_image){
	display:none;
}


/************************************************************************************
RESPONSIVE
*************************************************************************************/
@media screen and (max-width: 600px) {

	/* commentlist responsive */
	.commentlist {
		padding-left: 0;
	}
	.commentlist .commententry {
		clear: left;
	}
	.commentlist .avatar {
		float: left;
		width: 40px;
		height: 40px;
		margin: 0 1em 1em 0;
	}

	/* grid & columns */
	.ptb_col.ptb_col6-1,
	.ptb_col.ptb_col5-1,
	.ptb_col.ptb_col4-1,
	.ptb_col.ptb_col4-2,
	.ptb_col.ptb_col4-3,
	.ptb_col.ptb_col3-1,
	.ptb_col.ptb_col3-2,
	.ptb_col.ptb_col2-1,
	.ptb_loops_wrapper.ptb_grid4 .ptb_post,
	.ptb_loops_wrapper.ptb_grid3 .ptb_post,
	.ptb_loops_wrapper.ptb_grid2 .ptb_post {
		width: 100%;
		margin-left: 0;
		float: none;
	}

}
.ptb_single_lightbox{
    background: #fff;
    color: #444;
    border: none;
    width: 100%;
    padding: 25px;
    text-align: left;
    margin: 0 auto;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}
.ptb_is_single_lightbox .lightcase-contentInner{
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
}
#lightcase-case.ptb_is_single_lightbox{
    position: absolute;
}
@media screen and (min-width: 641px) {
    #lightcase-case.ptb_is_single_lightbox:not([data-type=error]) .lightcase-inlineWrap{
        max-width: 100% !important;
        max-height: 100% !important;
        height: 100% !important;
        width: 100% !important;
    }
    #lightcase-case.ptb_is_single_lightbox{
        width: 80% !important;
    }
}
.ptb-post-filter {
    text-align: center;
    margin-bottom: 2em;
}
.ptb-post-filter li {
    display: inline-block;
    margin: 0 10px;
    padding: .5em 0;

}
.ptb-post-filter li a {
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.6;
    position: relative;
    border: none;
}
.ptb-post-filter li.active a {
    position: relative;
    opacity: 1;
}
.ptb-post-filter li a:after {
    content: "X";
    font-weight: bold;
    left: 50%;
    position: absolute;
    top: 30px;
    font-size: .6625em;
    margin-left: -.5em;
    opacity: 0;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}
.ptb-post-filter li.active a:after {
    opacity: 1;
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    transform: rotate(360deg);
}
.ptb-isotop-filter.ptb_loops_wrapper .ptb_post{
    margin-left: 0;
}
