@charset "UTF-8";
@import url("https://fonts.cdnfonts.com/css/pp-neue-montreal");
html,
body,
section,
article {
  display: grid;
}

/* display: grid on html & body + min-height: 100% on html
 * avoids the 100vh height mobile problem
 * https://allthingssmitty.com/2020/05/11/css-fix-for-100vh-in-mobile-webkit/
 * AND has better support than 100dvh height */
html {
  min-height: 100%;
}

/* avoid pure white text on pure black background */
body {
  background: #121212;
  color: #ededed;
  margin: 0;
  font-family: "PP Neue Montreal", sans-serif;
}

/* Logo block (aligned like index, but top-left) */
.header-area {
  position: fixed;
  top: var(--spacing-large, 32px);
  left: var(--spacing-large, 32px);
  z-index: 10;
  padding: 0;
}
.center-logo {
  text-align: center;
  height: 3rem;
  padding: 0.45rem 1.6rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#logo-image {
  height: 4.5rem;
  width: auto;
}

.copyrights {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  text-align: right;
  z-index: 10;
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 1rem;
  color: #cccccc;
}

.timeline {
  /* middle align along both axes */
  place-self: center;
  /* limit width */
  max-width: 50em;
}
.timeline article {
  /* commonly used length value */
  --size: 0.625em;
  /* timeline bar and markers */
  --highlight: lime;
  /* default marker */
  --marker: radial-gradient(
      circle closest-side,
      var(--highlight) calc(100% - 1px),
      transparent
    )
    0 0 / 100% var(--size);
  /* spacing between the two columns (text content and image) */
  grid-gap: 2em;
  /* equally sized columns */
  grid-template-columns: 1fr 1fr;
  /* tiny correction, avoid subpixel rounding issues */
  margin-top: -1px;
  background: var(--marker), linear-gradient(var(--highlight) 0 0) 50%/2px;
  background-repeat: no-repeat;
}
.timeline article:first-child {
  --marker: linear-gradient(var(--highlight) 0 0) 50% 0 / var(--size)
    calc(0.5 * var(--size));
}
.timeline article:nth-child(odd) img {
  /* on the 1st row, 1st column */
  grid-area: 1/1;
  /* right-aligned */
  justify-self: end;
}
.timeline article:not(:last-child) {
  padding-bottom: 1em;
}
.timeline article > * {
  border-radius: var(--size);
}
.timeline__content {
  padding: 1em;
  background: rgba(255, 255, 255, 0.07);
}
.timeline h1 {
  margin: 0 0 var(--size);
  color: #88d55e;
  font: italic 1.375em/1 "PP Neue Montreal", sans-serif;
  text-transform: capitalize;
}
.timeline time {
  font: 700 2.5em/1.25 "PP Neue Montreal", monospace;
}
.timeline hr {
  opacity: 0.3;
}
.timeline p {
  margin: 0;
  padding-top: 0.5em;
  font: 1em "PP Neue Montreal", sans-serif;
}

/* Increase bio text size for remedy entries (+~2pt) */
.timeline p[data-i18n$=".bio"] {
  font-size: 1.15em;
}
.timeline img {
  box-sizing: border-box;
  border: solid 2px;
  width: min(100%, 13em);
  aspect-ratio: 1.3;
  object-fit: cover;
  object-position: center 55%;
  cursor: pointer;
}

/* Modal styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  width: 95vw;
  height: 95vh;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}
