@media (max-height: 700px) {
	#lightbox #controls-wrapper{
		background: linear-gradient( rgba(0,0,0,0),rgba(0,0,0,0.8));
	}	
}

@media (max-width: 640px) {
    
	*, body, td, div, span, p, tr, input, button, select, textarea{
		font-weight: normal;
		/* font-size: 12px; */
	}
	.navBar .fa{
		font-weight: bold;
	}

	#unameTxt, #accInfo span, #navPath  {
        display:none !important;
    }

	#ttLogo
	{
		/* height: 16px; */
		top: 8px;
	}
	
	#accInfo{
		top: -30px;
	}
	.mApp-MenuItem {
		height:40px;
		padding: 0 7px;
	}
	#userProfileDiv{
		height: 40px;
	}
    #accInfo .ai_item {
		/*margin-left: 10px;*/
		/*padding: 13px 5px 10px 5px;*/
		line-height: 40px;
		padding: 0 7px;
    }
	#accInfo .ai_item.rmost {
		padding: 0px 2px 0 2px;
		margin-right: 5px;
		line-height: 40px;
	}
	#accInfo #ttAdvancedMenu
	{
		padding: 0 10px;
		/*padding-top:15px;
		padding-bottom: 8px;*/
		top: 0;
	}
	#infoBar{
		padding-right: 0px;
		height: 40px;
		background-color: #000;
	}
	.desktop .tt_pages{
		top: 40px;
	}
	.userProfilePic{
		width: 24px;
		height: 24px;
		/*top: 5px;*/
	}
	#accInfo .userProfilePic img {
		position: relative;
		top: -5px;
		}
	#accInfo #userProfileIco{
		/* top: -1px; */
		position: relative;
		font-size: 30px;
		top: -4px;
	}
	#accordian{
		top: 40px;
		z-index:99999;
	}
	.ai_item{
		/*margin-top: 40px;*/
	}

	.PhotoStream {
		padding: 0 9px;
	}
	#tt_page_PhotoStream .pageHead{
		width:auto;
	}
	.tc{
		box-shadow: none;
		border: 1px solid rgb(224, 227, 233);
		border-radius: 4px;
	}
	#tt_page_PhotoStream .tc
	{
		border: 1px solid  #c5c9ce;
		margin-left: 0;
		margin-right: 0;
	}
	.tc a.tc_albumLink
	{
		font-weight: 600;
	}
	.ttMenu{
		top: 40px;
		border-radius: 0;
	}
	.ttMenu > .notch {
		right: 15px;
	}
	#profileSlider,#toolSlider
	{
		right: 0;
	}
	#AlbumImgs {
        margin-top: 0;
    }

	.albumBar .navBar {
		/* top: 40px; */
		padding-left:  10px;
		padding-right: 10px;
	}

	div#AlbumArea
	{
		/*top: 40px;*/
	}
	#mAlbumTitle{
		position:absolute;
		width: 100%;
		left:0;
		right:0;
		text-align: center;
		padding-left: 30px;
		padding-right: 30px;
		color:#000;
		line-height: 30px;
	}
	.albumBar .navBar .bf
	{
        font-size: 2em;
		padding: 0 10px;
	}
	.albumBar .navBar {
		padding:0;
	}
		.albumBar .navBar > *
		{
			/* position: relative; */
			/* top:0; */
			/* bottom:0; */
		}
	#navTools{
		padding-right: 5px;
	}
	#navTools * {
		/* margin-right: 0; */
		/* font-size: 1.4em; */
		/* line-height: 30px; */
	}
	#navTools .ico-title {
		display: none !important;
	}
	.tools.r{
		padding-right: 0px;
	}
	.tools .ico
	{
		padding: 0 10px;
	}
		#loading, #bootstrapAlertDiv, #BSDiv
	{
		top:40px;
		width: 60%;
	}
    #titleBar {
        height: 40px;
		padding-top:22px;
    }
	#desc{
		font-size:  0.85em;
		height: auto;
	}
    #titleSpace {
        width: auto;
    }

    #details {
        width: auto;
        padding-right: 5px;
		float: right;
		text-align: right;
		color: #666;
	}

    #TagSpace {
        display:none;
    }

    #titleSpace img {
        height: 45px;
        margin: 5px;
        margin-right: 10px;
        padding: 2px;
        border: none;
    }
    #title {
        font-size: 1em;
        font-weight: 300;
     }
    #date span {
        font-size: 1em;
    }
    #details .num {
        font-size: 1em;
        margin-right: 5px;
    }

	.showMobile{
		display: inline-block !important;
	}

	.scrollToTop{
		bottom: 30px;
	}

	.tt_pages{
		margin-top: 40px;
	}

	.tc_titleBar_userProfilePicture .profileImg, .tc_titleBar_userProfilePicture .profileLabel {
		height: 30px;
		width: 30px;
		line-height: 30px;
	}
	.settingDivs{
		width: auto;
	}
	.settings
	{
		width:100%;
		min-width: 500px;
		border-radius: 0;
		/*box-shadow: rgba(0,0,0,.4) 0px 0px 8px 0px;*/
	}

	#settingsMenu
	{
		width: 150px;
	}
}

@media (max-width: 800px)
{
	.mApp-MenuItem-Label{
		display: none;
	}
	.mApp-MenuItem-icon{
		line-height:50px;
	}
	.mobileHide, .mobileRemove
	{
		/* display: none !important; */
	}

	#lightbox .slitebox img
	{
		bottom: 0;
	}

	.mobileShow
	{
		display: inline-block;
	}

	#tt_page_PhotoStream .PhotoStream
	{
		width: 100%;
	}

	#tt_page_PhotoStream .tc{
		/*text-align:left;*/
	}
	#tt_page_PhotoStream .pageHead
	{
		width: 100%;
	}
	.settings
	{
		width: 100%;
	}
	.settingDivs{
		width: auto;
	}
}

@media (min-width: 1900px)
{
	.tc {
		width:32%;
		margin:0.6%;
	}
}