/* Layout for legacy editorial row/column shortcodes stored in tbl_content. */
.editorial-row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -.75rem;
}

.editorial-row > * {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding-inline: .75rem;
}

.editorial-row > .editorial-cell--equal {
    flex: 1 0 0;
    width: auto;
    margin-bottom: .5rem;
}

.editorial-row > .editorial-cell--sm-8,
.editorial-row > .editorial-cell--sm-6,
.editorial-row > .editorial-cell--sm-4,
.editorial-row > .editorial-cell--sm-3,
.editorial-row > .editorial-cell--md-4 {
    margin-bottom: 1.5rem;
}

.editorial-row--pair > * {
    margin-top: 1rem;
}

.editorial-row--pair {
    margin-top: -1rem;
}

@media (min-width: 576px) {
    .editorial-row > .editorial-cell--sm-8 { width: 66.666667%; }
    .editorial-row > .editorial-cell--sm-6,
    .editorial-row > .editorial-cell--half { width: 50%; }
    .editorial-row > .editorial-cell--sm-4 { width: 33.333333%; }
    .editorial-row > .editorial-cell--sm-3 { width: 25%; }
}

@media (min-width: 768px) {
    .editorial-row > .editorial-cell--md-4 { width: 33.333333%; }
    .editorial-row > .editorial-cell[style*="--ttv-editorial-order"] { order: var(--ttv-editorial-order); }
    .editorial-row--pair > * { width: 50%; }
}

/* Divider inserted by the editorial shortcode. */
.shortcode-divider { width: 50%; }

/* Feature lists generated by [pis], [pis2] and [pis3]. */
.tour-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 1.5rem;
    margin: 3rem auto;
    padding: .5rem .75rem;
}

.tour-features--compact {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.tour-features-item {
    display: flex;
    min-width: 0;
}

.tour-features-icon { flex: 0 0 28px; }
.tour-features-icon :is(.icon, .ph-light) { font-size: 1.2em; }
.tour-features--compact .tour-features-icon i { color: rgba(0, 0, 0, .5); }

@media (min-width: 768px) {
    .tour-features { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .tour-features--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Biographical cards generated by [bio] and [dk]. */
.speaker-card {
    max-width: 868px;
    margin: 0 auto .5rem;
    padding: 1rem;
    background: #fff;
}

.speaker-card h5 {
    margin: .5rem 0 1rem;
    text-align: center;
}

.speaker-card-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0 -.75rem .5rem;
}

.speaker-card-content > * { min-width: 0; padding: .5rem; }
.speaker-card-portrait { text-align: center; }
.speaker-card-portrait img { border-radius: 50%; object-fit: cover; }

@media (min-width: 576px) {
    .speaker-card-content { grid-template-columns: 1fr 5fr; }
}

/* The archived [mentor] card remains hidden where the shortcode is still stored. */
.mentor-card { display: none; }

/* Framed editorial images generated by [photo]. */
.editorial-photo { width: 100%; margin: 1rem auto 1.5rem; }
.editorial-photo-card {
    display: flex;
    flex-direction: column;
    margin-block: 1rem;
    border: 1px solid rgba(0, 0, 0, .175);
    border-radius: .375rem;
    background: #fff;
    text-align: center;
}
.editorial-photo-image { flex: 1 1 auto; padding: 1rem; }
.editorial-photo-image img { max-width: 100%; height: auto; }
.editorial-photo-caption {
    padding: .5rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, .175);
    border-radius: 0 0 .375rem .375rem;
    background: rgba(33, 37, 41, .03);
    color: #6c757d;
}
@media (min-width: 576px) {
    .editorial-photo { width: 58.333333%; }
}
