/*
 * Photos app CSS
 * (requires linking base core.css file from the Site app)
 *
 */

#gallery-nav { text-align: center; margin-top: -20px;  margin-bottom: 30px; }
#gallery-nav ul.menu-h li { float: none; display: inline-block; /* IE8- hack */ display: block\9; float: left\9; }
#gallery-nav .popup { max-width: 400px; max-height: 70%; overflow-y: scroll; }
#gallery-nav .popup ul.menu-v { padding-left: 6px; }
#gallery-nav .popup ul.menu-v li { display: block; float: none; list-style: none; line-height: 1.3em; text-align: left;  }
#gallery-nav .popup ul.menu-v li a { color: #03c; }
#gallery-nav .popup ul.menu-v li a:hover { color: red; }
#gallery-nav .popup ul.menu-v li ul { padding-left: 15px; padding-top: 2px; font-size: 0.9em; margin-bottom: 10px; }
#gallery-nav .popup ul.menu-v li ul li { float: none; }
#gallery-nav .popup ul.menu-v li ul li a { font-weight: normal; }

h1.search-criteria { margin-bottom: 1em; }
.album-note { display: block; margin-top: -10px; color: #aaa; font-style: italic; }
.album-description { margin-top: 15px; }
.sub-albums { margin-bottom: 25px; margin-top: 10px; line-height: 1.3em; }
.sub-albums a { padding: 0 1em 0 0; }

.app-navigation ul.menu-h li { margin-right: 20px; margin-top: 4px; padding-left: 0 !important; }
.app-navigation .float-right ul.menu-h li { margin-right: 0; margin-left: 20px; }

/* albums */

ul.albums { padding: 0; margin: 0; text-align: center; }
ul.albums li { width: 280px; list-style: none; display: inline-block; text-align: center; margin-top: 30px; margin-bottom: 20px; vertical-align: top; }
ul.albums li a { text-decoration: none; }
ul.albums li .cover { width: 208px; min-height: 208px; margin: 0 auto 10px; position: relative; line-height: 1.2em; }
ul.albums li .cover .sublayer { position: absolute; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.2); left: 2px; right: -2px; bottom: 5px;top:-2px; width: 192px; height: 192px; }
ul.albums li .cover .sublayer.layer1 { z-index: 9; border-color: #aaa; -moz-transform: rotate(-3deg); -moz-transition: all 0.2s ease-in-out; -webkit-transform: rotate(-3deg); -webkit-transition: all 0.2s ease-in-out; transform: rotate(-3deg); transition: all 0.2s ease-in-out; }
ul.albums li .cover .sublayer.layer2 { z-index: 8; -moz-transform: rotate(3deg); -moz-transition: all 0.2s ease-in-out; -webkit-transform: rotate(3deg); -webkit-transition: all 0.2s ease-in-out; transform: rotate(3deg); transition: all 0.2s ease-in-out; }
ul.albums li .cover img { border: 7px solid white; box-shadow: 0 1px 5px rgba(0,0,0,0.3); -moz-transition: all 0.2s ease-in-out; -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; width: 192px; height: 192px; position: relative; z-index: 11; margin-bottom: 7px; }

ul.albums li .count { display: block; color: #aaa; font-size: 0.9em; margin-top: 5px; }

ul.albums li:hover .cover img { border-color: #ffd; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }

ul.albums.subalbums { margin-left: -20px; text-align: left; }
ul.albums.subalbums li { width: 150px; }
ul.albums.subalbums li .cover,
ul.albums.subalbums li .cover .sublayer,
ul.albums.subalbums li .cover img { width: 104px; height: 104px; }
ul.albums.subalbums li .cover img { border-width: 5px; }
ul.albums.subalbums li:hover .cover img { box-shadow: 0 2px 8px rgba(0,0,0,0.25); }

/* photostream */

ul.photostream { padding: 0; margin: 0; list-style: none; position: relative;}
ul.photostream li { float: left; padding-right: 7px;  }
ul.photostream li img { width: 48px; height: 48px; }
ul.photostream li.selected img { border: 4px solid #FDDA3B; margin: -4px -4px -2px; }
ul.photostream li.stream-nav { position: absolute; top: 18px; }
ul.photostream li.stream-nav i { display: block; width: 12px; height: 14px; }
ul.photostream li.stream-nav.rewind { left: -16px; padding: 0; }
ul.photostream li.stream-nav.rewind i { background: url('img/photostream-rewind.png') no-repeat; }
ul.photostream li.stream-nav.ff { right: -16px; padding: 0; }
ul.photostream li.stream-nav.ff i { background: url('img/photostream-ff.png') no-repeat;}

.photostream-divider { margin-top: 90px; border-top: 1px solid #ccc; margin-bottom: 20px; }

/* one photo */

.photo { margin-bottom: 0; width: 100%; margin-bottom: 1.5em; }
.photo img { max-width: 100%; height: auto !important; }

.stack-nav { font-size: 120%; margin-bottom: 10px; }
.stack-nav .rewind { position: relative; left: -2px; top: 5px; }
.stack-nav .ff { position: relative; left: 2px; top: 5px; }

.image { position: relative; display: block; max-width: 100%; display: block\9; /* IE8- hack */ }
.image img { max-width: 100%; height: auto !important; }
.image .corner { position:absolute; z-index:10; color: #fff; font-weight: bold; }
.image .corner.top { top:7px; }
.image .corner.left { left:10px; }
.image .corner.right { right:10px; }
.image .corner.bottom { bottom:5px; }
.image .corner .indicator { color: #fff; background: rgba(0,0,0,0.5); border-radius: 10px; padding: 3px 6px; }
.image .stripe { position:absolute; z-index:9; bottom: 5px; left: 0; right: 0; background: rgba(0,0,0,0.3); color: #fff; padding: 10px; }
.image .stripe h5 { margin-bottom: 0; text-shadow: 0 2px 2px #000; }
.image .stripe p { margin: 0.3em 0 0; }
.image .stack { position: absolute; top: 5px; left: 0; right: 0; color: #fff; padding: 10px; }
.image .stack .stack-nav { font-size: 120%; padding: 4px 8px 2px; display: inline-block; position: relative; background: #000; /* IE8- hack */ display: block\9; background: transparent\9; }
.image .stack .stack-nav .rewind { position: absolute; left: -30px; top: 3px; }
.image .stack .stack-nav .ff { position: absolute; right: -30px; left: auto; top: 3px; }

#photo-name { margin-top: 30px; }

.mini-stream { width: 275px; margin: 0 auto; height: 60px; }

.tags a { padding-right: 0 !important; padding-left: 0 !important; }

/* photo lists */

.view-plain { margin-top: 20px; }
.view-plain h5 { margin-bottom: 3px; }
.view-plain p { margin-bottom: 0; }
.view-plain .image { margin: 5px 0 0; text-align: left\9; /* IE8- hack */ }
.view-plain .stack { margin-top: 20px; }

ul.view-thumbs { padding: 0; margin: 0; list-style: none; }
ul.view-thumbs li { display: inline-block; position: relative; vertical-align: top; width: 300px; margin-right: 20px; margin-bottom: 20px; display: block\9; float: left\9; }
ul.view-thumbs li a { text-decoration: none; color: #000; }
ul.view-thumbs li h5 { margin-bottom: 5px; }
ul.view-thumbs li img.shadowed { -moz-box-shadow: 0 1px 3px #aaa; -webkit-box-shadow: 0 1px 3px #aaa; box-shadow: 0 1px 3px #aaa; margin-bottom: 5px; }
ul.view-thumbs.album-float-left-view { margin-top: 10px; }
ul.view-thumbs.album-float-left-view li { margin-right: 22px; }

ul.view-mixed { padding: 0; margin: 0; list-style: none; }
ul.view-mixed li.brick { display: inline-block; position: relative; vertical-align: top; width: 320px; height: 320px; margin-right: 6px; margin-bottom: 10px; text-align: left; overflow: hidden; /* IE8- hack */ display: block\9; float: left\9; margin-right: 10px\9; }
ul.view-mixed li.brick ul { padding: 0; margin: 0; }
ul.view-mixed li.brick ul li { float: left; padding: 0; margin: 0; }
ul.view-mixed li.brick ul li a { text-decoration: none; }
ul.view-mixed li.brick ul li a img { display: block; /* IE8- hack */ max-width: none\9; }
ul.view-mixed li.brick ul li a img.margined-right { margin-right: 10px; }
ul.view-mixed li.brick ul li a img.margined-bottom { margin-bottom: 10px; }
ul.view-mixed.album-float-left-view { margin-top: 10px; }
ul.view-mixed.album-float-left-view li.brick { display: block; margin-right: 10px; float: left; }

/* comments */

.credentials { overflow: hidden; line-height: 1.3em; }
.credentials a,
.credentials span { display: inline-block; vertical-align: middle; padding-left: 0 !important; //display: inline;}
.credentials .userpic { min-width: 20px; display: block; float: left; margin-right: 2px; }
.credentials .username { font-size: 0.9em; margin: 0; }
.credentials .username, .credentials .username a { color: #777; padding: 0; display: inline; }
.credentials a.username:hover { color: red; }
.credentials .date { margin: 0 3px; }

.comment-form { padding: 0; }
.comment-form h4 { margin: 0 0 20px; font-weight: normal; }
.comment-form-fields p { margin: 0 0 10px; }
.comment-form-fields p a { display: inline !important; }
.comment-form-fields label { width: 160px; display: block; clear: left; float: left; margin: 0 10px 0 0; color: #aaa;}
.comment-form-fields input { width: 20em; }
.comment-form textarea { min-width: 70%; min-height: 160px; }
.comment-form .comment-submit { padding:0 0 20px 170px;}
.comment-form .userpic { width: 20px; height: 20px; float: left; margin-right: 5px; }
.comment-form ul.menu-h.auth-type li a img { float: left; margin-right: 3px; position: relative; top: 2px; }
.comment-form ul.menu-h.auth-type { padding-bottom: 20px; }
.comment-form label { width: 160px; display: block; clear: left; float: left; margin: 0 10px 0 0; color: #AAA; }

.comments { margin-bottom: 30px; }
.comments h3 { margin: 0 0 20px; }
.comments h4 { margin: 0 0 10px; }
.comments .credentials .date { margin: 0 5px; }
.comments .credentials .userpic { margin-top: 5px; margin-right: 5px; }
.comments .credentials .userpic.icon16 { min-width: 0; width: 16px; height: 16px; margin: 7px 4px 0; }
.comments textarea { height: 100px; min-height: 100px; width: 75%; margin-top: 0; }
.comments ul,
.comments ul.menu-v li { padding: 0; margin: 0; list-style: none;}
.comments ul li { margin:0 0 20px 0;}
.comments ul li ul { margin:20px 0 0 0; }
.comments ul li span.hint a { color: #aaa; text-decoration: underline; }
.comments .text { margin: 5px 0 5px 27px; }
.comments .actions { margin: 0 0 5px 22px; font-size: 0.9em; }
.comments ul li a.comment-delete { margin: 0 0 0 5px; padding: 0; color: #d99; text-decoration: underline; }
.comments ul li a.comment-delete:hover { background: red; color: white; }
.comments ul li ul { padding-left: 25px; }
.comments ul li .comment-form { padding: 10px 30px; }
.comments ul li .comment-form textarea { min-height: 100px; }
.comments ul.menu-h.auth-type { padding: 0 0 40px; margin-left: -5px; }
.comments ul.menu-h.auth-type li { padding-right: 10px; }
.comments ul.menu-h.auth-type li a { padding: 5px 6px; }
.comments ul.menu-h.auth-type li a img { top: 0; }
.comment.deleted s { color: #777; background: #eee; padding: 0 3px; }

/* Star icons for user rating */

#photo-rate-votes-count,
#clear-photo-rate,
#photo-rate-error { position: relative; top: 3px; margin-left: 5px; margin-right: 5px; }
#photo-rate-error { color: red; }

.p-declined { color: red; }
.p-declined img { border: 2px solid red; margin-top: -2px; }
.p-awaiting-moderation { color: gray; font-style: italic; opacity: 0.5; }

.image .p-declined { color: white; background: red; padding: 15px; font-size: 1.2em; }
.image .p-awaiting-moderation { color: white; background: gray; padding: 15px; font-size: 1.2em; }

#main .icon10, #main .icon16 { background-image: url(img/stars.png) !important; }
.icon16.star, .icon16.star-full { background-position: -16px 0; }
.icon16.star-half { background-position: -32px 0; }
.icon16.star-empty { background-position: -48px 0; }
.icon16.star-hover { background-position: -64px 0; }
.icon10.star, .icon10.star-full { background-position: 0 -16px; }
.icon10.star-half { background-position: -10px -16px; }
.icon10.star-empty { background-position: -20px -16px; }
.icon16.loading { background-image: url(img/loading16.gif); background-position: 0 0; }

/* MOBILE only
============== */

@media screen and (max-width: 800px) {

	.container.paper { overflow-x: hidden; }
	#gallery-nav { margin-top: 0; }

	.image img { height: auto !important; }
	ul.view-thumbs li { width: auto; }
	ul.view-thumbs li img.shadowed { box-shadow: none; }
	ul.view-thumbs li h5 { display: none; }
	ul.view-mixed { margin-left: -15px; }

	.sidebar { margin-bottom: 20px; }
	.sidebar.left { width: 100%; float: none; }
	.sidebar.right, .sidebar.right.double { width: 100%; float: none; }
	.content.left { margin-left: 0; }
	.content.right, .content.right.double { margin-right: 0; }
	.sidebar p { clear: both; }

	.stream-nav { display: none; }

	.comment-form-fields label { width: auto; float: none; }
	.comment-form-fields input { width: 80%; }
	.comment-form textarea { width: 90%; }
	.comment-form .comment-submit { padding-left: 0; }
	.comment-form .wa-captcha img { margin-bottom: 10px; }

}
