/* dialog */

#image-store-browser * {
    box-sizing: border-box;
}

#image-store-browser {
    display: none;
    z-index: 1001;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

#image-store-browser .background {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.9;
}

#image-store-browser .dialog-content {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -300px 0 0 -400px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

#image-store-browser .dialog-controls {
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 201;
    height: 25px;
    padding: 3px 3px 0 0;
    color: #fff;
}

#image-store-browser .close,
#image-store-browser .fb-share,
#image-store-browser .share {
    float: left;
}

#image-store-browser .close a,
#image-store-browser .fb-share a,
#image-store-browser .share a,
.ad-slideshow-start,
.ad-slideshow-stop{
    cursor: pointer;
    float: left;
    text-indent: -9999px;
    display: block;
    width: 18px;
    height: 18px;
    border: 1px solid #534b40;
}

#image-store-browser .close a:hover,
#image-store-browser .fb-share a:hover,
#image-store-browser .share a:hover,
.ad-slideshow-start:hover,
.ad-slideshow-stop:hover{
    border: 1px solid #ff9711;
}

#image-store-browser .close {
    padding-left: 10px;
}

#image-store-browser .close a {
    width: 18px;
    height: 18px;
    background-image: url("../images/gallery/close.png");
    background-repeat: no-repeat;
    opacity: 1;
    background-position: center;
}

#image-store-browser .share {
    padding-right: 10px;
    border-right: 1px solid #c4c4c4;
}

#image-store-browser .share a {
    width: 20px;
    height: 14px;
    background-image: url("../images/image-store/share.png");
    background-repeat: no-repeat;
}

#image-store-browser .fb-share {
    padding-right: 10px;
}

#image-store-browser .fb-share a {
    width: 14px;
    height: 14px;
    background-image: url("../images/image-store/f_logo2.png");
    background-repeat: no-repeat;
}


/* form */

#image-store-browser .form {
    position: absolute;
    left: -100%;
    top: 50%;
    margin-top: -220px;
    z-index: 1000;
    background-color: #ccc;
    width: 400px;
    height: 360px;
    /*background-image: url("../images/image-store/ad-image-wrapper.png");*/
    background-color: #cdcdcd;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    border: 1px solid #F1F1F1;
    -webkit-box-shadow:  0px 0px 10px 0px rgba(0, 0, 0, 0.5);
    box-shadow:  0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}

#image-store-browser .elements {
    display: none;
    padding: 20px;
}

#image-store-browser .loader {
    display: none;
    background-image: url(../images/ajax-loader.gif);
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -16px 0 0 -16px;
}

#image-store-browser .cms-input-wrapper {
    width: 50%;
    float: left;
    margin-bottom: 10px;
}

#image-store-browser .cms-input-wrapper.full-width {
    width: 100%;
    float: none;
}

#image-store-browser .cms-input-wrapper label {
    display: block;
    margin-left: 10px;
    padding: 0;
    width: 90%;
    color: #747474;
    font-family: 'Oswald','Open Sans',Arial,Helvetica,sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
}

#image-store-browser .cms-input-wrapper input[type=text] {
    border: 1px solid #9fa3ad;
    background: url("../images/textbox_bg.png") repeat-x #fff;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    padding: 3px;
    color: #636876;
    height: 18px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: normal;
    width: 90%;
}

#image-store-browser .cms-input-wrapper textarea {
    border: 1px solid #9fa3ad;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    padding: 3px;
    color: #636876;
    height: 124px;
    width: 320px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: normal;
    font-size: 13px;
    background: url("../images/textarea_bg.png") repeat-x #fff;
    width: 95%;
}

#image-store-browser button {
    background: #fff;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    cursor: pointer;
    padding: 0 15px 0 15px;
    height: 35px;
    margin-left: 5px;
    border: 0;
    color: #ffffff;
    outline: none;
    font-weight: bold;
    font-family: 'Oswald','Open Sans',Arial,Helvetica,sans-serif;
    font-size: 14px;
    font-weight: 200;
    background: url("../images/button-bg.png") repeat-x;
}

#image-store-browser button:hover {
    border: 0!important;
    background: url("../images/button-bg.png") repeat-x!important;
    color: #ffffff!important;
}

#send-label, #cancel-label {
    display: none;
}

#send-element, #cancel-element {
    margin: 0;
    float: left;
}

/* ad-gallery */

.ad-gallery {
    width: 800px;
    height: 600px;
    padding: 1px !important;
    background-color: #f5f3d2;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}
.ad-gallery, .ad-gallery * {
    margin: 0;
    padding: 0;
}

.ad-gallery .ad-image-wrapper {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    background-image: none;
    background-color: #f5f3d2;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    margin: 25px 0;
}

.ad-gallery .ad-image-wrapper .ad-loader {
    position: absolute;
    z-index: 10;
    top: 48%;
    left: 48%;
    border: 1px solid #CCC;
}

.ad-gallery .ad-image-wrapper .ad-next {
    position: absolute;
    right: 0;
    top: 0;
    width: 25%;
    height: 100%;
    cursor: pointer;
    display: block;
    z-index: 200;
}

.ad-gallery .ad-image-wrapper .ad-prev {
    position: absolute;
    left: 0;
    top: 0;
    width: 25%;
    height: 100%;
    cursor: pointer;
    display: block;
    z-index: 200;
}

.ad-gallery .ad-image-wrapper .ad-prev, .ad-gallery .ad-image-wrapper .ad-next {
    /* Or else IE will hide it */
    background: url(/static/editor/images/image-store/trans.gif);
}

.ad-gallery .ad-image-wrapper .ad-prev .ad-prev-image, .ad-gallery .ad-image-wrapper .ad-next .ad-next-image {
    background: url(../images/gallery/ad_prev.png);
    width: 29px;
    height: 47px;
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 101;
    margin-top: -23px;
}

.ad-gallery .ad-image-wrapper .ad-next .ad-next-image {
    background: url(../images/gallery/ad_next.png);
    width: 29px;
    height: 47px;
    right: 0;
    left: auto;
}

.ad-gallery .ad-image-wrapper .ad-image {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 9;
    border: 1px solid #534b40;
}

.ad-gallery .ad-image-wrapper .ad-image a img {
    border: 0;
}

.ad-gallery .ad-image-wrapper .ad-image .ad-image-description {
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding: 7px;
    text-align: left;
    width: 100%;
    z-index: 2;
    /*background: url(/static/editor/images/image-store/opa75.png);*/
    color: #fff;
    background: rgba(69,75,83,0.6);
}

* html .ad-gallery .ad-image-wrapper .ad-image .ad-image-description {
    background: none;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (enabled=true, sizingMethod=scale, src='opa75.png');
}

.ad-gallery .ad-image-wrapper .ad-image .ad-image-description .ad-description-title {
    display: block;
}

.ad-gallery .ad-controls {
    position: absolute;
    padding: 3px 0 0 3px;
    color: #515151;
    background-color: #f5f3d2;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    z-index: 201;
    height: 25px;
}

.ad-gallery .ad-info {
    float: left;
    padding: 0;
    font-size: 14px;
    line-height: 18px;
    margin: 0 10px 0 5px;
}

.ad-gallery .ad-slideshow-controls {
    float: left;
}

.ad-gallery .ad-slideshow-controls .ad-slideshow-start, .ad-gallery .ad-slideshow-controls .ad-slideshow-stop {
    padding: 0;
    cursor: pointer;
    display: block;
    float: left;
    text-indent: -9999px;
    background-repeat: no-repeat;
    margin-right: 5px;
    border: 1px solid #534b40;
    opacity: 1;
    background-position: center;
}

.ad-gallery .ad-slideshow-controls .ad-slideshow-start:hover, .ad-gallery .ad-slideshow-controls .ad-slideshow-stop:hover {
	border: 1px solid #ff9711;
}

.ad-gallery .ad-slideshow-controls .ad-slideshow-start {
    width: 18px;
    height: 18px;
    background-image: url("../images/gallery/play.png");
}

.ad-gallery .ad-slideshow-controls .ad-slideshow-stop {
    width: 18px;
    height: 18px;
    background-image: url("../images/gallery/stop.png");
}

.ad-gallery .ad-slideshow-controls .ad-slideshow-countdown {
    font-size: 14px;
    line-height: 18px;
    float: left;
}

.ad-gallery .ad-slideshow-running .ad-slideshow-start {
    cursor: default;
    font-style: italic;
    opacity: 1;
    filter: alpha(opacity = 100);
}

.ad-gallery .ad-nav {
    position: relative;
    height: 98px;
    background-color: #534b40;
    padding: 8px 20px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.ad-gallery .ad-forward, .ad-gallery .ad-back {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 10;
}

/* IE 6 doesn't like height: 100% */
* html .ad-gallery .ad-forward, .ad-gallery .ad-back {
    height: 100px;
}

.ad-gallery .ad-back {
    cursor: pointer;
    left: 0;
    width: 20px;
    display: block;
    background: url(../images/gallery/ad_scroll_back.png) center no-repeat;
    opacity: 1!important;
    filter: alpha(opacity = 100)!important;
}

.ad-gallery .ad-forward {
    cursor: pointer;
    display: block;
    right: 0;
    width: 20px;
    background: url(../images/gallery/ad_scroll_forward.png) center no-repeat;
    opacity: 1!important;
    filter: alpha(opacity = 100)!important;
}

.ad-gallery .ad-nav .ad-thumbs {
    overflow: hidden;
}

.ad-gallery .ad-thumbs .ad-thumb-list {
    float: left;
    width: 9000px;
    list-style: none;
}

.ad-gallery .ad-thumbs li {
    float: left;
    margin-right: 3px;
}

.ad-gallery .ad-thumbs li a {
    display: block;
    background-color: #000;
}

.ad-gallery .ad-thumbs li a img {
    border: 1px solid #f5f3d2;
    display: block;
    height: 82px;
}

.ad-gallery .ad-thumbs li a.ad-active img {
	border: 1px solid #ff9711;
}

/* Can't do display none, since Opera won't load the images then */
.ad-preloads {
    position: absolute;
    left: -9000px;
    top: -9000px;
}
