:root {
  --main-width: 860px;
  --sidebar-width: 300px
}

@supports (-webkit-touch-callout:none) {
  :root {
    font: -apple-system-body
  }
}

:root {
  --font-family: "Avenir", "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
  --text-primary: black;
  --text-secondary: #5f5f5f;
  --text-tertiary: #878787;
  --background-color: #ffffff;
  --background-color-modal: #ffffffb3;
  --background-secondary-color: #f2f2f2;
  --nav-color: rgba(255 255 255 / 0.9);
  --nav-border-color: rgba(0 0 0 / 0.1);
  --nav-shadow: 0 9px 25px rgba(0 0 0 / 5%);
  --figure-shadow: 0 9px 25px rgba(0 0 0 / 25%);
  --locator-color: #4279EB;
  --nav-height: 3.4em
}

@media (prefers-color-scheme:dark) {
  :root {
    --text-primary: white;
    --text-secondary: #d9d9d9;
    --text-tertiary: #b0b0b0;
    --background-color: #1c1c1e;
    --background-color-modal: #1c1c1eb3;
    --background-secondary-color: #242424;
    --nav-color: rgba(32 33 36 / 0.9);
    --nav-border-color: rgba(255 255 255 / 0.1)
  }
}

body {
  font-family: var(--font-family);
  margin: 0;
  background: var(--background-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

.content {
  margin: 0 auto;
  width: 100%;
  max-width: 53rem;
  padding: 0 2rem;
  box-sizing: border-box
}

p,
ul {
  text-align: justify;
  line-height: 1.5;
  font-size: 1.0625rem
}

p a {
  color: var(--text-secondary)
}

h1,
h2,
h3,
h4 {
  margin: 0
}

h1,
h2,
h3 {
  font-weight: 900
}

h1 {
  font-size: 2.55rem
}

h3 {
  font-size: 1.15rem
}

nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-color);
  border-bottom: 1px solid var(--nav-border-color);
  box-shadow: var(--nav-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 100;
  overflow: hidden;
  margin-bottom: calc(-1 * var(--nav-height))
}

nav .content {
  display: flex
}

nav .entry-title,
nav .site-title {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative
}

nav .entry-title .content {
  align-items: center
}

nav .site-title .content {
  align-items: baseline
}

nav .entry-title {
  position: absolute;
  width: 100%
}

nav .left {
  margin-right: auto;
  min-width: 0;
  padding-right: 2rem
}

nav .right {
  flex: 0 0 auto;
  font-size: .95rem
}

footer a,
nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500
}

nav a strong {
  font-weight: 600
}

footer .right a:hover,
nav .right a:hover {
  text-decoration: underline
}

nav .entry-title h3 {
  margin-bottom: -.1rem
}

nav h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

nav .entry-title time {
  font-size: .8rem
}

nav .entry-title .right {
  display: flex;
  align-items: baseline
}

nav .locator {
  margin-right: .4rem;
  transform: translateY(.1rem)
}

article:after {
  content: "";
  display: block;
  border-radius: 5px;
  border: 3px solid var(--text-tertiary);
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  margin: 4rem auto
}

.featured-image {
  width: 100%;
  height: 60vh;
  margin-top: calc(-1 * var(--nav-height));
  background-color: var(--background-secondary-color)
}

.featured-image img {
  object-fit: cover;
  width: 100%;
  height: 100%
}

main {
  margin-top: var(--nav-height)
}

header {
  margin: 2.5rem 0 2rem;
  position: relative;
  z-index: 200
}

header h1 {
  transform-origin: bottom left
}

header time {
  transform-origin: bottom left
}

time {
  color: var(--text-tertiary);
  font-size: .95rem;
  display: block
}

.map {
  width: 18rem;
  max-width: 100%;
  float: right;
  padding: 0 0 2.5rem 2.5rem
}

@media only screen and (max-width:44rem) {
  .map {
    float: none;
    margin: 0 auto;
    padding-left: 0;
    padding-bottom: 1rem
  }
}

.map-inner {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  position: relative
}

.map-inner.europe {
  background-image: url(../map-europe-light.svg);
  aspect-ratio: 891/944
}

.map-inner.north-africa {
  background-image: url(../map-north-africa-light.svg);
  background-position: bottom right;
  aspect-ratio: 898/944
}

.map-inner.east-asia {
  background-image: url(../map-east-asia-light.svg);
  background-position: bottom right;
  aspect-ratio: 891/847
}

.map-inner.oceania {
  background-image: url(../map-oceania-light.svg);
  aspect-ratio: 891/576
}

@media (prefers-color-scheme:dark) {
  .map-inner.europe {
    background-image: url(../map-europe-dark.svg)
  }

  .map-inner.north-africa {
    background-image: url(../map-north-africa-dark.svg)
  }

  .map-inner.east-asia {
    background-image: url(../map-east-asia-dark.svg)
  }

  .map-inner.oceania {
    background-image: url(../map-oceania-dark.svg)
  }
}

.clearfix {
  clear: both
}

.locator {
  width: 14px;
  height: 14px
}

.map .locator {
  position: absolute;
  margin-left: -7px;
  margin-top: -7px
}

.map .locator::before {
  content: "";
  position: absolute;
  background-color: var(--locator-color);
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: locator-ping 3s cubic-bezier(.1, 0, .25, 1) infinite
}

.locator::after {
  content: "";
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--locator-color);
  border: 2px solid #fff;
  border-radius: 50%;
  box-sizing: border-box
}

@keyframes locator-ping {
  from {
    transform: scale(.8);
    opacity: .5
  }

  to {
    transform: scale(5);
    opacity: 0
  }
}

.location-description {
  margin-top: .5rem
}

.location-description a {
  text-decoration: none;
  color: inherit
}

.location-description>div:last-child {
  color: var(--text-tertiary);
  font-size: .8rem
}

figure {
  margin: 3rem 2.5rem
}

figure figure {
  margin: 0
}

figure img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--figure-shadow);
  height: auto;
  width: 100%;
  background-color: var(--background-secondary-color);
  cursor: zoom-in;
  will-change: transform;
  transition: transform 0.15s cubic-bezier(0.645, 0.045, 0.355, 1);
}

figure img:hover {
  transform: scale(1.02);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
  margin: 3.5rem calc(min(50% - min(40vw, 37.5rem), -2.5rem));
  padding: 0 2.5rem;
  box-sizing: border-box;
  width: calc(max(80vw, 100% + 5rem));
  max-width: min(75rem, 100vw);
}

figure.gallery-item {
  margin: 0
}

figure.gallery-figure {
  margin: 3.5rem 0
}

.gallery-figure .gallery:first-child {
  margin-top: 0
}

.gallery-figure .gallery:last-of-type {
  margin-bottom: 0
}

/* Single images are inline, so their captions also sit below the line's descender gap; match that spacing */
.gallery-figure figcaption {
  margin-top: 1.175rem
}

figure.gallery-item img {
  object-fit: cover;
  height: 100%;
  object-fit: cover;
}

.gallery[data-columns="2"] {
  grid-template-columns: repeat(2, 1fr)
}

.gallery[data-columns="3"] {
  grid-template-columns: repeat(3, 1fr)
}

.gallery[data-columns="4"] {
  grid-template-columns: repeat(4, 1fr)
}

@media only screen and (max-width:58rem) {
  .gallery.gallery {
    margin: 3.5rem 0;
    width: 100%;
    padding: 0;
  }
}

@media only screen and (max-width:37rem) {
  .gallery.gallery {
    grid-template-columns: 1fr;
  }

  figure {
    margin-right: 0;
    margin-left: 0
  }
}

figcaption {
  margin: .8rem 2.5rem 0
}

figcaption,
figcaption p {
  font-size: .95rem;
  color: var(--text-secondary);
  text-align: center
}

figcaption p {
  line-height: normal
}

section.page-navigation {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0
}

section.page-navigation a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: calc(min(10rem, 50vw - 4rem))
}

section.page-navigation a[rel=prev] {
  padding-right: 40px
}

section.page-navigation a[rel=next] {
  padding-left: 30px;
  text-align: right;
  justify-content: flex-end
}

section.page-navigation div {
  margin: 0 1rem;
  color: var(--text-tertiary);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}

section.page-navigation strong {
  display: block;
  color: var(--text-primary)
}

section.page-navigation a:hover strong {
  text-decoration: underline
}

hr {
  border-color: var(--text-tertiary);
  border-style: solid;
  border-bottom: none;
  margin: 2.5rem 0
}

footer {
  background-color: var(--background-secondary-color);
  margin-top: auto;
  padding: 2rem 0
}

footer .content {
  display: flex
}

footer .right {
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  font-size: .95rem;
  justify-content: flex-end
}

.subscribe {
  margin-right: auto
}

.subscribe input {
  width: 14rem
}

.footer input {
  width: 14rem
}

@media only screen and (max-width:37rem) {
  nav .right.right {
    display: none
  }

  nav .left {
    padding-right: 0
  }

  .subscribe {
    margin-right: initial
  }

  .subscribe input {
    width: auto
  }

  footer .content {
    flex-direction: column-reverse
  }

  footer .right {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--text-tertiary)
  }

  .input-row {
    flex-direction: column;
    flex-wrap: wrap
  }

  .input-row button,
  .input-row select {
    margin-left: 0
  }
}

input,
select {
  background: var(--background-color);
  font-family: var(--font-family);
  font-weight: 500;
  padding: .3rem .65rem;
  font-size: .95rem;
  border-radius: 6px;
  outline: 0;
  border: 1px solid var(--text-tertiary);
  color: var(--text-primary)
}

input::placeholder,
select::placeholder,
select:invalid {
  color: var(--text-tertiary)
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  margin-left: 1rem;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 97%;
  background-position-y: 3px;
  padding-right: 1.7rem;
  flex: 1 0 auto
}

.subscribe h4 {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: .95rem
}

.input-row {
  display: flex
}

.input-row button,
.input-row input,
.input-row select {
  margin-top: .4rem
}

button {
  padding: .4rem 1rem;
  font-size: .95rem;
  border-radius: 6px;
  outline: 0;
  border: none;
  background-color: var(--text-secondary);
  color: var(--background-color);
  margin-left: 1rem;
  cursor: pointer;
  transition: opacity .15s
}

button:hover {
  opacity: .9
}

button:disabled,
input:disabled {
  opacity: .5;
  cursor: not-allowed
}

@keyframes enter-top {
  from {
    transform: translateY(-50%);
    opacity: 0
  }

  to {
    transform: none;
    opacity: 1
  }
}

@keyframes enter-bottom {
  from {
    transform: translateY(50%);
    opacity: 0
  }

  to {
    transform: none;
    opacity: 1
  }
}

@keyframes exit-top {
  from {
    transform: none;
    opacity: 1
  }

  to {
    transform: translateY(-50%);
    opacity: 0
  }
}

@keyframes exit-bottom {
  from {
    transform: none;
    opacity: 1
  }

  to {
    transform: translateY(50%);
    opacity: 0
  }
}

@media only screen and (max-width:25rem) {
  .content {
    padding: 0 1.5rem
  }

  .gallery-wrapper--full,
  .gallery-wrapper--wide {
    padding: 0
  }
}

@media only screen and (max-width:50rem) {

  nav .entry-title,
  nav .site-title {
    animation-fill-mode: both;
    animation-duration: .4s
  }

  header {
    z-index: auto
  }
}

body.is-heading-multiline nav .entry-title,
body.is-heading-multiline nav .site-title {
  animation-fill-mode: both;
  animation-duration: .4s
}

body.is-heading-multiline header {
  z-index: auto
}

.older-entries {
  margin-top: 2.5rem
}

.entry {
  display: flex;
  align-items: center;
  margin: .8rem 0
}

.older-entries a {
  text-decoration: none;
  color: inherit
}

.older-entries a:hover h3 {
  text-decoration: underline
}

.older-entries h4 {
  color: var(--text-secondary)
}

.older-entries h3 {
  font-weight: 600
}

.entry time {
  display: flex;
  align-items: center;
  width: 4rem;
  flex: 0 0 auto
}

.entry-location {
  font-size: .8rem;
  color: var(--text-secondary)
}

.entry time::after {
  content: "";
  display: block;
  height: 1px;
  background-color: var(--text-tertiary);
  margin: 0 .6rem;
  flex: 1 0 auto
}

section {
  margin: 2.5rem 0
}

h2+section.monthly-archive {
  margin-top: 1rem;
}

.security-check {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%
}

.security-check.error {
  animation: shake .5s linear
}

@keyframes shake {

  41%,
  8% {
    -webkit-transform: translateX(-2rem)
  }

  25%,
  58% {
    -webkit-transform: translateX(2rem)
  }

  75% {
    -webkit-transform: translateX(-1rem)
  }

  92% {
    -webkit-transform: translateX(1rem)
  }

  0%,
  100% {
    -webkit-transform: translateX(0)
  }
}

.modal-container {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background-color: var(--background-color-modal);
  backdrop-filter: blur(3px);
  /* transition: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) background-color, */
  /* 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) backdrop-filter; */
  will-change: backdrop-filter, background-color;
  animation: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1) modal-enter forwards;
  cursor: zoom-out;
}

.modal-container.close {
  animation: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1) modal-exit forwards;
}

@keyframes modal-enter {
  from {
    background-color: transparent;
    backdrop-filter: blur(0px);
  }

  to {
    background-color: var(--background-color-modal);
    backdrop-filter: blur(3px);
  }
}

@keyframes modal-exit {
  from {
    background-color: var(--background-color-modal);
    backdrop-filter: blur(3px);
  }

  to {
    background-color: transparent;
    backdrop-filter: blur(0px);
  }
}

.modal-container img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--figure-shadow);
  max-width: 100%;
  max-height: 100%;
  background-color: var(--background-secondary-color);
}

img.modal {
  /* object-fit: cover; */
  /* width: 100%; */
  /* height: 100%; */
}