
/* Node edit form styles */

.settings-group {
  clear: both;
  margin-top: 1.5em;
}

.settings-group > img {
  float: left;
  margin-bottom: 2em;
  margin-right: 2em;
}

.settings-group .group-label {
  font-weight: bold;
  margin-bottom: 0.75em;
}

.settings-group .form-item {
  padding: 0;
}

.settings-group .form-item label {
  font-weight: normal;
}

.settings-group .form-item label.option {
  font-size: 1em;
  vertical-align: middle;
}

.settings-group .form-item div.description {
  font-size: 0.87em;
  margin-top: 0;
}

.settings-group .form-inline {
  float: left;
}

.settings-group .form-inline label {
  display: none;
}

.settings-group .form-inline select {
  margin: 2em 1em 0 0;
}

.settings-group .form-inline.label label {
  display: block;
  position: absolute;
}

.settings-group .form-select.enhanced {
  margin-right: 1em;
}

.no-overflow {
  overflow: hidden;
}

.field-name-media-gallery-format {
  float: left;
  margin-bottom: 1em;
  width: 100%;
}

.field-name-media-gallery-format .form-type-radio {
  float: left;
  width: 31%;
}

.field-name-media-gallery-format .form-type-radio + .form-type-radio {
  margin-left: 2%;
}

.field-name-media-gallery-format .form-type-radio > input {
  float: left;
}

.field-name-media-gallery-format .form-type-radio img {
  float: left;
  height: 44px;
  margin: 0 0.5em;
  vertical-align: top;
  width: 42px;
}

.field-name-media-gallery-format .form-type-radio label.option {
  font-size: 0.94em;
  line-height: 1.2em;
}

.field-name-media-gallery-format .form-type-radio label.option .description {
  color: #666666;
  display: block;
  font-size: 0.86em;
}

.no-label label {
  display: none;
}

.setting-icon {
  background: url('images/gallery-icon-sprite.png') no-repeat left top transparent;
  display: block;
  float: left;
  height: 44px;
  margin: 0 0.5em;
  width: 42px;
}

.l-icon {
  background-position: -1px -1px;
}

.lt-icon {
  background-position: -110px -1px;
}

.n-icon {
  background-position: -221px -1px;
}

.settings-group .setting-icon {
  height: 109px;
  width: 104px;
}

.gallery-settings .setting-icon {
  background-position: -442px -57px;
}

.presentation-settings .setting-icon {
  background-position: 0 -57px;
}

.presentation-settings .setting-icon.l-icon {
  background-position: 0 -57px;
}

.presentation-settings .setting-icon.lt-icon {
  background-position: -110px -57px;
}

.presentation-settings .setting-icon.n-icon {
  background-position: -221px -57px;
}

.block-settings .setting-icon {
  background-position: -331px -57px;
}

.galleries-settings .setting-icon {
  background-position: -552px -57px;
}

/* Galleries form styles */

.form-media-gallery-collection .field-name-field-license {
  clear: both;
}

/* Gallery thumbnail styles */

.media-gallery-collection a.media-gallery-thumb,
.media-gallery-media a.media-gallery-thumb,
.media-gallery-thumb img {
  display: block;
  overflow: auto;
}

.media-gallery-media > .field-items > .field-item {
  float: left;
  position: relative;
}

.media-gallery-media .media-gallery-item-wrapper {
  margin: 0.5em;
  position: relative;
}

.media-gallery-media .media-gallery-item,
.media-gallery-collection .media-gallery-item {
  background: #FFFFFF;
  border: 1px solid #666666;
  padding: 4.5%;
}

.meta-wrapper,
.meta-wrapper:link,
.meta-wrapper:hover,
.meta-wrapper:visited,
.meta-wrapper:active {
  color: #FFF;
  line-height: 1.5em;
  min-height: 3em;
  font-size: 0.8462em;
}

.meta-wrapper .media-title {
  display: block;
  height: 1.3em;
  line-height: 1.3em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-wrapper .media-title * .field-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  -moz-binding: url('ellipsis.xml#ellipsis');
}

.media-license {
  display: block;
  float: right;
  font-size: 0;
  line-height: 14px;
}

.media-gallery-media .media-license {
  float: left;
  margin: 4px 0 0;
}

.media-license span {
  background: url('images/creative-commons-sprite.png') no-repeat left top transparent;
  display: inline-block;
  font-size: 1em;
  height: 0;
  padding: 7px;
  width: 0;
}

.media-license span + span {
  margin-left: 3px;
}

.media-license.dark .copyright {
  background-position: -95px -1px;
}

.media-license.dark .attribution {
  background-position: -2px -1px;
}

.media-license.dark .non-commercial {
  background-position: -25px -1px;
}

.media-license.dark .share-alike {
  background-position: -49px -1px;
}

.media-license.dark .no-deriv {
  background-position: -72px -1px;
}

.media-license.light .copyright {
  background-position: -95px -51px;
}

.media-license.light .attribution {
  background-position: -2px -51px;
}

.media-license.light .non-commercial {
  background-position: -25px -51px;
}

.media-license.light .share-alike {
  background-position: -49px -51px;
}

.media-license.light .no-deriv {
  background-position: -72px -51px;
}

.media-license.medium .copyright {
  background-position: -95px -26px;
}

.media-license.medium .attribution {
  background-position: -2px -26px;
}

.media-license.medium .non-commercial {
  background-position: -25px -26px;
}

.media-license.medium .share-alike {
  background-position: -49px -26px;
}

.media-license.medium .no-deriv {
  background-position: -72px -26px;
}

.meta-wrapper.hover {
  background: url('images/hover-dark-bg.png') repeat left top transparent;;
  bottom: 0;
  color: #FFF;
  display: none;
  left: 0;
  line-height: 1.25em;
  margin: 0;
  min-height: 0;
  padding: 0.3em 0.5em;
  position: absolute;
  right: 0;
}

.meta-wrapper.hover .media-title {
  font-weight: normal;
  line-height: inherit;
}

.meta-wrapper.hover .media-title a,
.meta-wrapper.hover .media-title a:hover {
  color: #FFF;
}

.media-gallery-item-wrapper:hover .meta-wrapper.hover,
.media-collection-item-wrapper:hover .meta-wrapper.hover {
  display: block;
}

em.placeholder {
  font-style: normal;
}

/* Gridding styles */

.media-gallery-media {

}

.mg-col {
  margin: 0 -0.5em;
}

.mg-col > .field-items {
  width: 100%;
}

a.media-gallery-thumb img,
.media-gallery-detail img {
  height: auto;
  overflow: auto;
  width: 100%;
}

.mg-col-1 > .field-items > .field-item,
.mg-col-1 .node {
  width: 100%;
}

.mg-col-2 > .field-items > .field-item,
.mg-col-2 .node {
  width: 50%;
}

.mg-col-3 > .field-items > .field-item,
.mg-col-3 .node {
  width: 33.3%;
}

.mg-col-4 > .field-items > .field-item,
.mg-col-4 .node {
  width: 24.96%;
}

.mg-col-5 > .field-items > .field-item,
.mg-col-5 .node {
  width: 20%;
}

.mg-col-6 > .field-items > .field-item,
.mg-col-6 .node {
  width: 16.6666666665%;
}

.mg-col-7 > .field-items > .field-item,
.mg-col-7 .node {
  width: 14.2857142857%;
}

.mg-col-8 > .field-items > .field-item,
.mg-col-8 .node {
  width: 12.5%;
}

.mg-col-9 > .field-items > .field-item,
.mg-col-9 .node {
  width: 11.1111111111%;
}

.mg-col-10 > .field-items > .field-item,
.mg-col-10 .node {
  width: 10%;
}

.mg-col .node-media-gallery.node-teaser {
  float: left;
}

.mg-col .node-media-gallery.node-teaser,
.mg-col .node-media-gallery.node-teaser .content {
  margin: 0;
  outline: none;
}

.mg-col .node-media-gallery.node-teaser h2 {
  display: none;
}

.mg-col .node-media-gallery.node-teaser .float-overflow {
  margin: 0.5em;
  position: relative;
}

/* Detail page styles */

.media-gallery-detail-wrapper {
  margin-top: 1em;
}

.media-gallery-detail {
  float: left;
  margin-right: 1em;
  width: 60%;
  line-height: normal;
}

.media-gallery-detail-wrapper .field-name-media-description .field-item {
  word-wrap: break-word;
}

.media-gallery-detail-info {
  clear: both;
  display: block;
  margin-top: 0.5em;
  position: relative;
  overflow: hidden;
}

.media-gallery-detail-info .media-license {
  position: absolute;
  top: 0;
  right: 0;
}

.media-gallery-detail-info + .media-gallery-detail-info {
  margin-top: 1em;
}

.media-gallery-detail-image-info-wrapper {
  clear: right;
  float: right;
}

.media-gallery-image-count {
  padding-right: 1em;
}

/* lightbox styles */

#cboxSlideshow {
  right: 40px;
}

.mg-lightbox-wrapper {
  color: #666666;
  width: 750px;
}

.mg-lightbox-wrapper a,
.lightbox-stack a {
  color: #0074BD;
}

.mg-lightbox-wrapper a:link,
.mg-lightbox-wrapper a:visited,
.mg-lightbox-wrapper a:active,
.mg-lightbox-wrapper a:hover,
.lightbox-stack a:link,
.lightbox-stack a:visited,
.lightbox-stack a:active,
.lightbox-stack a:hover{
  color: #0074BD;
}

.mg-lightbox-wrapper a:hover,
.lightbox-stack a:hover {
  text-decoration: underline;
}

.mg-lightbox-wrapper .lightbox-title {
  font-size: 1.8em;
  font-weight: bold;
  padding-bottom: 0.2em;
  padding-top: 0.2em;
}

.mg-lightbox-detail {
  float: left;
  margin-right: 1em;
}

.lightbox-stack {
  min-width: 250px;
}

/* Gallery of Galleries styles */

.media-collection-item-wrapper {
  padding: 9%;
  position: relative;
}

.stack-image {
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.media-collection-item-wrapper .media-gallery-item {
  border: none;
  padding: 0;
  position: relative;
}

/* Contextual links overrides */

a.contextual-links-trigger {
  background-position: 2px -18px;
}

a.contextual-links-trigger:hover,
div.contextual-links-active a.contextual-links-trigger {
  background-position: 2px 0;
}
