.tl-media-content img {
  border-radius: .5rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px !important;
}

.mapping-map {
  height: 80vh;
  z-index: 999;
  border-radius: .5rem;
}

.mapping-block.timeline .tl-timeline{
  width: 70% !important;
}

.mapping-block.timeline  .mapping-map {
   width: 30% !important;
}

.tl-menubar button{
   margin:.2rem 0 0;
}

@media screen and (max-width:639px) {
  .tl-storyslider {
    height: 60vh !important;
  }

  .mapping-map {
    height: 30vh !important;
    border-radius: .5rem;
  }
}

.timenav-full-width-above .tl-timenav, .timenav-full-width-below .tl-timenav {
  background: -moz-linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(255,255,255,1) 100%);
  background: -webkit-linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(255,255,255,1) 100%);
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(255,255,255,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
  border: none;
}

.tl-timemarker-active .tl-timemarker-content-container {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px !important;
}

.tl-timemarker .tl-timemarker-content-container:hover {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px !important;
}

.tl-timemarker.tl-timemarker-active .tl-timemarker-content-container, .tl-timemarker-content-container:hover{
  background-color: #fff !important;
  background:#fff !important;
  border-color: #fff !important;
}

.tl-timemarker .tl-timemarker-content-container,
.tl-timemarker.tl-timemarker-active .tl-timemarker-content-container
 .tl-timemarker .tl-timemarker-content-container:hover {
  border-color: #fff;
}

.tl-timeline h1, .tl-timeline h2, .tl-timeline h3, .tl-timeline h4, .tl-timeline h5, .tl-timeline h6 {
  text-transform: none !important;
  font-weight: normal !important;
  line-height: 1.25 !important;
}

.tl-timeline h2.tl-headline-title {
  font-size: 5rem !important;
  border-bottom: 3rem solid;
  padding: 0 0 1rem;
}

.tl-media-content {
  /* width of container */
  height: 40%;
  /* height of container */
  object-fit: cover;
  margin: 1rem;
  text-transform: inherit;
}

div.tl-timeline{
  background-color: none !important;
}

.tl-timeline {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.tl-storyslider {
  display: flex;
  order: 1;
}

.timenav-full-width-below .tl-timenav {
  display: flex;
  order: 2;
}

.timenav-full-width-above .tl-timenav {
  display: flex;
  order: 0;
}

.timenav-full-width-above .tl-menubar {
  bottom: auto !important;
  top: 4.5rem !important;
  transform: translateY(-35%);
}

.timenav-full-width-above .tl-attribution {
  bottom: auto !important;
  top: 13rem !important;
  transform: translateY(-35%);
}

.timenav-full-width-below .tl-menubar {
  top: auto !important;
  bottom: 2rem !important;
}

/* Fading Overflow Scroll */
.tl-slide {
  /* scroll bar width, for use in mask calculations */
  --scrollbar-width: 2px;
  /* mask fade distance, for use in mask calculations */
  --mask-height: 48px;
  /* If contet exceeds height of container, overflow! */
  overflow-y: auto;
  /* Our height limit */
  height: 200px;
  /* Need to make sure container has bottom space,
  otherwise content at the bottom is always faded out */
  padding-bottom: var(--mask-height);
  /* Keep some space between content and scrollbar */
  padding-right: 0px;
  /* The CSS mask */
  /* The content mask is a linear gradient from top to bottom */
  --mask-image-content: linear-gradient(to bottom,
      transparent,
      whitesmoke var(--mask-height),
      whitesmoke calc(100% - var(--mask-height)),
      transparent);
  /* Here we scale the content gradient to the width of the container
  minus the scrollbar width. The height is the full container height */
  --mask-size-content: calc(100% - var(--scrollbar-width)) 100%;
  /* The scrollbar mask is a black pixel */
  --mask-image-scrollbar: linear-gradient(whitesmoke, whitesmoke);
  /* The width of our black pixel is the width of the scrollbar.
  The height is the full container height */
  --mask-size-scrollbar: var(--scrollbar-width) 100%;
  /* Apply the mask image and mask size variables */
  -webkit-mask-image: var(--mask-image-content), var(--mask-image-scrollbar);
  -webkit-mask-size: var(--mask-size-content), var(--mask-size-scrollbar);
  /* Position the content gradient in the top left, and the
  scroll gradient in the top right */
  -webkit-mask-position: 0 0, 100% 0;
  /* We don't repeat our mask images */
  -webkit-mask-repeat: no-repeat, no-repeat;
  /* Apply the mask image and mask size variables */
  -moz-mask-image: var(--mask-image-content), var(--mask-image-scrollbar);
  -moz-mask-size: var(--mask-size-content), var(--mask-size-scrollbar);
  /* Position the content gradient in the top left, and the
  scroll gradient in the top right */
  -moz-mask-position: 0 0, 100% 0;
  /* We don't repeat our mask images */
  -moz-mask-repeat: no-repeat, no-repeat;
  /* Apply the mask image and mask size variables */
  mask-image: var(--mask-image-content), var(--mask-image-scrollbar);
  mask-size: var(--mask-size-content), var(--mask-size-scrollbar);
  /* Position the content gradient in the top left, and the
  scroll gradient in the top right */
  mask-position: 0 0, 100% 0;
  /* We don't repeat our mask images */
  mask-repeat: no-repeat, no-repeat;
}

/* moz */
.tl-slide {
  scrollbar-width: thin;
  scrollbar-color: currentColor transparent;
}

/* webkit */
.tl-slide::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

.tl-slide::-webkit-scrollbar-thumb {
  background-color: currentColor;
  border-radius: 9999px;
}

.tl-slide::-webkit-scrollbar-track {
  background-color: transparent;
}

/* Leaflet Styling */
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar{
    border: none !important;
    border-radius: .5rem;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}
