#upload .ax-browse-c:hover, #upload .ax-upload-all:hover, #upload .ax-clear:hover {
  opacity: 0.9; 
  filter: alpha(opacity=90);
}
.refalbum_listlink, .refalbum_listlink:hover, .refalbum_listlink:active {
  text-decoration: none;
}
.refalbum_btn
{
  color: #000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.galleri_fig figcaption { padding: 5px 3px; margin: 10px 0; float: left; width: 100%;}
.refalbum_listimg
{
  box-shadow: 0px 10px 12px 0px rgba(62,57,51,.1);
  height: 140px!important;
  overflow: hidden;
  position: relative;
  margin-top: 23px;
}

.refalbum_listlink div img,
.refalbum_listimg img
{
  border: none;
}

.refalbum_title
{
  height: 15px;
  text-align: left
}

.refalbum_imgcount
{
  color: #cccccc;
  text-align: center;
}

.refalbum_details
{
  width: 100%;
  text-align: center;
}

.refalbum_titledetail
{
  text-align: left;
  font-size: 11pt;
  font-weight: normal;
}

.refalbum_descdetail
{
  text-align: center;
  text-align: left;
}

.prioon
{
  background-color: #0f0;
  -moz-border-radius: 6px / 6px;
  -webkit-border-radius: 6px / 6px;
  border-radius: 0px / 0px;
}

.refalbum_editbtn
{
  margin: 6px 0 0 0;
  padding: 0 0 6px 0;
  border-bottom: 1px solid #aaaaaa;
}

/***********/

#tab1 b {font-weight: normal !important;}

.refsys_adminheader
{
  border-bottom: 1px solid #000000;
}

.refsys_itemtable
{
  width: 100%;
}

ul.editmenu
{
  height: 21px;
  margin: 8px 0 0 0;
  padding: 0;
  white-space: nowrap;
  border-bottom: 1px solid #000000;
}

ul.editmenu li
{
  margin: 0 0 0 10px;
  padding: 0;
  list-style: none;
  line-height: 20px;
  background-color: #dddddd;
  border: 1px solid #000000;
  border-radius: 3px 3px 0 0 / 3px 3px 0 0;
  float: left;
  cursor: pointer;
}

ul.editmenu li span
{
  padding: 0 6px 0 6px;
  color: #000000;
}

ul.editmenu li.editmenucurrent
{
  background-color: #ffffff;
  border-bottom: 1px solid #ffffff;
}

.edittab_off
{
  display: none;
}

.edittab_on
{
  padding: 4px;
  border: 1px solid #000000;
  border-top: 0px none;
  background: #ffffff;
  display: block;
}

.refnews_edit fieldset
{
  margin-bottom: 10px;
  background-color: #f3f3f3;
}

.refnews_edit legend
{
  font-weight: normal;
}

#prio
{
  position: absolute;
}

#upload
{
  min-height: 100px;
}
#upload ul, #upload ul li { 
  width:100%;
  float:left;
  height:auto;
}
.refalbum_listimg img {
  max-width:none!important;
}
form[name="album"], form[name="album"] table, form[name="album"] tbody, form[name="album"] tr {
  width:100%;
  height:auto;
}
#outerImageContainer {
  max-width:100%;
}
/*#lightbox #imageContainer, #lightbox #imageContainer img#lightboxImage {
width:100%!important;
height:auto!important;
}*/
#lightbox #imageContainer{
  width: auto!important;
  height: auto!important;
  max-width: 97vw;
  max-height: 97vh;
}
#lightbox #imageContainer img#lightboxImage {
  width:auto!important;
  height:auto!important;
/*  max-width:100%!important;
max-height:100%!important;*/
max-height: inherit;
/*max-width: inherit;*/
}
#lightbox {
  max-width:97vw;
  max-height:97vh;
  width:auto!important;
  margin-left:auto;
  margin-right:auto;
  left:-9999px!important;
  right:-9999px!important;
}

img#lightboxImage {
  box-shadow: 3px 3px 30px rgba(0,0,0,.2);

}
#lightbox {
  z-index: 9999999!important;
}
#outerImageContainer {
  max-width: 100%!important;
  /*height:auto!important;*/
}
.albumimagesrow {
  width:100%;
  display: block;
  clear:both;
  float: left;
  margin-bottom: 30px;
}

}
#hoverNav a#nextLink, #hoverNav a#prevLink {
  max-height:100%;
}

.edittab_on .refalbum_listdiv {
  width:25%;
  min-width: 170px;
  float:left;
  height:auto;
  overflow:hidden;
}
.ax-uploader a:hover, #content .ax-uploader a:hover {
  color:black;
}
.refalbum_imgdiv {
  height:auto;
  border-radius: 10px;
  height: auto;
  max-height: 155px;
}
.refalbum_imgdiv_outer {
  border-radius: 10px;
  height:155px;
  overflow:hidden;
}
.refalbum_imgdiv img {
  border-radius: 10px;
  width:100%;
  height:auto;

}
.refalbum_details .refalbum_listimg {
  width:100%;
  height:100%;
  overflow:hidden;
}
.refalbum_details .refalbum_listdiv {
  height:140px;
  overflow:hidden;
  margin-bottom:20px;
}

.refalbum_details .refalbum_listdiv img {
  width:auto;
  height:100%;
}
.refalbum_details p {
  text-align: left!important;
}
.galleri_fig {
  overflow:hidden;
  position:relative;
  margin-bottom:3px;
  /*height:150px;*/
  padding:5px;
}
.galleri_fig img {
  margin-left:auto;
  margin-right:auto;
  display:block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.galleri_fig img, .refalbum_listimg img {
  width: 100%;
  height: auto;
  position: absolute;
  top: -9999px;
  bottom: -9999px;
  left: -9999px;
  right: -9999px;
  margin: auto;
}
.gal_img_hid {
  display: inline-block;
  position: relative;
  width: 20%;
  overflow:hidden;
}
.galleri_fig_landscape, .galleri_fig_portrait, .galleri_fig_square {
  width:20%;
  width:33%;
  float:left;
}
.gal_img_hid_landscape {
  width:25%;
  width:33%;
}
.gal_img_hid_landscape, .gal_img_hid_portrait, .gal_img_hid_square {
  width:100%;
  float:left;
}
.gal_img_hid {
  max-height: 240px;
}
.gal_img_hid:after {
  content: '';
  display: block;
  margin-top: 150%;
}
.gal_img_hid_square:after {
  margin-top:100%;
}
.gal_img_hid_portrait:after {
  margin-top: 150%;
}
.gal_img_hid_landscape:after {
  margin-top:75%;

}
.galleri_fig img {
  width:100%;
  height:auto;
}
.galleri_fig img.wideimg {
  height:100%;
  width:auto;
  max-width:none!important;
}
html #outerImageContainer {
  position: relative;
  background-color: #fff;
  background-color: transparent;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  height: auto!important;
  width: auto!important;
}



@media all and (min-width: 992px) { /* Desktops */ 
  .albumimagesrow a:nth-child(3n+1) .galleri_fig, .gal_list_row a:nth-child(3n+1) .galleri_fig {
    clear:both;
  }
}

@media all and (min-width: 992px) and (max-width: 1200px) { /* small to big screens */
  .gal_img_hid {
    max-height: 190px;
  }
}

@media all and (min-width: 768px) and (max-width: 991px) { /* Tablets */ 
  #outerImageContainer {
    height:auto!important;
    min-height:250px;
    max-width: 90%!important;
  }
  .gal_img_hid {
    max-height: 150px;
  }

  .gal_list_row .refalbum_listdiv:nth-child(3n+1) {
    clear:both;
  }

  .albumimagesrow a:nth-child(3n+1) .galleri_fig, .gal_list_row a:nth-child(3n+1) .galleri_fig {
    clear:both;
  }
  .galleri_fig_landscape, .galleri_fig_portrait, .galleri_fig_square {
    width:33.3333%;
  }

}
@media all and (max-width: 767px) { /* Phones */ 
  .gal_img_hid {
    max-height: 150px;
  }
  #outerImageContainer {
    height:auto!important;
    max-width: 90%!important;
    min-height:200px;
  }

  .albumimagesrow a:nth-child(2n+1) .galleri_fig, .gal_list_row a:nth-child(2n+1) .galleri_fig {
    clear:both;
  }
  .refalbum_details .refalbum_listdiv {
    height:100px;
  }
  .gal_list_row .refalbum_listdiv:nth-child(2n+1) {
    clear:both;
  }

  .galleri_fig_landscape, .galleri_fig_portrait, .galleri_fig_square {
    width:50%;
  }


  @media all and (max-width: 500px) { /* 500- */ 
    .albumimagesrow .galleri_fig, .gal_list_row .galleri_fig {
      clear:both;
    }
    .galleri_fig_landscape, .galleri_fig_portrait, .galleri_fig_square {
      width:100%;
    }

    .gal_list_row .refalbum_listdiv {
      width:100%;
    }
    .albumimagesrow .refalbum_listdiv {
      width:50%;
      height: 120px;
      margin-bottom: 20px;
      overflow: hidden;
    }

  }

}
#outerImageContainer #bottomNavClose {
  top: -14px;
  right: -14px;
  cursor: pointer;
  position: absolute;
  z-index: 999;
}