body {
  margin: 0;
  background: var(--background);
  color: var(--color);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  position: relative;
  --background: linear-gradient(180deg,rgba(59, 199, 255, 1) 0%, rgba(58, 4, 133, 1) 50%, rgba(250, 67, 189, 1) 100%);
  --color: white;
  font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
}

.link-neutral {
  color: inherit;
  text-decoration: inherit;
}

.link-intext {
  color: #2095e8;
}

.page-wrapper {
  display: flex;
  flex-direction: row;
  padding: 1em 0 1em 5%;
}

.page {
  flex-basis: 100%;
}

footer {
  --background: #071E3D;
  background-color: var(--background);
  color: white;
}

footer .container {
  padding: 1em;
  display: flex;
  width: 90%;
  margin: auto;
}

footer .container a {
  color: white;
}

footer .container a.sn-link {
  color: #AAAAAA;
}

footer .category {
  flex-basis: 100%;
  display: flex;
  flex-flow: column;
  margin-right: 30px;
}

footer .category .category-title {
  font-weight: bold;
}

footer .category > * {
  margin-bottom: .3em;
}

.poster {
  width: 65%;
  min-width: 540px;
  margin-top: .5em;
}

.nav-menu {
  list-style: none;
  display: flex;
  padding: 0;
  text-align: center;
  border-color: black;
  border-style: solid;
  border-width: 3px 0;
}

.nav-menu .nav-menu-element {
  --background: white;
  --color: black;
  position: relative;
  background-color: var(--background);
  color: var(--color);
  display: grid;
  align-content: center;
  font-weight: bold;
  cursor: pointer;
  flex-basis: 100%;
  padding: .5em;
  z-index: 3;
}

.nav-menu .nav-menu-element:not(.no-target):hover,
.nav-menu .nav-menu-element.currentpage {
  background-color: var(--color);
  color: var(--background);
}

.nav-menu .nav-submenu {
  position: absolute;
  visibility: hidden;
  z-index: 2;
  left: 0;
  right: 0;
  top: 100%;
}

.nav-menu .nav-menu-element:hover .nav-submenu,
.nav-menu .nav-submenu:hover {
  visibility: visible;
}

.video-fullpage {
  width: 100%;
  max-height: 95vh;
  margin: 10px 0;
}

.notice {
  padding: 10px 15px;
  margin: 5px;
  border-radius: 3px;
  position: relative;
}

.notice .dismiss {
  float: right;
  font-size: 120%;
  cursor: pointer;
  opacity: .6;
}

.notice-info {
  background-color: lightblue;
  color: black;
}

.notice-error {
  background-color: #f7dddc;
  color: black;
}

.f-r {
  float: right;
}

.floating-box-right {
  position: sticky;
  top: 0;
  height: max-content;
  padding: 0 1em;
  flex-basis: 15%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

.gallery {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, 238px);
  grid-gap: 12px;
  margin-bottom: 40px;
}

.gallery .pix-preview-wrapper {
  background-color: #444;
  align-items: center;
  overflow: hidden;
  display: flex;
  align-content: center;
  justify-content: center;
}

.gallery .pix-preview-wrapper .loading-icon,
.visualizer .loading-icon {
  color: lightgray;
  position: absolute;
  z-index: 1;
  align-self: center;
}

.gallery .pix-preview {
  align-content: center;
  display: grid;
  position: relative;
  height: 238px;
  width: 238px;
}

.gallery video.pix-preview,
.gallery .pix-preview img {
  width: 100%;
}

.gallery .pix-preview,
.visualizer img {
  z-index: 2;
}

.gallery .visualizer-link {
  color: white;
  text-decoration: none;
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(50,50,50,0.5);
  font-size: 24px;
  padding: 0 3px 10px 10px;
  border-bottom-left-radius: 100%;
}

.gallery-year-nav {
  display: flex;
  border-bottom: 1px solid var(--color);
  padding-left: 1em;
}

.gallery-year-nav > * {
  display: inline-block;
  padding: .6em;
  background-color: inherit;
  margin-bottom: -1px;
  box-sizing: border-box;
  border: 1px solid transparent;
  font-weight: bold;
}

.gallery-year-nav > a:hover {
  border-color: gray;
  border-bottom-color: transparent;
}

.gallery-year-nav .current-year {
  border-color: var(--color);
  border-bottom-color: var(--background);
  -moz-user-select: none;
  user-select: none;
  border-bottom-width: 2px;
}

body.overlayed {
  overflow: hidden;
}

.visualizer {
  width: 100vw;
  height: 100vh;
  background-color: #444;
  display: flex;
  justify-content: center;
}

.visualizer.overlay {
  position: fixed;
  background-color: rgba(68,68,68,0.9);
  z-index: 10;
}

.visualizer img {
  max-height: 100%;
  margin: auto;
}

.visualizer .picture-nav {
  background-color: #333;
  height: 100%;
  align-items: center;
  display: flex;
  width: 2em;
}

.visualizer .exit {
  position: absolute;
  right: 2.5em;
  margin: .8em;
  padding: .2em;
}

.visualizer .picture-nav > * {
  color: inherit;
  margin: auto;
  padding: .5em;
}

.visualizer .picture-nav,
.visualizer .exit {
  z-index: 2;
  cursor: pointer;
  color: lightgray;
  font-size: 150%;
  text-decoration: none;
}

.visualizer .pic-metadata {
  color: lightgray;
  position: absolute;
  right: 3em;
  bottom: 0;
  text-align: right;
  background-color: rgba(68, 68, 68, 0.7);
  padding: .3em .5em;
  z-index: 3;
}

.socialnetworks-list > * {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
}

.socialnetworks {
  text-align: center;
}

.socialnetworks a {
  margin-right: .3em;
  vertical-align: top;
  font-size: 115%;
}

.sn-link {
  color: var(--color);
}

.sn-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
}

.sn-icon + span {
  margin-left: 2px;
  position: relative;
  bottom: .3em;
}

.site-link-image {
  width: 100%;
}

.facebook-link {
  padding-bottom: 2px;
  vertical-align: text-bottom;
}

.facebook-link i {
  font-size: 1.5em;
}

.instagram-link {
  padding-top: 1px;
}

.twitter-link i {
  font-size: 1.6em;
}

.instagram-link i {
  font-size: 1.5em;
  width: inherit;
  text-align: center;
}

.global-notice {
  text-align: center;
  color: black;
  background-color: #faa;
  width: 100%;
  font-size: 90%;
}

.banner-text {
  display: flex;
  align-items: center;
  margin-top: .3em;
  
}

.banner-text img {
  height: 60px;
}

.banner-image {
  width: 100%;
}

.banners{
    display: grid;
    grid-template-columns: repeat(auto-fit, calc(min(var(--minwidth), 100%)));
    grid-gap: 20px;
    padding: 20px;
    justify-content: center;
    align-content: center;
}
.banners-child{
    box-sizing: border-box;
}
.banners-child img{
   max-width: 100%;
}

.banner-text .date,
.banner-text .where {
  margin-left: 1em;
  margin-right: 1em;
  font-family: Rubik, "Trebuchet MS", Helvetica, Arial, sans-serif;
  color: black;
  font-variant-caps: small-caps;
  display: inline-block;
  text-align: center;
}

.banner-text .date {
  font-size: 26px;
}

.banner-text .where {
  font-size: 16px;
}

.history-pictures-preview-container {
  position: relative;
  width: max-content;
  float: right;
  clear: right;
  margin: 0 0 .5em .5em;
}

.history-pictures-preview {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  grid-gap: 5px;
}

.history-pictures-preview img {
  width: 100%;
}

.history-pictures-preview-container .gallery-link {
  font-size: 200%;
  font-weight: bold;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  color: black;
  text-decoration: none;
  display: grid;
  justify-items: center;
  align-items: center;
  visibility: hidden;
  text-shadow: 1px 1px gray;
}

.history-pictures-preview-container .history-pictures-preview:hover + .gallery-link,
.history-pictures-preview-container .history-pictures-preview + .gallery-link:hover {
  visibility: visible;
}

.history-pictures-preview-container .gallery-link .fa {
  margin-right: .2em;
}

.news-date {
  font-family: Verdana;
  font-weight: bold;
  font-size: 70%;
  margin-right: .2em;
}

.news-signing {
  font-family: Verdana;
  font-weight: bold;
  font-size: 70%;
  text-align: right;
}

.card {
  width: 400px;
  height:225px;
  position: relative;
  display: grid;
  color: white;
  overflow-y: hidden;
}

.card img {
  max-width: 100%;
  max-height: 100%;
  justify-self: center;
  align-self: center;
}

.card .card-title {
  padding: .8em 0;
  text-align: center;
  bottom: 0;
  background-color: rgba(68,68,68,0.7);
}

.card .card-details {
  padding: 0 .5em;
  text-align: left;
  bottom: -1.6em;
  line-height: 1.6em;
  height: 1.6em;
  background-color: rgba(68,68,68,0.9);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.card .card-details,
.card .card-title {
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  transition: bottom .3s, background-color .3s;
}

.card:hover:not(.nodetails) .card-title {
  bottom: 1.6em;
}

.card:hover:not(.nodetails) .card-details {
  bottom: 0;
}

.card:hover .card-title {
  background-color: rgba(68,68,68, 0.9);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 255px;
  margin: 10px 0;
  display: grid;
}

.carousel {
  width: 100%;
  margin: 5px 0;
  display: flex;
  overflow: auto hidden;
  position: absolute;
  z-index: 1;
}

.carousel-wrapper .navigation-indicator {
  position: absolute;
  bottom: -12px;
  justify-self: center;
}

.carousel-wrapper .minicard {
  cursor: pointer;
  background-color: #999;
  display: inline-block;
  vertical-align: sub;
}

.carousel-wrapper .progressbar {
  cursor: pointer;
  position: relative;
  top: 2px;
  height: 4px;
  border-radius: 2px;
  background-color: #999;
}

.carousel-wrapper .carousel-navigation {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  padding: 5px 0;
  box-sizing: border-box;
}

.carousel-wrapper .carousel-navigation-arrow {
  color: lightgray;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  width: 42px;
  justify-content: center;
  font-size: 60px;
}

.news-ellipsis {
  margin-left: 10px;
  width: 150px;
  display: grid;
  align-content: center;
  justify-content: center;
  font-size: 3em;
  margin-top: -.5em;
}

.all-news-link {
  position: relative;
}

.all-news-link > a {
  position: absolute;
  right: 0;
  top: -2em;
  font-weight: bold;
}

.spanner {
  flex: auto;
  height: 0;
}

.subway-line,
.bus-line {
  display: inline-flex;
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  font-family: Arial, sans-serif;
  font-weight: bold;
  justify-content: center;
  align-items: center;
}

.subway-line-b {
  color: white;
  background-color: rgb(71, 154, 69);
}

.subway-line-c {
  color: white;
  background-color: rgb(194, 0, 120);
}

.bus-line-c5 {
  color: black;
  background-color: rgb(229, 173, 52);
}

.bus-line-c7 {
  color: black;
  background-color: rgb(243, 217, 47);
}

#page-info h3 {
  text-decoration: underline;
}

#page-news {
  background: #f3f8fc;
  padding: 2em 4em;
  box-shadow: 0 0 3px 3px #aaa;
  color: black;
}

.overlayed-img-wrapper {
  position: relative;
}

.img-overlay-link > * {
  position: absolute;
  box-sizing: border-box;
}

.footnote {
  transition: background-color .5s;
}

.footnote.highlighted {
  background-color: #666;
}

.page-wrapper > hr {
  display: none;
}

.phone-navmenu {
  display: none;
  text-align: center;
  margin-top: 2em;
}

.phone-navmenu:hover .nav-menu-element.link-neutral{
  display: block;
}

/* Responsive */

@media (max-width: 1199.90px) and (min-width: 880px) {
  .floating-box-right {
    flex-direction: row;
    grid-gap: 10%;
    max-width: unset;
  }
}

@media (max-width: 880px) {
  .banner-text {
    flex-direction: column;
  }
  .nav-menu {
    flex-direction: column;
  }
  .nav-menu-element.link-neutral {
    display: flex;
  }
  .nav-menu-element.currentpage {
    display: flex;
  }
  .container {
    flex-direction: column;
  }
  .socialnetworks {
	  text-align: left;
  }
  .banner-image {
    width: 0%;
  }
  .site-link-image {
    width: 50%;
    margin-left: -10px;
  }
  .phone-navmenu {
  display: none;
  }
}

@media (max-width: 1199.90px) {
  .page-wrapper {
    flex-direction: column;
    padding-right: 3%;
  }
  .page-wrapper > hr {
    display: initial;
    width: 100%;
    margin-bottom: -.5em;
  }
  .floating-box-right > :first-child {
    flex-basis: 20%;
  }
  .site-link-image {
    width: 50%;
    margin-left: -10px;
  }
}