@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Work+Sans:wght@300;400;700&display=swap');

:root {
  /* Colors */
  --color-link: #1a73e8;
  --color-link-hover: #1557b0;
  --color-text-muted: #666;
  --color-text-light: #999;
  --color-border: #e0e0e0;
  --color-border-medium: #ccc;
  --color-bg-light: #f5f5f5;
  --color-menu-bg: #1e2a3a;
  --color-accent: #cc0000;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: white;
  min-height: 100vh;
}

body {
  color: black;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.markdown-header-title,
.markdown-header-medium {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.markdown-header-title {
  font-size: 2.25rem;
}

.markdown-header-medium {
  font-size: 1.6rem;
}

@media (max-width: 768px) {
  .markdown-header-title {
    font-size: 1.75rem;
  }

  .markdown-header-medium {
    font-size: 1.35rem;
  }
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.image-modal.is-open {
  display: flex;
}

.image-modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.image-modal__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  user-select: none;
  -webkit-user-drag: none;
}

.image-modal__guard {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
}

.image-modal__loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.image-modal__loader::before {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  animation: image-modal-spin 0.8s linear infinite;
}

.image-modal__loader.is-loading {
  display: flex;
}

@keyframes image-modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.image-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.image-modal.is-loading .image-modal__close {
  display: none;
}

.image-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.image-modal__caption {
  color: #d0d0d0;
  font-size: 0.8rem;
  text-align: center;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  padding: 0 4px;
  transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.2s ease;
}

.image-modal__caption.is-visible {
  max-height: 6em;
  opacity: 1;
  margin-top: 8px;
}

body.image-modal--open {
  overflow: hidden;
}

