/* {{pp-template}} */
/* main wrapper formatting */
.chemrxn-wrapper {
display: flex;
flex-flow: row nowrap;
width: max-content;
max-width: 100%;
margin: 0.5em auto;
font-size: 85%;
text-align: center;
justify-content: center;
}
/* subunit div wrapper formatting */
.chemrxn-wrapper > div:first-child {
margin-left: 0;
}
.chemrxn-wrapper > div:last-child {
margin-right: 0;
}
.chemrxn-sub-wrap,
.chemrxn-text-wrap,
.chemrxn-arrow-wrap {
flex: initial;
}
.chemrxn-sub-wrap,
.chemrxn-text-wrap,
.chemrxn-arrow-wrap {
display: flex;
margin: 0 0.5em;
flex-direction: column;
justify-content: space-between;
}
.chemrxn-sub-wrap {
min-width: 10%;
}
.chemrxn-arrow-wrap {
min-width: 55px;
max-width: 100px;
}
.chemrxn-chemarw-wrap {
flex: none;
margin: 0 0.5em;
align-content: center;
width: min-content;
}
/* content div formatting */
.chemrxn-sub-main {
margin: auto;
}
.chemrxn-sub-main img,
.chemrxn-arrow-img img {
object-fit: contain;
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
}
.chemrxn-text-content {
margin: auto;
white-space: nowrap;
}
.chemrxn-arrow-labels {
display: flex;
justify-content: space-between;
}
.chemrxn-arrow-labels > div:first-child {
margin-right: 0.5em;
}
.chemrxn-chemarw-wrap .chemrxn-arrow-img {
margin: auto;
width: max-content;
}
.chemrxn-chemarw-wrap .chemrxn-arrow-img img {
object-fit: none;
}
/* label text formatting */
.chemrxn-sub-name,
.chemrxn-text-caption,
.chemrxn-arrow-caption {
font-weight: bold;
}
.chemrxn-sub-name{
overflow: hidden;
text-overflow: ellipsis;
margin: 0.5em 0 0 0;
max-height: 3.3em;
max-height: 2lh; /* the lh unit is widely supported since 2023 */
}
.chemrxn-chemarw-wrap .chemrxn-arrow-caption ol {
text-align: left;
padding: 0 0.5em 0 1.5em;
margin: 0;
}
/* mobile-friendly formatting */
@media screen and ( max-width: 820px ) {
.chemrxn-wrapper {
width: 100% !important;
}
}
@media screen and ( max-width: 600px ) {
.chemrxn-wrapper {
font-size: 75%;
hyphens: auto;
}
.chemrxn-sub-wrap,
.chemrxn-text-wrap,
.chemrxn-arrow-wrap,
.chemrxn-chemarw-wrap {
margin: 0 0.25em;
}
}