/* 
=====================================================================

GENERAL PAGE LAYOUT ELEMENTS

=====================================================================
*/

#pageContainer {
	width: 100%;
	position: absolute;
	height: 100%;	
	margin: auto;
	left: 0;
	right: 0;
	-webkit-user-select: text;
	-khtml-user-select: text;
	-moz-user-select: text;
	-o-user-select: text;
	user-select: text;
}

#contentContainer {
	padding: 0 0 20px 0;
	position: absolute;
	height: auto;
	width: 100%;
    top: 0;
	margin: auto;
}

.textBox, .imageBox, .imageBoxAndText,.imageBoxWide, .imageBox25,  .imageBox50 {	
	position: relative;
	background: #fff;
    width: auto;
	max-width: 1280px;
	margin: auto;
	min-height: 75px;	
	margin-bottom: 15px;
	/*box-shadow: #999 3px 3px 14px;*/	
}

.content a, .content a :link, .content a:visited{
	color: #00AE9B;	
	text-decoration: none;
}

.content a:hover {
	color: #D61E37;	
}




/* 
=====================================================================

BOX: COVER

=====================================================================
*/

.cover {
    position: relative;    
    top: 0;
    height: 20em;
    width: 100%;
    margin-bottom: 1em;     
    overflow: hidden;
    border: none;
    outline: none;
    
}


.cover img {
    position: absolute;
    max-width: 100%;
    height: auto;
}

/* 
=====================================================================

BOX: TITLE

=====================================================================
*/ 

#titleBox {
    position: absolute;
    top: 18.25em;
    left: 5%;
    display: inline-block;
    z-index: 999;
}

#pageTitle {
    background: red;
    padding: .2em .5em .2em .5em;
    font-weight: 100;
    color: #f4f5f6; 
    font-size: 1.7em;
}

#pageCategory  {
    position: relative;
    margin-top: .2em;
    list-style-type: none;
}

#pageTags {
    font-size: .8em;
    width: auto;
    list-style-type: none;    
}

#pageTags:before {
    content: 'TAGS:';    
}

#pageTags li {
    text-indent: 1em;
    margin: .6em 0 .2em 0;
    display: inline-block;
} 

/* 
=====================================================================

BOX: BLURB

=====================================================================
*/

.blurb {
    position: relative;
	background: white;
	width: 90%;
	margin: auto;
	margin-top: 5em;
    margin-bottom: 2em;
}

.blurb > div:not(.adminBox) {    
    display: inline-block;
    padding: 1em;  
    vertical-align: top;
    min-width: 10em;
    max-width: 50%;
    width: auto;
    font-size: .8em;
} 

@media screen and (max-width: 750px) {
	.blurb > div { max-width: 100%; }
}

.blurb > span {
    line-height: 2em;
} 

/* 
=====================================================================

BOX: HEADER

=====================================================================
*/

.header {
	width: 95%;
	margin: 2em auto;
	position: relative;	
	text-align: center;
    border-bottom: 1px solid white;
}

.header h1 {
	margin-bottom: .5em;
	font-size: 2em;
	color: red;
	
}

/* 
=====================================================================

BOX: SPACER

=====================================================================
*/

.spacer {
	position: relative;
	margin: 1em auto;
	height: 2em;
	width: 95%;
	max-width: 900px;	
}

/* 
=====================================================================

BOX: IMAGE

=====================================================================
*/

.imageBox {
	width: 95%;
	max-width: 900px;
	padding: 10px;
}

.imageBox img {
	max-width: 100%;
	max-height: 100%;	
}

.imageBox25:hover, .imageBox50:hover {
	cursor: zoom-in;
}

/* 
=====================================================================

BOX: IMAGE 25

=====================================================================
*/

.imageBox25,
.imageBox25 img{
	vertical-align:top;
	width: 125%; /* gotta be responsive these days */
}
.imageBox25{
	width: 22.1%;
	left: 5%;
	margin-right: .5%;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	border: .5em solid white;
	display: inline-block;
	background-color: grey;
	overflow: hidden;
}

.imageBox25:before,
.imageBox25 img{
	display: inline-block;
	vertical-align: middle;
}
.imageBox25:before{
	content: "";
	padding-top: 70%; /* % of original image width */ 
}
.imageBox25 img{
	padding-left: 100%;
	margin: -999em -115%;
}

@media screen and (max-width: 750px) {
	.imageBox25,
	.imageBox25 img{
		width: 100% !important; /* gotta be responsive these days */
	}
	
	.imageBox25{
		width: 44.7% !important;
	}
	.imageBox25:before{
		padding-top: 60% !important;
	}
    
    .imageBox25 img{
        margin: -999em -100% !important;
    }
}


/* 
=====================================================================

BOX: IMAGE 50

=====================================================================
*/

@media screen and (min-width: 751px) {
        
    .imageBox50,
    .imageBox50 img{
        vertical-align:top;
        width: 100%; /* gotta be responsive these days */
    }
    .imageBox50{
        width: 44.7%;
        left: 5%;
        margin-right: .5%;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        border: .5em solid white;
        display: inline-block;
        background-color: white;
        overflow: hidden;
    }
    .imageBox50:before,
    .imageBox50 img{
        display: inline-block;
        vertical-align: middle;
    }
    .imageBox50:before{
        content: "";
        padding-top: 60%; /* % of original image width */ 
    }
    .imageBox50 img{
        padding-left: 100%;
        margin: -999em -100%;
    }
}


@media screen and (max-width: 750px) {
    .imageBox50 {
        width: 90%;
        display: block;
        margin: 1em auto;
		border: .5em solid white;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
        height: auto;
    }
    
    .imageBox50 img{
        display: block;
        width: 100%;        
        height: auto;
    }
    
}


/* 
=====================================================================

BOX: IMAGE WIDE

=====================================================================
*/

.imageBoxWide {
	width: auto;
	outline: none;
	border: none;
	position: relative;	
	overflow: hidden;	
}

.imageBoxWide img {
	position: absolute;
	max-width: 100%;
	height: auto;
}


@media screen and (max-width: 1280px) {
	.imageBoxWide { width: 100% !important; height: auto !important; }
    .imageBoxWide img {
	        position: relative;
            left: 0 !important;
        top: 0 !important;
	        width: 100% !important;
        height: auto !important;
        display: block !important;
}
}

/* 
=====================================================================

BOX: TEXT

=====================================================================
*/

.textBox {
	width: 95%;
	max-width: 900px;
	padding: 1em;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	height: auto;
	min-height: 5em;
}

.textBox p {
	display: block;
    user-select: true;
    -moz-user-select: true;
}

/* 
=====================================================================

BOX: Video 

=====================================================================
*/

.videoBox iframe{
	width: 100%; /* gotta be responsive these days */
}
.videoBox{
	width: 95%;
	max-width: 900px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	border: .5em solid white;
	margin: 1em auto;
	background: white;
	position: relative;
}

.videoBox:before
{
	display: inline-block; 
	vertical-align: middle;
	content: "";
	padding-top: 56.5%; /* % of original image width */ 
}
.videoBox iframe{
	
	position: absolute;
	height: 100%;


}




/* 
=====================================================================

BOX: IMAGE & TEXT

=====================================================================
*/

.imageBoxAndText {
	width: 95%;
	outline: none;
	border: none;
	position: relative;	
	overflow: hidden;	
}

.imageBoxAndText img {
	position: absolute;
	max-width: 100%;
	height: auto;
}

.imageHolder {
	width: 30%;
	height: auto;	
	position: relative;
	left: 0;
	top: 0;
}

.imageText {
	background: white;	
	width: 70%;
	height: 100%;
	position: absolute;
	right: 0;
	top: 0;	

}

.imageText > div{
	margin: 10px 20px 10px 20px;
}

@media screen and (max-width: 1336px) {
    .imageBoxAndText {
        width: 90% !important;
        height: auto !important;
    }
    .imageText {
        width: 100% !important;
        position: relative !important;
        height: auto !important;
        display: block !important;
		left: 0 !important;
    }
    
    .imageHolder {
        width: 100% !important;
		height: auto !important;
        display: block !important;
    }
    
    .imageHolder img {
        max-width: 100% !important;
		height: auto !important;
        left: 0 !important;
        top: 0 !important;
        position: relative;
    }

}


/* 
=====================================================================

BOX: MOSAIC

=====================================================================
*/
.mosaicContainer {
	position: relative;
	margin: 1em auto;
	min-height: 10em;
	height: auto;
	width: 95%;
	
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	max-width: 900px;
	
	
}




@media screen and (max-width: 480px){
	.mosaicContainer[data-columns]::before {
		content: '2 .column.size-1of2';
	}
}

@media screen and (min-width: 481px) and (max-width: 768px) {
	.mosaicContainer[data-columns]::before {
		content: '3 .column.size-1of3';
	}
}
@media screen and (min-width: 769px) {
	.mosaicContainer[data-columns]::before {
		content: '3 .column.size-1of3';
	}
}
/* These are the classes that are going to be applied: */
.mosaicContainer .column { display: inline-block; vertical-align: top; }
.mosaicContainer .size-1of1 { width: 100%; }
.mosaicContainer .size-1of2 { width: 50%; }
.mosaicContainer .size-1of3 { width: 33.333%; }

.mosaicBox {
    position: relative;
    margin: .25em;
	min-height: 4em;
	background: grey;
    
}

.mosaicBox img {
	outline:none;
	border: none;
	width: 100%;
	display:block;
}

/* 
=====================================================================

BOX: ZOOMIFY

=====================================================================
*/
.zoomify {
	content: '';
	margin: 0 auto;
	position: fixed;
	z-index: 1500;
	background: rgba(0,0,0,0.50);
	top: 0%; left: 0%; right: 0%; bottom: 0%;
	padding: 2.5%;
	
}

.zoomify:hover {
	cursor: zoom-out;
}

.zoomify img {
	display: block;
	max-height: 95%;
	max-width: 95%;
	position: absolute;
	top: 50%;
	left: 50%;
}


/* 
=====================================================================

ADMIN: TOOLS
=====================================================================
*/

#adminTools {
	position: fixed; 
	bottom: 0;
	right: -9em;
    background: #343434;
	width: 10em;
	height: 100%;
    overflow: hidden;
    z-index: 9999;
	transition: right .5s;
}

#adminTools:hover {
    right: 0;
}

#adminTools div {
    margin: 1em;   
    display: block;
    padding: .3em;
    color: white;
    cursor: pointer;    
}

#adminTools div:hover {
    
    margin-left: .5em;
    margin-right: .5em;
}

#addText {	background: red;}
#addImage {	background: teal; }
#addImageWide {background: blue; }
#addImageAndText {background: purple;}
#addCover { background: orange; }
#newpage { background: black; }


/* 
=====================================================================

ADMIN: RESIZABLE

=====================================================================
*/

 .ui-resizable-w {
	z-index:999;
	cursor: col-resize;
	left: -10px;
	top: 0px;
	height: 100%;
	width: 1px;
	border: 1px dotted black;
	position: absolute;	
}

.ui-resizable-s {	
	width: 10px;
	height: 10px;
	background: black;
	position: absolute;
	bottom: 10px;
	right: 50%;
	border: 1px solid white;
	cursor: ns-resize;	
}

/* 
=====================================================================

ADMIN: BOX

=====================================================================
*/

.adminBox {
	background: white;
	color: grey;
	width: auto;
	height: 30px;
	position: absolute;
    right: .5em;
    top: .5em;    
	line-height: 30px;
	padding-right: 30px;	
	z-index: 999;
    opacity: .3;
    transition: opacity .5s;
}

#contentContainer div:hover > .adminBox {
    opacity: 1;
}

.mosaicBox .adminBox {
	top: auto;
	bottom: 1em;	
	
}

.adminBox span {
	color: grey !important;
	float: left;
	margin-right: 20px;
}

.adminBox span:hover {
	color: red !important;
}

.adminBox .delete {
	cursor: pointer;	
}

.adminBox .addMosaicBox {
	cursor: pointer;
}

.sortable-dragging {
	border: 1px solid red;
	height: 100%;
}

.sortable-placeholder {
	background: #FC6;
	height: 25px;
}

.adminBox .handle:hover {
	color: red;
}

.adminBox .feature {
    cursor: pointer; 
}

.adminBox .delete:hover {
	color: red; 
}

.adminBox .handle {
	margin-left: 20px;
	cursor: move;	
}

/* 
=====================================================================

ADMIN: TAG STYLING

=====================================================================
*/

ul.tagit {
    background: none;    
    width: 30em !important;   
}

ul.tagit li {
    display: inline-block;    
    margin: 0em;    
    color: #414141;
}

ul.tagit li.tagit-choice {    
    position: relative;
    line-height: inherit;    
}

input.tagit-hidden-field {
    display: none;    
}

ul.tagit li.tagit-choice-read-only { 
    padding: .2em .5em .2em .5em; 
} 

ul.tagit li.tagit-choice-editable { 
    padding: .2em 1.2em .2em .5em;  
} 

ul.tagit li.tagit-new {
    background: white;
    max-width: 8em;
    padding: .2em .5em .2em .5em;
}

li.ui-menu-item {
    margin: .2em .5em .2em .5em;
    display: block; 
}

ul.tagit li.tagit-choice a.tagit-label {
    cursor: pointer;
    text-decoration: none;
}

ul.tagit li.tagit-choice .tagit-close {
    cursor: pointer;
    position: absolute;
    right: .4em;
    top: 50%;
    margin-top: -8px;
}

.tagit-close:hover {
    color: red;
}

.tagit-autocomplete.ui-menu {
    list-style-type:none;
    background: grey;
    z-index: 9999;
    width: 10em;
    margin-top: 1em;    
}

/* used for some custom themes that don't need image icons */
ul.tagit li.tagit-choice .tagit-close .text-icon {
    
}

.ui-helper-hidden-accessible { display: none; }

.tagit-close:hover {    
}

ul.tagit li.tagit-choice input {
    display: inline-block;    
}

ul.tagit input[type="text"] {
    background: none;
    border: none;
    margin: 0;    
    width: auto;    
    outline: none;
}

.tagit-autocomplete .ui-state-hover, .tagit-autocomplete .ui-state-focus { color: #f4f5f6; display: block; cursor: pointer; }






#contentContainer img { opacity: 0; }