
.attachment {
    position: relative
}

.attachment--preview:not(.attachment--remote) img {
    border: 0
}

.attachment--lightboxable:not(.attachment--pdf) img:hover {
    cursor: pointer
}

.attachment--file.attachment--linked,
.attachment--file.attachment--downloadable,
action-text-attachment .attachment--file {
    background-color: var(--color-bg--surface-glint);
    border-radius: 10px;
    position: relative;
    width: calc(25% - 10px);
    border: 0;
    padding: 0 !important;
    margin: 0 6px 6px 0 !important;
    min-width: 150px;
    max-width: 200px
}

.attachment--file.attachment--linked .attachment__name,
.attachment--file.attachment--downloadable .attachment__name,
action-text-attachment .attachment--file .attachment__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block
}

.attachment--file.attachment--linked::before,
.attachment--file.attachment--downloadable::before,
action-text-attachment .attachment--file::before {
    content: "";
    display: block;
    padding-top: 45%
}

.attachment--file.attachment--linked::after,
.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--file::after {
    background: url("icons/attachments/text-files.svg") center 1.5em/25% no-repeat;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 0
}

.attachment--jpg.attachment--file.attachment--linked::after,
.attachment--jpg.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--jpg.attachment--file::after,
.attachment--jpeg.attachment--file.attachment--linked::after,
.attachment--jpeg.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--jpeg.attachment--file::after,
.attachment--png.attachment--file.attachment--linked::after,
.attachment--png.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--png.attachment--file::after,
.attachment--gif.attachment--file.attachment--linked::after,
.attachment--gif.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--gif.attachment--file::after,
.attachment--psd.attachment--file.attachment--linked::after,
.attachment--psd.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--psd.attachment--file::after {
    background-image: url("icons/attachments/images.svg")
}

.attachment--pdf.attachment--file.attachment--linked::after,
.attachment--pdf.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--pdf.attachment--file::after {
    background-image: url("icons/attachments/pdfs.svg")
}

.attachment--doc.attachment--file.attachment--linked::after,
.attachment--doc.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--doc.attachment--file::after,
.attachment--docx.attachment--file.attachment--linked::after,
.attachment--docx.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--docx.attachment--file::after,
.attachment--pages.attachment--file.attachment--linked::after,
.attachment--pages.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--pages.attachment--file::after,
.attachment--txt.attachment--file.attachment--linked::after,
.attachment--txt.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--txt.attachment--file::after,
.attachment--odt.attachment--file.attachment--linked::after,
.attachment--odt.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--odt.attachment--file::after {
    background-image: url("icons/attachments/documents.svg")
}

.attachment--csv.attachment--file.attachment--linked::after,
.attachment--csv.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--csv.attachment--file::after,
.attachment--xls.attachment--file.attachment--linked::after,
.attachment--xls.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--xls.attachment--file::after,
.attachment--xlsx.attachment--file.attachment--linked::after,
.attachment--xlsx.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--xlsx.attachment--file::after,
.attachment--numbers.attachment--file.attachment--linked::after,
.attachment--numbers.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--numbers.attachment--file::after,
.attachment--ods.attachment--file.attachment--linked::after,
.attachment--ods.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--ods.attachment--file::after {
    background-image: url("icons/attachments/spreadsheets.svg")
}

.attachment--ppt.attachment--file.attachment--linked::after,
.attachment--ppt.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--ppt.attachment--file::after,
.attachment--pptx.attachment--file.attachment--linked::after,
.attachment--pptx.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--pptx.attachment--file::after,
.attachment--keynote.attachment--file.attachment--linked::after,
.attachment--keynote.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--keynote.attachment--file::after,
.attachment--odp.attachment--file.attachment--linked::after,
.attachment--odp.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--odp.attachment--file::after {
    background-image: url("icons/attachments/presentations.svg")
}

.attachment--mp4.attachment--file.attachment--linked::after,
.attachment--mp4.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--mp4.attachment--file::after,
.attachment--mov.attachment--file.attachment--linked::after,
.attachment--mov.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--mov.attachment--file::after,
.attachment--avi.attachment--file.attachment--linked::after,
.attachment--avi.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--avi.attachment--file::after,
.attachment--mp3.attachment--file.attachment--linked::after,
.attachment--mp3.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--mp3.attachment--file::after,
.attachment--m4v.attachment--file.attachment--linked::after,
.attachment--m4v.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--m4v.attachment--file::after {
    background-image: url("icons/attachments/media.svg")
}

.attachment--zip.attachment--file.attachment--linked::after,
.attachment--zip.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--zip.attachment--file::after,
.attachment--rar.attachment--file.attachment--linked::after,
.attachment--rar.attachment--file.attachment--downloadable::after,
action-text-attachment .attachment--rar.attachment--file::after {
    background-image: url("icons/attachments/zip-files.svg")
}

.attachment__caption {
    color: var(--color--txt);
    margin: .625em 1.25em;
    text-align: center;
    font-weight: 500;
    font-size: .875em;
    line-height: 1.2
}

@media(min-width: 40em) {
    .attachment__caption {
        font-size: .75em;
        line-height: 1.3
    }
}

.attachment__caption .attachment__name,
.attachment__caption .attachment__source {
    display: block
}

.attachment__caption .attachment__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.attachment__caption .attachment__source {
    font-weight: normal;
    max-height: 2.6em;
    padding-bottom: .2em;
    overflow-y: hidden
}

.attachment__caption .attachment__size {
    color: var(--color-txt--subtle-on-message-content);
    font-weight: normal
}

.attachment--preview .attachment__caption .attachment__name {
    display: inline;
    white-space: normal
}

.attachment--preview .attachment__caption .attachment__name+.attachment__size::before {
    content: " · "
}

.attachment--file .attachment__caption .attachment__name+.attachment__size::before {
    content: ""
}

.attachment__file-link {
    text-indent: -9999em;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1
}

.attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    gap: 4px
}

.attachment-gallery .attachment {
    flex: 1 0 33%;
    margin: 0 0 1em;
    max-width: calc(33% - 10px)
}

.attachment-gallery--2.attachment-gallery .attachment,
.attachment-gallery--4.attachment-gallery .attachment {
    flex-basis: 50%;
    max-width: calc(50% - 10px)
}

action-text-attachment {
    display: contents
}

.attachment {
    display: inline-block;
    padding: 0
}

.attachment a,
.attachment a:hover,
.attachment a:visited:hover {
    color: inherit;
    text-decoration: none
}

.attachment--preview:not(.attachment--remote) {
    width: 100%;
    text-align: center;
    margin: .625em 0
}

.attachment--preview:not(.attachment--remote) img {
    border: 1px solid var(--color-border);
    vertical-align: middle;
    width: auto;
    max-width: calc(100% - 2px);
    max-height: 64rem
}

.attachment--lightboxable img {
    cursor: zoom-in
}

.attachment.attachment--remote {
    display: inline
}

.attachment.attachment--remote .attachment__caption {
    display: none
}

.trix-content h1 {
    font-size: 1.4em
}

.trix-content img {
    max-width: 100%
}

.trix-content img[width] {
    width: auto;
    display: block;
    margin: auto
}

.trix-content img[width][height] {
    height: auto
}

.attachment--file.attachment--linked,.attachment--file.attachment--downloadable,action-text-attachment .attachment--file {
    background-color: var(--color-bg--surface-glint);
    border-radius: 10px;
    position: relative;
    width: calc(25% - 10px);
    border: 0;
    padding: 0 !important;
    margin: 0 6px 6px 0 !important;
    min-width: 150px;
    max-width: 200px
}

.attachment--file.attachment--linked .attachment__name,.attachment--file.attachment--downloadable .attachment__name,action-text-attachment .attachment--file .attachment__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block
}

.attachment--file.attachment--linked::before,.attachment--file.attachment--downloadable::before,action-text-attachment .attachment--file::before {
    content: "";
    display: block;
    padding-top: 45%
}



.attachment__caption {
    color: var(--color--txt);
    margin: .625em 1.25em;
    text-align: center;
    font-weight: 500;
    font-size: .875em;
    line-height: 1.2
}

@media(min-width: 40em) {
    .attachment__caption {
        font-size:.75em;
        line-height: 1.3
    }
}

.attachment__caption .attachment__name,.attachment__caption .attachment__source {
    display: block
}

.attachment__caption .attachment__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.attachment__caption .attachment__source {
    font-weight: normal;
    max-height: 2.6em;
    padding-bottom: .2em;
    overflow-y: hidden
}

.attachment__caption .attachment__size {
    color: var(--color-txt--subtle-on-message-content);
    font-weight: normal
}

.attachment--preview .attachment__caption .attachment__name {
    display: inline;
    white-space: normal
}

.attachment--preview .attachment__caption .attachment__name+.attachment__size::before {
    content: " · "
}

.attachment--file .attachment__caption .attachment__name+.attachment__size::before {
    content: ""
}

.attachment__file-link {
    text-indent: -9999em;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1
}

.attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    gap: 4px
}

.attachment-gallery .attachment {
    flex: 1 0 33%;
    margin: 0 0 1em;
    max-width: calc(33% - 10px)
}

.attachment-gallery--2.attachment-gallery .attachment,.attachment-gallery--4.attachment-gallery .attachment {
    flex-basis: 50%;
    max-width: calc(50% - 10px)
}

action-text-attachment {
    display: contents
}

.attachment {
    display: inline-block;
    padding: 0
}

.attachment a,.attachment a:hover,.attachment a:visited:hover {
    color: inherit;
    text-decoration: none
}

.attachment--preview:not(.attachment--remote) {
    width: 100%;
    text-align: center;
    margin: .625em 0
}

.attachment--preview:not(.attachment--remote) img {
    border: 1px solid var(--color-border);
    vertical-align: middle;
    width: auto;
    max-width: calc(100% - 2px);
    max-height: 64rem
}

.attachment--lightboxable img {
    cursor: zoom-in
}

.attachment.attachment--remote {
    display: inline
}

.attachment.attachment--remote .attachment__caption {
    display: none
}