/* CSS Document */

label {
	width: 150px;
	float: left;
	line-height: 30px;
}

input[type="text"],
textarea {
	width: 240px;
}

input[type="checkbox"],
input[type="radio"] {
	padding: 0;
	vertical-align: text-bottom;
}

input[type="file"] {
	border: 1px solid #ccc;
	padding: 2px;
	cursor: pointer;
}

input[type="submit"] {
	margin-left: 150px;	
	padding: 5px 15px;
    margin-top: 10px;
}

button,
input#sortsubmit {	
	padding: 5px 15px;
	cursor: pointer;
	font-family: Georgia, "Times New Roman", Times, serif;
	display: block;
}

input#sortsubmit {
	margin-left: 0;
}

.section {
	width: 100%;
	float: left;
	margin-bottom: 25px;
	padding-bottom: 25px;
	border-bottom: 1px solid #CCC;
}

.breadcrumbs ul,
.category_list ul,
.listings ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumbs ul li {
	display: inline;
}

.breadcrumbs ul li a,
.category_list ul li a {
	text-decoration: none;
}

.breadcrumbs ul li a:hover,
.category_list ul li a:hover {
	text-decoration: underline;
}

.category_list ul li,
.listings ul li {
	float: left;
	width: 18%;
	margin-right: 1%;
	padding-right: 1%;
	margin-bottom: 15px;
	height: auto;
    min-height: 35px;
}

span.current_catimage {
	margin-left: 150px;
}

span.current_catimage span label {
	float: none;
	width: auto;
}

.listings {
	float: left;
    margin: 25px 0 0;
    width: 100%;
}

.listings ul li a {
	margin-left: 3px;
}

.edit_category .listings ul li {
    padding-left: 16px;
    width: auto;
    clear: both;
}

.photos .listings ul li {
	min-height: 250px;
}

.photos .listings ul li a {
	float: left;
}

.photos .listings li span img {
	max-width: 77%;
	float: left;
}

.photos .listings li span {
	width: 100%;
	float: left;
	margin-bottom: 10px;
}

.addphoto_single {
	margin-bottom: 25px;
	padding-bottom: 5px;
	width: 100%;
	float: left;
	border-bottom: 1px dotted #ccc;
}

.manage input {
    padding: 5px;
}

#public_photo_gallery #categories li,
#public_photo_gallery #thumbs li { list-style:none; float:left; margin-right:2%; }
#public_photo_gallery #categories li { width:31%; }

#public_photo_gallery p { margin:0; }
#public_photo_gallery #categories { width:100%; min-height:30px; }
#public_photo_gallery #thumbs { clear:both; }
#public_photo_gallery #categories ul,
#public_photo_gallery #thumbs ul { padding:0; }

#public_photo_gallery #categories img,
#public_photo_gallery #thumbs img { width:auto; max-height:200px; max-width:250px; min-height:90px; }


@media (max-width: 767px) {
    span.current_catimage span label {
        display: block;
        margin-left: 150px;
    }
}


@media (max-width: 480px) {
    .edit_category .listings ul li {
        width: 100%;
    }
    
    .listings #ul_sort li {
        width: 100%;
    }
    
    .category_list ul li {
        white-space: nowrap;
        margin-right: 15px;
        padding: 0;
        width: initial;
    }
    
    span.current_catimage span label {
        margin-left: 0;
    }
    
    span.current_catimage {
        margin-left: 0;
    }
    
    input[type="submit"] {
        margin-left: 0;
    }
    
    #public_photo_gallery #categories li {
        width: 100%;
    }
    
    #public_photo_gallery #categories li, 
    #public_photo_gallery #thumbs li {
        height: auto;
        margin-bottom: 20px;
        width: 100%;
    }
    
}


@media (min-width: 1024px) {
#public_photo_gallery #categories li,
#public_photo_gallery #thumbs li { height:230px; }

#public_photo_gallery #categories img,
#public_photo_gallery #thumbs img { height:100%; }
}