/* 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-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: calc($grid-gutter-width / 4);
  padding-right: calc($grid-gutter-width / 4);

  @for $ce-columns from 1 through 8 {
    [data-ce-columns="#{$ce-columns}"] & {
      @include make-col(calc($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-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-bullets {
  @extend .list-featured;
}


// Frames

.section > .frame {
  @extend .container;
}

.section > .frame + .frame:not([class~="frame-space-before"]) {
  margin-top: map-get($frame-spacers, medium);
}

.frame .frame + .frame:not([class~="frame-space-before"]) {
  margin-top: 3rem;
}

.frame {
  &-primary, &-primary-light, &-secondary, &-secondary-light, &-background-grey {
    padding-top: clamp(calc($grid-gutter-width * 1.5), 4vw, calc($spacer * 5));
    padding-bottom: clamp(calc($grid-gutter-width * 1.5), 4vw, calc($spacer * 5));
  }

  &-primary {
    padding: calc($grid-gutter-width / 2);
    background-color: $primary;

    &, * {
      color: #fff;
    }
  }

  &-primary-light {
    padding: calc($grid-gutter-width / 2);
    background-color: $primary-light;
  }

  &-secondary {
    padding: calc($grid-gutter-width / 2);
    background-color: $secondary;
  }

  &-secondary-light {
    padding: calc($grid-gutter-width / 2);
    background-color: scale_color($secondary, $lightness: 90%);
  }

  &-background-grey {
    background-color: $gray-200;
  }

}




/* 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%;
}
