/* Yahoo Reset? */

@charset "utf-8";

* {
    padding: 0;
    border: 0;
    margin: 0;
}
body {
    background: #ddd;
    color: black;
    font-family: sans-serif;
}
#title {
    overflow: auto;
    background: white;
    color: black;
    -webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.5);
    box-shadow: 0px 0px 10px rgba(0,0,0,.5);
}
#title p {
    text-align: center;
}
#title a {
    text-decoration: none;
    color: black;
}
#title p a {
    display: block;
    padding: 4px 12px;
    color: #888;
}
h1 {
    padding: 8px 16px;
    font-family: Palatino, Georgia, serif;
    letter-spacing: .05em;
    float: left;
    font-weight: normal;
    color: black;
}
h2 {
    padding: 2px 14px;
    margin-bottom: 2px;
    font-weight: normal;
    font-family: Georgia, serif;
    color: #444;
    font-size: 20px;
    font-style: italic;
}
#sections {
    padding: 2px;
}
.section {
    background: url(/static/img/pattern1.png);
    margin: 8px 4px;
    padding: 4px 6px;
    -webkit-box-shadow: 2px 3px 3px rgba(0,0,0,.35);
    box-shadow: 2px 3px 3px rgba(0,0,0,.35);
    border: 1px solid #ccc;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}

textarea {
    border: 3px solid #eee;
    padding: 3px;
    z-index: 1;
    position: relative;
    width: 130px;
    height: 170px;
}

#enable-edit {
    background: #090;
}
#disable-edit {
    background: red;
}
#enable-edit, #disable-edit {
    position: fixed;
    top: 0;
    left: 48%;
    display: block;
    cursor: pointer;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 12px 24px;
    border: 1px solid black;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}
#enable-edit {
    display: inline-block;
}
#disable-edit {
    display: none;
}
#user-info {
    float: right;
    margin: 4px;
}

body.editable #enable-edit {
    display: none;
}
body.editable #disable-edit {
    display: inline-block;
}

.photos {
    display: block;
    padding: 0 2px 0px 2px;
    margin: 1px 0px;
}
.photos li {
    text-align: center;
    width: 144px;
    min-height: 220px;
    vertical-align: middle;
    display: inline-block;
    padding: 4px;
    margin: 1px;
    background: #fff;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.admin .photos li {
    min-height: 264px;
}
img.homepage-thumbnail,
.photos li a.thumbnail img {
  padding: 4px;
  border-radius: 2px;
  -webkit-box-shadow: 1px 1px 5px #bbb;
  box-shadow: 1px 1px 5px #bbb;
}
.photos li a.thumbnail:focus {
    outline: none;
}
.photos li a.thumbnail:focus img {
    border: 1px dotted #009;
    padding: 3px;
}
.photos p {
    padding: 2px;
    font-size: 12px;
}
.photos p.comment {
    color: black;
    font-style: italic;
    max-width: 156px;
    margin: 0 auto;
    padding: 1px;
}
body.editable .photos p.comment {
    padding: 0;
    border: 1px dashed #bbb;
    min-height: 48px;
}
.photos p.empty-comment {
    color: #888;
}
body.editable .photos p.empty-comment:before {
    content: "(vide)";
}
.photos li.sep {
    background: #ccc;
    min-width: 10px;
}

.photo {
    color: black;
}

.photo:before {
    display: block;
    min-height: 19px;
    content:"";
}

.photo.new:before {
    content:"Nouvelle";
    display: block;
    background: #080;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 2px;
    min-height: 0;
}

.photo.deleted {
    opacity: 0.5;
}
.photo.deleted:before {
    content:"Supprimée";
    display: block;
    background: #900;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 2px;
    min-height: 0;
}

.photo .delete-action {display: inline-block}
.photo .restore-action {display: none}

.photo.deleted .delete-action {display: none}
.photo.deleted .restore-action {display: inline-block}

x.photo.type-pano a.thumbnail:before,
x.photo.type-360 a.thumbnail:before {
    content: "Panoramique";
    line-height: inherit;
    color: white;
    font-weight: bold;
    position: relative;
    display: inline-block;
    z-index: 1;
    padding: 4px 4px;
    font-size: 11px;
    width: 128px;
    margin: 0;
    margin-bottom: 3px;
    box-shadow: 1px 1px 3px 1px rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.85);
}

.photo.type-pano a.thumbnail:before {
    background: #807;
}
.photo.type-360 a.thumbnail:before {
    background: #009;
}

.photo-actions {
    overflow: visible;
}

.photo-actions span {
    float: left;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 4px;
    cursor: pointer;
}

.photo-actions span {
    opacity: .25;
}

.photo-actions span:hover {
    opacity: 1;
}

.rotate-cw-action {
    background: white url(/static/img/action-rotate-cw.png);
}
.rotate-ccw-action {
    background: white url(/static/img/action-rotate-ccw.png);
}

.delete-action {
    background: white url(/static/img/action-delete.png);
}

.restore-action {
    background: white url(/static/img/action-restore.png);
}

.promote-action {
    background: white url(/static/img/action-promote.png);
}

.footer {
    text-align: right;
    font-style: italic;
    color: #ccc;
    font-size: 80%;
    margin: 0 20px;
    padding: 2px 0;
}
a.map {
    color: #00a;
    text-decoration: none;
}

/*-------------------------------------------------------------------------*/

ul.galleries {
    margin-top: 1px;
    list-style: none;
    padding: 15px;
}

ul.galleries > li {
    display: inline-block;
    overflow: hidden;
    background: white;
    margin: 15px;
    box-shadow: 2px 2px 5px 0 rgba(0,0,0,.3);
    vertical-align: middle;
}

ul.galleries > li:hover {
    box-shadow: 0px 0px 2px 3px rgba(0,0,0,.5);
}

ul.galleries > li > a {
    display: block;
    height: 140px;
    width: 340px;
    padding: 50px 30px;
    text-decoration: none;
    color: inherit;
}

ul.gallery-details {
    font-size: 20px;
    list-style: none;
    display: block;
    margin-right: 160px;
}

ul.galleries > li p.thumbnail {
    float: right;
    margin: 0 10px;
    width: 136px;
    text-align: center;
}

ul.gallery-details li.gallery-title {
    text-align: right;
    font-weight: bold;
    color: #005;
    text-shadow: 1px 1px 3px rgba(0,0,0,.3);
}

ul.gallery-details li.photo-count {
    color: #666;
    font-size: 80%;
    text-align: right;
}

ul.gallery-details li.photo-daterange {
    color: #666;
    font-size: 80%;
    text-align: right;
}

/*-- Photo viewer ---------------------------------------------------------*/

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0.75;
    background: #333;
    z-index: 2;
}

.frame {
    position: fixed;
    color: black;
    top: 0;
    left: 0;
    z-index: 2;
    border: 1px solid #ccc;
    -webkit-box-shadow: 5px 5px 15px #000;
    box-shadow: 5px 5px 15px #000;
    padding: 10px;
    background: white;
    line-height: 0;
}
.frame .content {
    background: black;
}
.summary {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    text-align: center;
    font-size: 30px;
    color: white;
    text-shadow: 1px 2px 3px black;
}
.summary p {
    position: relative;
    display: inline-block;
    border: 5px solid white;
    padding: 30px;
    background: rgba(0,0,0,0.4);
}
.photo-control ul {
    position: absolute;
    left: 50%;
    top: 75%;
    background: rgba(0,0,0,0.75);
    border: 2px solid #fff;
    margin-left: -130px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    z-index: 1;
}
.photo-control ul li {
    cursor: pointer;
}
.photo-control ul li[disabled] {
    cursor: inherit;
}
.photo-control ul li a {
    display: block;
    width: 100%;
    height: 100%;
}
.photo-control ul li span {
    display: none;
}

.photo-rotate-cw,
.photo-rotate-ccw {
    display: none;
}
.admin .photo-rotate-cw {
    width: 50px;
    height: 50px;
    background: url(/static/img/photo-rotate-cw.png) no-repeat 10px 10px;
    display: inline-block;
    border-right: 1px solid rgba(80,80,80,0.7);
}

.admin .photo-rotate-ccw {
    width: 50px;
    height: 50px;
    background: url(/static/img/photo-rotate-ccw.png) no-repeat 10px 10px;
    display: inline-block;
    border-right: 1px solid rgba(80,80,80,0.7);
}

.photo-geo {
    width: 50px;
    height: 50px;
    background: url(/static/img/photo-geo.png) no-repeat 10px 10px;
    display: inline-block;
    border-right: 1px solid rgba(80,80,80,0.7);
}
.photo-geo[disabled] {
    background: url(/static/img/photo-geo-disabled.png) no-repeat 10px 10px;
}

.photo-prev {
    width: 50px;
    height: 50px;
    background: url(/static/img/photo-prev.png) no-repeat 10px 10px;
    display: inline-block;
    border-right: 1px solid rgba(80,80,80,0.7);
}

.photo-next {
    width: 50px;
    height: 50px;
    background: url(/static/img/photo-next.png) no-repeat 10px 10px;
    display: inline-block;
    border-left: 1px solid rgba(20,20,20,0.7);
    border-right: 1px solid rgba(80,80,80,0.7);
}

.photo-close {
    width: 50px;
    height: 50px;
    background: url(/static/img/photo-close.png) no-repeat 10px 10px;
    display: inline-block;
    border-left: 1px solid rgba(20,20,20,0.7);
    border-right: 1px solid rgba(80,80,80,0.7);
}

.photo-download {
    width: 50px;
    height: 50px;
    background: url(/static/img/photo-download.png) no-repeat 10px 10px;
    display: inline-block;
    border-left: 1px solid rgba(20,20,20,0.7);
}

.photo-caption {
    position: absolute;
    left: 0px;
    bottom: 0px;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    pointer-events: none;
}
.photo-caption ul {
    position: relative;
    overflow: hidden;
    height: 100%;
    list-style: none;
}
.photo-caption li {
    font-size: 20px;
    color: white;
    line-height: 24px;
    font-weight: bold;
    text-align: center;
    text-shadow:
      1px 1px 2px black,
      1px -1px 2px black,
      -1px -1px 2px black,
      -1px 1px 2px black;
}
li.title {
    background: rgba(0,0,0,0.4);
    display: block;
    padding: 10px 0;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
}
li.title.empty-title {
    display: none;
}
li.info {
    color: white;
    font-size: 22px;
    float: left;
    padding: 8px;
}
li.date {
    color: white;
    font-size: 22px;
    float: right;
    padding: 8px;
}
li.hour {
    color: white;
    font-size: 22px;
    display: inline-block;
    padding: 8px;
}

.pin {
    padding-right: 5px;
    vertical-align: -3px;
}

.form-error { color: red }

.form-box {
    display: table;
    border: 1px solid #eee;
    margin: 40px auto;
    padding: 40px;
    background: white;
    color: black;
    -webkit-box-shadow: 3px 5px 6px rgba(0,0,0,.35);
    box-shadow: 2px 2px 5px 0 rgba(0,0,0,.3);
}
.form-box a {
    text-decoration: underline;
    color: #00f;
}
.form-box th {
    text-align: right;
    font-weight: normal;
    padding: 8px;
}
textarea {
    border-radius: 0;
}
input {
    border: 3px solid #ccc;
    padding: 2px;
    margin: 2px;
    -webkit-appearance: none;
    border-radius: 0;
}
input[type=submit] {
    border: 1px solid #369;
    background: #48d;
    color: white;
    padding: 3px;
    cursor: pointer;
    margin: 3px;
}
form input.cancel-button {
    background: #ccc;
    color: #444;
    border: 1px solid #444;
}
