/* default styles for extension "tx_frontend" */
.ce-align-left {
  text-align: left;
}

.ce-align-center {
  text-align: center;
}

.ce-align-right {
  text-align: right;
}

.ce-table td, .ce-table th {
  vertical-align: top;
}


.ce-textpic, .ce-image, .ce-nowrap .ce-bodytext, .ce-gallery, .ce-row, .ce-uploads li, .ce-uploads div {
  overflow: hidden;
}

//.ce-left .ce-gallery, .ce-column { float: left; }
//.ce-center .ce-outer { position: relative; float: right; right: 50%; }
//.ce-center .ce-inner { position: relative; float: right; right: -50%; }
//.ce-right .ce-gallery { float: right; }

.ce-center {
  margin-left: auto;
  margin-right: auto;
}

.ce-image {
  //width: 100%;
}

.ce-gallery {

  figure {

  }

  figcaption {

  }

  img {


  }

  iframe {
    border-width: 0;
  }

}

.ce-border img,
.ce-border iframe {
  border: 2px solid #000000;
  padding: 0px;
}

.ce-intext.ce-right .ce-gallery, .ce-intext.ce-left .ce-gallery, .ce-above .ce-gallery {
  margin-bottom: $grid-gutter-width;
}

.ce-intext.ce-right .ce-gallery {
  margin-left: $grid-gutter-width;
}

.ce-intext.ce-left .ce-gallery {
  margin-right: $grid-gutter-width;
}

.ce-below .ce-gallery {
  margin-top: $grid-gutter-width;
}

.ce-column {
  @include make-col-ready();
  //padding-left: $grid-gutter-width/4;
  //padding-right: $grid-gutter-width/4;


  @for $ce-columns from 1 through 8 {
    [data-ce-columns="#{$ce-columns}"] & {
      @include make-col($grid-columns / $ce-columns);
    }
  }


}

.ce-row {
  @include make-row();

  &:last-child {
    margin-bottom: 0;
  }
}


.ce-above .ce-bodytext {
  clear: both;
}

.ce-intext.ce-left ol, .ce-intext.ce-left ul {
  padding-left: 40px;
  overflow: auto;
}

/* Headline */
.ce-headline-left {
  text-align: left;
}

.ce-headline-center {
  text-align: center;
}

.ce-headline-right {
  text-align: right;
}

/* Uploads */
.ce-uploads {
  @include list-unstyled;

}

.ce-uploads-icon {
  margin-left: -2em;
  position: absolute;
  line-height: inherit !important;

}

.ce-uploads-title {
  clear: both;
  //font-weight: bold;
}

.ce-uploads-item {
  padding-left: 2em;

  + .ce-uploads-item {
    margin-top: .5em;
    padding-top: .5em;
    border-top: 1px solid lighten($body-color, 60%);
  }
}

.ce-uploads-description {
  font-size: small;
}

.ce-uploads-downloadname {
  font-size: small;
  font-weight: bold;
}


/* Table */
.ce-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.ce-table th, .ce-table td {
  width: 25%;
  padding: 0.5em 0.75em;
  vertical-align: top;
  border-top: 1px solid $gray-400;

  &:first-child {
    padding-left: 0;
  }

  &:last-child {
    padding-right: 0;
  }
}

.ce-table thead th {
  border-bottom: 2px solid $gray-400;
}

.ce-table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, .05);
}

.ce-table-bordered th, .ce-table-bordered td {
  border: 1px solid $gray-400;
}


/* Space */

.ce + .ce {
  margin-top: $grid-gutter-width;
}
.space-before {
  &-none {
    margin-top: 0;
    padding-top: 0;
  }

  &-extra-small {
    margin-top: $spacer / 8;
    padding-top: $spacer / 8;
  }

  &-small {
    margin-top: $spacer / 4;
    padding-top: $spacer / 4;
  }

  &-medium {
    margin-top: $spacer / 2;
    padding-top: $spacer / 2;
  }

  &-large {
    margin-top: $spacer * 1;
    padding-top: $spacer * 1;
  }

  &-extra-large {
    margin-top: $spacer * 1.5;
    padding-top: $spacer * 1.5;
  }
}

.space-after {
  &-extra-small {
    margin-bottom: $spacer / 8;
    padding-bottom: $spacer / 8;
  }

  &-none {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  &-small {
    margin-bottom: $spacer / 4;
    padding-bottom: $spacer / 4;
  }

  &-medium {
    margin-bottom: $spacer / 2;
    padding-bottom: $spacer / 2;
  }

  &-large {
    margin-bottom: $spacer * 1;
    padding-bottom: $spacer * 1;
  }

  &-extra-large {
    margin-bottom: $spacer * 1.5;
    padding-bottom: $spacer * 1.5;
  }
}

/* Frame */
.frame {
  .frame-ruler-before:before {
    content: '';
    display: block;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    margin-bottom: 2em;
  }

  .frame-ruler-after:after {
    content: '';
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    margin-top: 2em;
  }

  .frame-indent {
    margin-left: 15%;
    margin-right: 15%;
  }

  .frame-indent-left {
    margin-left: 33%;
  }

  .frame-indent-right {
    margin-right: 33%;
  }
}
