/* lead */

.masthead-container.background-based-masthead
  .image-container-x
  .image-container-y
  .masthead-image {
  background-position-y: 60%;
  background-position-x: 35%;
}

.masthead-container.full-bleed .series-subtitle {
  display: none;
}

:root {
  --app-height: 100%;
}

@media (max-width: 768px) {
  .masthead-container.background-based-masthead.full-bleed .image-container-x {
    height: calc(100vh - 52px) !important;
    height: calc(var(--app-height) - 52px) !important;
    transition: 0.5s height;
  }

  .masthead-container.background-based-masthead
    .masthead-title-container.under-image-masthead-title-container {
    position: absolute;
    top: 0px;
    width: 100%;
    background: none;
    display: flex;
    align-items: flex-end;
    height: calc(100vh - 52px);
    height: calc(var(--app-height) - 52px) !important;
    transition: 0.5s height;
  }

  .masthead-title-container.under-image-masthead-title-container
    .container:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 33%;
    width: 100%;
    z-index: -1;
    background: linear-gradient(
      transparent 0px,
      rgba(0, 0, 0, 0.7) 100%,
      rgba(0, 0, 0, 0) 33%
    );
    background-color: rgba(0, 0, 0, 0);
  }

  .special-report .series-title {
    font-size: 1.75rem;
  }
}

/* end lead */

body,
.list-group-item,
.masthead-container.full-bleed .caption,
.masthead-caption {
  background: #f9f7f2;
}
.story-content-container p.article-paragraph {
  color: #060606;
}
.masthead-container.full-bleed .caption {
  color: #666;
}

.byline,
.time {
  color: #888878;
}
.byline a {
  color: #666656 !important;
}

.bordered img {
  border: 1px solid rgb(216, 210, 210);
}

.dropshadow img {
  box-shadow: 1px 1px 4px #bbb;
  margin-bottom: 0.5rem;
}

.big-container {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.dropcap:first-letter {
  line-height: 67px;
  font-weight: 600 !important;
  color: #a31010 !important;
}

.story-content-container p.article-paragraph.article-subhead {
  color: #888;
}

.tearaway .caption {
  margin-top: -10px;
  margin-left: 8px;
  color: #666;
}

.video-player {
  box-shadow: 0 0 20px #e7e1d3;
}

/* related outset for centered layout */

@media (min-width: 786px) and (max-width: 1399.8px) {
  body.centered-rail .related-container.related-series:nth-of-type(1) {
    margin-left: auto;
    max-width: 40%;
    float: right;
    display: block;
    margin-right: auto;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    z-index: 20;
  }
}

@media (min-width: 1400px) {
  .related-container:nth-of-type(1),
  .related-container:nth-of-type(2) {
    width: 350px;
    max-width: 350px;
    position: absolute !important;
    left: 53%;
    z-index: 20;
  }
  .related-container:nth-of-type(1) .list-group .list-group-item p,
  .related-container:nth-of-type(2) .list-group .list-group-item p {
    width: 100%;
  }
  .related-container:nth-of-type(2) img {
    box-shadow: 0 0 2px #cccccccc;
  }
}

.dek {
  color: #965;
}

/* series bug */

.related-series .list-group-item {
  padding-right: 0 !important;
}

.related-series .list-group-item.chronicles img,
.related-series .list-group-item.part1 img,
.related-series .list-group-item.part2 img,
.related-series .list-group-item.part3 img,
.related-series .list-group-item.movement img {
  display: none;
}
.related-series .list-group-item.chronicles p,
.related-series .list-group-item.part1 p,
.related-series .list-group-item.part2 p,
.related-series .list-group-item.part3 p,
.related-series .list-group-item.movement p {
  margin-left: 0;
  font-size: 1.3rem;
  line-height: 1.3;
}
.related-series .related-header.component-header {
  margin-bottom: 0;
  border-bottom: 0;
}
.related-series .list-group-item.chronicles p {
  font-size: 2rem;
  font-weight: bold;
  color: #a31010 !important;
  pointer-events: none;
  font-family: 'Roboto Mono';
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #999;
  line-height: 1;
}

.chronicles.list-group-item.mb-3 {
  margin-bottom: 0.25rem !important;
}

.related-series .list-group-item.movement p {
  font-size: 1.1rem;
  margin-bottom: 0.25rem !important;
  pointer-events: none;
}

.related-series .list-group-item.movement p {
  color: #666 !important;
}
.related-series .list-group-item.this p {
  color: #000 !important;
}
.related-series .list-group-item.inactive p {
  color: #999 !important;
}
.related-series .list-group-item.link p {
  color: #a31010 !important;
  pointer-events: ;
}

.related-series .list-group-item.chronicles a,
.related-series .list-group-item.movement a,
.related-series .list-group-item.part1 a,
.related-series .list-group-item.part2 a,
.related-series .list-group-item.part3 a {
  pointer-events: none;
  cursor: default;
}

.related-series .list-group-item.link a {
  cursor: pointer !important;
  pointer-events: all;
}

@media screen and (max-width: 480px) {
  .related-series div {
    padding-top: 1rem;
    border-top: 1px solid #d0c8aa;
    border-bottom: 1px solid #d0c8aa;
  }
  .chronicles p {
    font-size: 1.6rem !important;
  }
}
