/* breakpoints */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../Images/overlay-bg.png);
  z-index: 9999;
  display: none;
  text-align: center;
  width: 100%; }
  .overlay.component {
    margin: 0; }
  .overlay > .component-content {
    border-radius: 5px;
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    background-color: #E6E6E6;
    padding: 10px 10px 25px;
    margin: 100px auto auto auto;
    max-width: 90%;
    background: #f7f7f7;
    left: 0;
    right: 0;
    overflow: hidden; }
    .overlay > .component-content .component {
      margin: 0; }
      .overlay > .component-content .component.image img {
        width: 100%; }
  .overlay .overlay-inner {
    min-width: 25px;
    max-height: inherit;
    height: inherit;
    overflow: auto; }
    .overlay .overlay-inner.overlay-percent {
      max-height: 100%;
      height: auto; }
    .overlay .overlay-inner #InnerCenter {
      width: auto;
      height: auto; }
  .overlay .overlay-inner:focus {
    border: 1px solid #cccccc; }
  .overlay .overlay-close {
    bottom: 8px;
    color: #000;
    cursor: pointer;
    font-size: 30px;
    position: absolute;
    right: -5px;
    bottom: -15px; }
  .overlay .overlay-close-link:focus {
    color: #cccccc; }
  .overlay .overlay-close-link:hover {
    color: #cccccc; }
  .overlay .overlay-close-link {
    text-decoration: none; }

/* this css class is used on overlay page */
.overlay-page {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../Images/overlay-bg.png);
  z-index: 9999;
  text-align: center;
  width: 100%;
  margin: 0; }
  .overlay-page > .component-content {
    display: inline-block;
    vertical-align: middle;
    zoom: 1;
    *display: inline;
    background-color: #E6E6E6;
    border-radius: 5px;
    position: relative;
    padding: 10px 10px 25px;
    margin: 100px 60px 60px;
    max-width: 90%;
    background: #f7f7f7; }
    .overlay-page > .component-content .component {
      margin: 0; }
      .overlay-page > .component-content .component.image img {
        width: 100%; }
  .overlay-page .overlay-inner {
    min-width: 25px;
    height: inherit;
    max-height: inherit;
    min-height: 135px;
    overflow: auto; }
    .overlay-page .overlay-inner.overlay-percent {
      max-height: 100%;
      height: auto; }
      .overlay-page .overlay-inner.overlay-percent.edit {
        max-height: inherit; }
  .overlay-page .overlay-inner:focus {
    border: 1px solid #cccccc; }
  .overlay-page .overlay-close {
    bottom: 8px;
    color: #000;
    cursor: pointer;
    font-size: 30px;
    position: absolute;
    right: -5px;
    bottom: -15px; }
  .overlay-page .overlay-close-link:focus {
    color: #cccccc; }
  .overlay-page .overlay-close-link:hover {
    color: #cccccc; }
  .overlay-page .overlay-close-link {
    text-decoration: none; }

#wrapper.overlay-page {
  margin-bottom: -80px; }

body.preview .overlay-page {
  position: fixed; }

.overlay-page .main {
  width: 100%; }

.on-page-editor .overlay .overlay-inner {
  margin: auto; }

.on-page-editor .overlay-page {
  z-index: 9000; }
