/*
 * Lexxy rendered content styles
 */

.lexxy-content {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.lexxy-content * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.lexxy-content h1 {
  font-size: 1.2em;
  line-height: 1.2;
}

.lexxy-content p {
  margin-bottom: 1em;
}

.lexxy-content blockquote {
  border: 0 solid #ccc;
  border-left-width: 0.3em;
  margin-left: 0.3em;
  padding-left: 0.6em;
}

.lexxy-content li {
  margin-left: 1em;
}

.lexxy-content pre {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  font-family: monospace;
  font-size: 0.9em;
  padding: 0.5em;
  white-space: pre;
  background-color: #eee;
  overflow-x: auto;
}

.lexxy-content img {
  max-width: 100%;
  height: auto;
}

.lexxy-content .attachment {
  display: inline-block;
  position: relative;
  max-width: 100%;
}

.lexxy-content .attachment a {
  color: inherit;
  text-decoration: none;
}

.lexxy-content .attachment a:hover,
.lexxy-content .attachment a:visited:hover {
  color: inherit;
}

.lexxy-content .attachment__caption {
  text-align: center;
}

.lexxy-content .attachment__caption .attachment__name + .attachment__size::before {
  content: ' \2022 ';
}

.lexxy-content .attachment--preview {
  width: 100%;
  text-align: center;
}

.lexxy-content .attachment--preview .attachment__caption {
  color: #666;
  font-size: 0.9em;
  line-height: 1.2;
}

.lexxy-content .attachment--file {
  color: #333;
  line-height: 1;
  margin: 0 2px 2px 2px;
  padding: 0.4em 1em;
  border: 1px solid #bbb;
  border-radius: 5px;
}

.lexxy-content .attachment-gallery {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.lexxy-content .attachment-gallery .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.lexxy-content .attachment-gallery.attachment-gallery--2 .attachment,
.lexxy-content .attachment-gallery.attachment-gallery--4 .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

/* Override for action-text-attachment wrapper */
.lexxy-content .attachment-gallery > action-text-attachment,
.lexxy-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.lexxy-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.lexxy-content .attachment-gallery.attachment-gallery--2 > .attachment,
.lexxy-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.lexxy-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.lexxy-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
