#encantadia-sticky-header{
  display: block;
  opacity: 1;
}

body{
  background-image: none;
}

#wrapper{
  background-image: url(/gma/assets/encantadia/microsite/videos/encantadia.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Gallery inside css */
.gallery-inside .modal{
  display: block !important;
  margin: 0 auto;
}


#galleries-section{
  background-color: rgba(153, 141, 97, 0.6);
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  min-height: 540px;
  position: relative;
  box-sizing: border-box;
}


#galleries-section-content{
  box-sizing: border-box;
}

.photo-list-items{
  float: left;
  box-sizing: border-box;
  margin: 2px;
  position: relative;
  height: 250px;
  width: 290px;
  min-width: 270px;
  max-width: 400px;
}


.grid-item--width2{
  float: left;
  width: 49%;
  box-sizing: border-box;
  max-width: 700px;
  margin: 5px;
  height: 498px;
  text-align: center;
  min-width: 250px;
}


.photo-image-bg{
  width: 100%;
  height: 250px;
}

.photo-image{
  width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.photo-desc a {
  color: #fff;
}

.photo-desc{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  height: 80px;
  box-sizing: border-box;
  padding: 10px 10px 7px;
  overflow: hidden;
}


.grid-item--width2 .desktop-ad{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin: auto;
  width: 300px;
  height: 250px;
}

.gallery-page-features{
  min-height: 400px;
}

.featured-galleries{
  background-position: center center;
  background-size: 100%;
  background-repeat: no-repeat;
  float: left;
  margin: 2px;
  position: relative;
}

.featured-galleries-group{
  float: left;
  width: 590px;
}
.featured-galleries-group .featured-galleries{
  display: block;
}


#featured3{
  float: right;
}

.featured-galleries-group {
  width: 49.7%;
}

#featured1, #featured2 {
  width: 100%;
  height: 246px;
}

#featured3, #featured4 {
  width: 49.7%;
  height: 497px;
  margin-top: 1px;
}

#featured5, #featured6 {
  width: 49.4%;
  height: 496px;
}

#featured6{
  margin-right: 0;
}

.ads-container-gallery{
  position: fixed;
  bottom: 0;
  height: 100px;
  /*max-width: 970px;*/
  right: 0;
  left: 0;
  z-index: 1;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  #galleries-section-content{
    width:100%;
  }

  .photo-list-items{
    height: 250px;
    width: 247px;
    min-width: 247px;
    max-width: 247px;
  }


  .grid-item--width2 {
    float: left;
    width: 48%;
    box-sizing: border-box;
    max-width: 700px;
    margin: 2px;
    height: 503px;
    text-align: center;
    min-width: 250px;
  }

}

@media (max-width: 768px) {
  #gallery-page-features{
    display: none !important;
  }

  #galleries-section-content{
    width:100%;
  }

  .featured-galleries-group {
    width: 49.5%;
  }

  #featured1, #featured2 {
    width: 100%;
    height: 188px;
  }

  #featured3, #featured4 {
    width: 49.5%;
    height: 381px;
  }

  #featured5, #featured6 {
    width: 49%;
    height: 380px;
    margin-bottom: 0;
  }

  #featured6{
    margin-right: 0;
  }

  .photo-list-items{
    box-sizing: border-box;
    min-width: 368px;
  }


  .grid-item--width2{
    float: left;
    height: 250px;
    text-align: center;
    width: 300px;
    margin: 2px;
  }

}

@media (max-width: 760px) {

  .photo-list-items{
    width: 100%;
    min-width: 100%;
  }
}


