
:root {
  font-family: "Newsreader";
}

html {
  font-family: "Newsreader, Helvetica Neue";
}

article.text > * {
  margin-left: auto!important;
  margin-right: auto!important;
  max-width: 900px;
}

article.text h2 {
   margin-top: 1.8em;
   margin-bottom: 1.3em;
}

h1:has(+p time) {
  margin-bottom:0;
  text-align: center;
}
p:has(time) {
  margin-top:0;
  text-align: right;
  font-style: italic;

}

main>header {
  margin-top: 5em;
  & h1 {
    font-size: 3em;
  }
  & time {
    font-size: 1em;
    text-align: right;
    right: 0;
    padding: 0;

  }
}




.translation {
  & h4 {
    font-size: 1em;
    font-style: italic;
    font-weight: 100;

  }
  text-align:right;
  & ul li {
    list-style: none;

  }

}


/* Menu bar */

.header label.theme-toggle {
  margin-bottom: 0;
}

.header nav details.dropdown summary {
  background-color: transparent!important;
  border: none!important;
}
.header nav details.dropdown summary:focus {
  background-color: transparent!important;
  border: none!important;
  box-shadow: none!important;
}


/* Gallery */

.gallery-container {
  padding: 40px 5%;
  background-color: var(--pico-background);
}

.gallery-container .image-gallery {
  text-align: center;
}

.pico .gallery-container ul li {
    list-style: none;
}

.gallery-container .image-gallery > li {
  /* fallback */
  display: inline-block;
  width: 350px;
  margin: 0 5px 10px 5px;
  /* end fallback */
  position: relative;
  cursor: pointer;
}

@supports (display: flex) {
  .gallery-container .image-gallery {
    display: flex;
    flex-direction: column; /* for small screens */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .gallery-container .image-gallery > li {
    flex-basis: 350px; /*width: 350px;*/
    margin: 0;
  }

  .gallery-container .image-gallery::after { /* align the last row */
    content: "";
    flex-basis: 350px;
  }
}

.gallery-container .image-gallery li img {
  object-fit: cover;
  max-width: 100%;
  max-height: 280px;
  height: auto;
  vertical-align: middle;
  border-radius: 5px;
}

/* hover */
.gallery-container .image-gallery li:hover .overlay {
  transform: scale(1);
}

@media only screen and (min-width: 768px) {
  .gallery-container .image-gallery {
    flex-direction: row;
  }
}

.effectfront {
  border: none;
  margin: 0 auto;
}
.effectfront:hover {
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
}

/* GPX */
.gpx {
  max-width: 100%;
  margin: 1em auto;
  font: var(--pico-font-family);
}
 .gpx .map {
     border: 1px var(--pico-card-border-color) solid;
     width: 100%;
     min-height: 800px;
     margin: 0;
     z-index: 0;
}
 .gpx footer {
     background-color: var(--pico-card-background-color);
     border: 1px var(--pico-card-border-color) solid;
     padding: 0.5em;
}
.gpx .maps-div-icon img {
  width: 42px;
  height: 42px;
}

/* homepage */

div.homelink article div.grid img.featured {
  width: 100%;

}

div.homelink a div.grid {
  text-decoration: none!important;
  --pico-color: var(--pico-secondary)!important;
}

/* misc */
figure.inline-img {
  text-align: center;

}
figure.figure-me img {
  width: 300px;
  display: inline-block;
}

#invadermap {
  width: 100%;
  height: 600px;
}

.marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -15px 0 0 -15px;
}

.marker-pin.toexplore {
  background: #c30b82;
}

.marker-pin.completed {
  background: #56fc03;
}
.marker-pin.visited {
  background: #03b1fc;
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    position: absolute;
    background: #fff;
    border-radius: 50%;
 }

.city-icon span {
   position: absolute;
   width: 22px;
   font-size: 22px;
   left: 0;
   right: 0;
   margin: 10px auto;
   text-align: center;
}

.city-icon span.city{
   margin-top: 8px;
   font-size: 18px;
}
