/************************************
 * gallery
 ************************************/
.gallery
{
  border-collapse : collapse;
  border          : 2px solid white;
  border-spacing  : 0;
/*border-collapse : separate;
  border-spacing  : 15px 25px;
  empty-cells     : show;*/
  margin          : 0;
  width           : 100%;
}
.gallery td
{
  border          : 1px solid #ccc;
  cursor          : pointer;
  font-weight     : bold;
  padding         : 10px;
  text-align      : center;
  vertical-align  : top;
}
.gallery_menu td a
{
  display         : block;
  height          : 100%;
  position        : relative;
  text-align      : center;
  width           : 100%;
}
.gallery td.empty {
  cursor          : inherit;
}
.gallery td.highlight
{
  background-color: #444;
  color           : #fff;
}
.gallery td.selected {
  background-color: #eee;
}
.gallery p {
  margin          : 0.75em 0;
}

/************************************
 * gallery_group
 ************************************/
.gallery_group
{
  border-collapse : collapse;
  border          : 2px solid white;
  border-spacing  : 0;
/*border-collapse : separate;
  border-spacing  : 15px 25px;
  empty-cells     : show;*/
  margin          : 0;
  width           : 100%;
}
.gallery_group td
{
  border          : 1px solid #ccc;
  padding         : 10px;
  text-align      : center;
  vertical-align  : top;
}
.gallery_group td.empty {
  cursor          : inherit;
}
.gallery_group td.highlight
{
  background-color: #444;
  color           : #fff;
}
.gallery_group td.selected {
  background-color: #eee;
}
.gallery_group p {
  margin          : 0.75em 0;
}

/************************************
 * gallery_slideshow
 ************************************/
.gallery_slideshow
{
  overflow        : hidden;
  position        : relative;
}

.gallery_slideshow_photo
{
  display         : none;
  position        : absolute;
  width           : 100%;
  height          : auto;
}
/* Note: IE8 will NOT fade the image if "relative" positioning is used. */
.gallery_slideshow_photo img
{
  position        : static;
  width           : 100%;
  height          : auto;
}

.gallery_slideshow_photo_name,
.gallery_slideshow_photo_caption,
.gallery_slideshow_photo_description
{
  display         : none;
  position        : absolute;
}

.gallery_slideshow_photo_active
{
}

/* Prevent CSS animations from running again during jQuery UI effects. */
.gallery_slideshow .gallery_slideshow_photo-animation-paused {
  animation-name: gallery_slideshow_photo-animation-paused !important;
}

/************************************
 * gallery_filmstrip
 ************************************/
.gallery_filmstrip {
  position        : relative;
  width           : 800px;
}
.gallery_filmstrip .gallery_filmstrip_screen
{
  height          : 400px;
  position        : relative;
  width           : 600px;
}
.gallery_filmstrip .gallery_filmstrip_screen_image {
}
.gallery_filmstrip .gallery_filmstrip_link {
}
.gallery_filmstrip .gallery_filmstrip_description {
}
.gallery_filmstrip .gallery_filmstrip_cells
{
  border-collapse : collapse;
  border          : 2px solid white;
  border-spacing  : 0;
/*border-collapse : separate;
  border-spacing  : 15px 25px;
  empty-cells     : show;*/
  height          : 191px;
  margin          : 0;
  overflow-x      : auto;
  overflow-y      : hidden;
  padding         : 0;
  position        : relative;
  width           : 100%;
}

.gallery_filmstrip .gallery_filmstrip-scroll_left
{
  bottom          : 80px;
  cursor          : pointer;
  display         : none;
  left            : 0;
  position        : absolute;
}
.gallery_filmstrip .gallery_filmstrip-scroll_right
{
  bottom          : 80px;
  cursor          : pointer;
  display         : none;
  position        : absolute;
  right           : 0;
}

.gallery_filmstrip .gallery_filmstrip_cells td
{
  border          : 1px solid #ccc;
  cursor          : pointer;
  font-weight     : bold;
  padding         : 10px;
  text-align      : center;
  vertical-align  : top;
  width           : 200px;
}
.gallery_filmstrip .gallery_filmstrip_cells td.empty {
  cursor          : inherit;
}
.gallery_filmstrip .gallery_filmstrip_cells td.highlight {
  background-color: #ddd;
}
.gallery_filmstrip .gallery_filmstrip_cells td.selected {
  background-color: #aaa;
}
.gallery_filmstrip p {
  margin          : 0.75em 0;
}

/************************************
 * gallery (more)
 ************************************/
.gallery_name
{
  font-weight     : bold;
  font-size       : 0.9em;
  margin          : 0.75em 0 0 0;
  text-align      : center;
}
.gallery_photocount {
  font-size       : 0.8em;
}
.gallery_caption
{
  font-weight     : normal;
  font-size       : 0.8em;
  margin          : 0.75em 0 0 0;
  text-align      : left;
}

/************************************
 * photo
 ************************************/
.photo_name
{
  font-weight     : bold;
  font-size       : 0.9em;
  margin          : 0.75em 0 0 0;
  text-align      : center;
}
.photo_caption
{
  font-weight     : normal;
  font-size       : 0.8em;
  margin          : 0.75em 0 0 0;
  text-align      : left;
}

a.gallery_photo
{
  display         : inline-block;
/*Note: Allow the anchor to wrap the photo so its "title" attribute is masked.
  height          : 100%;
  width           : 100%;*/
}

/************************************
 ************************************/
td.photo_icon
{
  height          : 32px;
  text-align      : center;
  width           : 32px;
}
td.photo_thumb
{
  height          : 100px;
  text-align      : center;
  width           : 100px;
}

/************************************
 * gallery-photo_previews,
 * gallery-image_class_editor
 ************************************/
.gallery-photo_previews,
.gallery-image_class_editor
{
  border-top   : 1px solid #aaa;
  border-right : 1px solid #aaa;
  border-bottom: none; /* Note: Bottom is handled by the rows. */
  border-left  : 1px solid #aaa;
}

.gallery-photo_previews     .gallery-image_class_name,
.gallery-image_class_editor .gallery-image_class_name
{
  background   : #555;
  clear        : both;
  color        : white;
  padding      : 0.3em 1.5em;
  font-weight  : bold;
  font-size    : 0.9em;
  font-family  : "Courier New", fixed;
}

.gallery-image_class_editor .gallery-image_class_name
{
  float : right;
  text-align: right;
  min-width: auto;
}

.gallery-image_class_editor .gallery-image_class_label
{
  background   : #555;
  border-bottom: 1px solid #aaa;
  color        : white;
  padding      : 0.25em 0.5em;
  font-size    : 1.0em;
}

.gallery-photo_previews     .gallery-image_class_properties,
.gallery-image_class_editor .gallery-image_class_properties
{
  background   : #eee;
  border-bottom: 1px solid #aaa;
  clear        : both;
  color        : #222;
  padding      : 0 0.5vw 0 0;
}

.gallery-image_class_editor .gallery-image_class_properties .field_value
{
  white-space: nowrap;
}
.gallery-photo_previews     .gallery-image_class_properties table {
  width: 100%;
}
.gallery-photo_previews     .gallery-image_class_properties table td:first-child {
  width: 33%;
}
.gallery-photo_previews .gallery-image_class_properties .divider td {
  border-top: 1px solid #ccc;
  font-size : 0;
  height    : 0;
  padding   : 0;
}
.gallery-photo_previews     .gallery-image_class_properties td,
.gallery-image_class_editor .gallery-image_class_properties td {
  font-size: 0.8em;
  padding  : 3px;
}

.gallery-photo_previews     .gallery-image_class_properties td:first-child {
  padding-left: 0.5vw;
}
.gallery-image_class_editor .gallery-image_class_properties td:first-child {
  padding-left: 1.5em;
}
.gallery-image_class_editor .gallery-image_class_properties td:nth-of-type(2) {
  padding-right: 3em;
}
.gallery-image_class_editor .gallery-image_class_properties td:nth-of-type(3)
{
  border-left : 1px solid #aaa;
  padding-left: 3em;
}

.gallery-image_class_editor .gallery-image_class_properties .value_override {
  background-color: #fcc;
}

.gallery-photo_previews .gallery-image_class_properties
{
  overflow     : hidden;
  text-overflow: ellipsis;
}

.gallery-image_class_editor .gallery-image_class_properties {
  overflow: auto;
}

.gallery-photo_previews .gallery-image_class_preview
{
  border-bottom: 1px solid #aaa;
  overflow     : auto;
  padding      : 0.75em;
}

.gallery-photo_previews .gallery-image_class_canvas
{
  border          : 1px dotted red;
  background-color: #fff0f0;
  display         : inline-block;
  position        : relative;
}

.gallery-photo_previews .gallery-image_class_canvas img {
  vertical-align: top;
}

/************************************
 * GalleryView
 ************************************/
.gallery_view
{
/*display: flex !important;
  flex-wrap: wrap !important;*/
}

.gallery_toolbar {
}
.gallery_toolbar .save {
}
.gallery_toolbar .upload {
}
.gallery_toolbar .with_selected
{
  margin-left : 3%;
  margin-right: 3%;
}

/************************************
 * gallery_editor
 ************************************/
.gallery_editor {
  min-height: 350px;
}
/* HTML4 themes should override this with content-box. */
.gallery_editor,
.gallery_editor .ui-layout-pane {
  box-sizing: border-box;
}

.gallery_editor .zoom_slider
{
  width      : 300px;
  display    : inline-block;
  float      : right;
  margin-left: 3%;
}
@media screen and (max-width: 767px)
{
  .gallery_editor .with_selected {
    max-width: 45%;
  }

  .gallery_editor .zoom_slider {
    width: 50%;
  }

  #gallery_photo_src-queue.uploadifyQueue {
    width: auto;
  }
}

.gallery_editor_empty
{
  color    : #555;
  font-size: 1.25em;
  margin   : 1em 2em;
}
.gallery_editor_uploader {
  display : none;
}

.gallery_editor .gallery_photo_editor .gallery_photo_properties {
  padding: 0.5em 0.5em 1.5em 0.5em;
}
.gallery_editor .gallery_photo_editor .gallery_photo_previews {
  padding: 0.5em 0.5em 1.5em 0.5em;
}
.gallery_photo_editor .gallery_photo_properties .form * {
  box-sizing: border-box;
}
.gallery_photo_editor .gallery_photo_properties .form-row {
  margin: 0.2em 0;
}
.gallery_photo_editor .gallery_photo_properties .field_label
{
  font-size: 0.8em;
  padding: 0;
}
.gallery_photo_editor .gallery_photo_properties .field_value {
  padding: 0;
}
.gallery_photo_editor .gallery_photo_properties .field_value * {
  font-size: 0.9em;
}
.gallery_editor button,
.gallery_editor input[type="file"],
.gallery_editor input[type="submit"],
.gallery_editor .ui-button {
  font-size: 0.9em;
}

.gallery_photo_editor a,
.gallery_photo_editor a:hover,
#site_content .gallery_photo_editor a,
#site_content .gallery_photo_editor a:hover
{
  color          : #000;
  font-size      : 0.8em;
  font-weight    : bold;
  text-decoration: none;
}

.photo_control,
.photo_control_placeholder
{
  background-color     : white;
  border-color         : transparent;
  border-radius        : 10px;
  -moz-border-radius   : 10px;
  -webkit-border-radius: 10px;
  border-style         : solid;
  border-width         : 3px;
  cursor               : pointer;
  display              : inline-block;
  height               : auto;
  margin               : 0.1em;
  padding              : 0 10px;
  position             : relative;
  vertical-align       : top;
  width                : 100px;
}

.photo_control_placeholder
{
  border-color         : #ccc;
  border-style         : dotted;
  border-width         : 3px;
  height               : 100px;
  width                : 100px;
}

/* Control states: */
.photo_control-multiselected
{
  background-color: #DBF7FF;
  border-color    : #B9DBE3;
}
.photo_control-hover {
  border-color    : #ccc;
}
.photo_control-selected {
  border-color    : #aaa;
}
.photo_control-modified {
  background-color: #fcc;
}

.photo_control .photo_img
{
  display         : table-cell;
  padding         : 10px 0 5px 0;
  text-align      : center;
  vertical-align  : bottom;

  width           : 100px; /* set to imgClass[gallery-editor-thumb][height] * 0.5 */
  height          : 100px; /* set to imgClass[gallery-editor-thumb][height] * 0.5 */
}
.photo_control .photo_img img {
  position        : relative;
}

.photo_control .photo_props
{
  display         : block;
  padding         : 5px 0 5px 0;
  text-align      : left;
  height          : 3.5em; /* 3 lines */
}
.photo_control .photo_meta
{
  display         : block;
  padding         : 5px 0 10px 0;
  text-align      : left;
  height          : 2.5em; /* 2 lines */
}

.photo_control .photo_control_selector
{
  display  : none;
  position : absolute;
  top      : 0;
  right    : 0;
  height   : 2em;
  width    : 2em;
}

.gallery_view .photo_name,
.gallery_view .photo_caption,
.gallery_view .photo_description
{
  height          : 1em;
  text-align      : left;

  white-space     : nowrap;
  overflow        : hidden;
  text-overflow   : ellipsis;  /* IE 6+, FF 7+, Op 11+, Saf 1.3+, Chr 1+ */
  -o-text-overflow: ellipsis;  /* for Opera 9 & 10 */
}

.photo_control .photo_name,
.photo_control .photo_caption,
.photo_control .photo_description,
.photo_control .photo_size,
.photo_control .photo_dimensions
{
  font-size       : 8pt;
  height          : 1.6em;
  margin          : 1px 0;
}
.photo_control .photo_size,
.photo_control .photo_dimensions
{
  color           : #555;
  font-style      : normal;
  overflow        : hidden;
  white-space     : nowrap;
}

.photo_control .photo_name:empty,
.photo_control .photo_caption:empty,
.photo_control .photo_description:empty
{
  background-color: #fafafa;
  position        : relative;
  box-sizing      : border-box;
}
.photo_control .photo_name:empty::before,
.photo_control .photo_caption:empty::before,
.photo_control .photo_description:empty::before
{
  font-style : italic;
  font-weight: normal;
  color      : #bbb;
  padding    : 0 0.2em;
  text-align : center;
  width      : 100%;
  box-sizing : border-box;
  position   : absolute;
}
.photo_control .photo_name:empty::before {
  content: "Name";
}
.photo_control .photo_caption:empty::before {
  content: "Caption";
}
.photo_control .photo_description:empty::before {
  content: "Description";
}

.gallery_photo_properties input,
.gallery_photo_properties textarea,
.gallery_photo_properties select {
  width           : 100% !important;
}
.gallery_photo_properties input[type="submit"] {
  width: auto !important;
  margin-top: 1em;
}

.gallery_view
{
  border  : 1px solid #ddd;
  padding : 10px;
  overflow: auto;
}
.gallery_toolbar {
  padding         : 0 0 10px 0;
}
.gallery_footer {
  padding         : 10px 0 0 0;
}
