/**
 * Top
 */

#zone-el-2 {
  margin: 0;
}

.story-body {
  --paper-color: #222;
  --tc: white;
  --lc: #859CE8;
  --lhc: #5F7BD9;
}

.story-body .embed-infographic {
  max-width: 100%;
  padding: 0;
}

.header > figure,
.header .kicker,
.trinity-player-iframe-wrapper,
.story-body .zone,
.story-body .lead-item,
.commenting-container,
.story-body ~ *,
.story-body .related-stories,
#ConnatixVideoAd {
  display: none !important;
}

.header .h1 {
  font-size: 2.5rem;
  display: flex;
  flex-direction: column;
}

.header .h1:before {
  content: "A neighborhood lost";
  display: block;
  font-family: var(--sans);
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.3rem;
  background-color: #31409F;
  line-height: 1.1em;
  padding: 5px;
  margin-bottom: 15px;
  align-self: center;
}

.header .bio {
  display: block;
  text-align: center;
}

.social-network-macro .share-list {
  justify-content: center;
  fill: white;
}

.social-media svg {
  fill: white;
}

/**
 * Simple animation effect
 */

.fade-in {
  transition: opacity 4s ease;
}

.fade-in.faded {
  opacity: 0;
}

/**
 * Grid
 */

.story-body .floor-wrapper {
  max-width: 100%;
  display: grid;
  grid-template-columns: var(--panel-width, 50px) minmax(auto, var(--story-width));
  grid-gap: 120px 30px;
  grid-auto-flow: dense;
  justify-content: center;
  padding: 45px 15px;
}

.floor-wrapper > * {
  grid-column: 2;
}

.floor-wrapper .panel {
  grid-column: 1;
  position: sticky;
  align-self: start;
  top: 0px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/**
 * Nav and Minimap
 */

.floor-nav {
  flex: 1;
  display: grid;
  place-items: center;
}

.floor-nav .h6 {
  display: none;
}

.floor-nav a {
  text-decoration: none;
  color: white;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floor-nav a.active {
  background-color: #31409F;
  font-weight: bold;
}

/**
 * Minimap
 */

.minimap {
  display: none;
  padding: 15px 0;
}

/**
 * Floors 
 *
 * CSS grid can help us out quite a bit on the floors and images.
 * The `.package` class is one of the main components of SDS.
 **/

.floor {
  display: grid;
  grid-gap: 120px;
  max-width: var(--story-width);
  /* These two are SDS custom properties that can adjust header properties */
  --hw: bold;
  --hf: var(--sans);
}

.floor .unit:first-of-type::before {
  content: var(--floor-level);
  display: inline-block;
  margin: 0 0 30px 0;
  padding: 5px;
  background-color: #31409F;
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
  text-transform: uppercase;
}

.image-grid {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(auto-fit, 100px);
  grid-gap: 5px;
}

.image-grid img {
  display: block;
  width: 100%;
  height: auto;
  background-color: #949494;
}

.names {
  font-size:23px;
  margin-bottom: 5px;
}

.unit_number {
  margin-top: 5px;
}

.contributors {
  order: 99;
  max-width: var(--story-width);
  margin: 0 auto;
  --ts: 0.875rem;
  --tf: var(--sans);
}

.contributors:last-child {
  display: none;
}

/**
 * Desktop
 */

@media(min-width: 900px) {
  .story-body .floor-wrapper {
    /* grid-template-columns: 350px 1fr; */
    --panel-width: 350px;
  }
  
  .panel {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .floor-nav {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    grid-template-rows: min-content repeat(3, 60px);
    flex: none;
  }

  .floor-nav > span {
    grid-column: 1/-1;
  }

  .floor-nav .h6 {
    display: block;
  }

  .minimap {
    display: grid;
    grid-gap: 10px;
    align-self: stretch;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fit, 150px);
  }
}

