/* Adrian Wong — hoja de estilos */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #FFFFFF;
  color: #222222;
  font-family: "Avenir Next", "Avenir", "AvenirNextLTW01-Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: #222222; text-decoration: none; }

/* ---------- Navegación fija en las esquinas ---------- */

.nav-section {
  position: fixed;
  z-index: 11;
  background-color: transparent;
  pointer-events: none;
}
.nav-section.top-right    { top: 0; right: 0; }
.nav-section.bottom-left  { bottom: 0; left: 0; }
.nav-section.bottom-right { bottom: 0; right: 0; }
.nav-section.bottom-center{ bottom: 0; left: 0; right: 0; text-align: center; }

.nav-chunk {
  padding: 24px 45px 40px 45px;
  display: inline-block;
  white-space: nowrap;
}
.nav-chunk .nav-el { display: inline-block; margin: 0 7px; }
.nav-chunk .nav-el:first-child { margin-left: 0; }
.nav-chunk .nav-el:last-child  { margin-right: 0; }

.nav-el a, .nav-el span {
  font-size: 10px;
  line-height: 15px;
  color: #222222;
  pointer-events: auto;
}
.nav-el a:hover { opacity: .5; }

/* ---------- Visor de imágenes (portada) ---------- */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 5;
  padding: 130px 112px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: e-resize;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity .25s ease;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.viewer img.is-loaded { opacity: 1; }

/* Contador discreto, oculto por defecto para no alterar el diseño original */
.counter { display: none; }

/* ---------- Página de texto (Info) ---------- */

.text-page {
  padding: 100px 24px 160px 200px;
  min-height: 100%;
}
.text-block {
  font-size: 10px;
  line-height: 15px;
  max-width: 40em;
}
.text-block b { font-weight: normal; }

/* ---------- Móvil ---------- */

#mobile-nav-wrapper { display: none; }

@media only screen and (max-width: 600px) {
  .nav-section { display: none; }

  #mobile-nav-wrapper {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 10;
    background-color: #FFFFFF;
  }
  .mobile-header {
    position: relative;
    z-index: 99;
    height: 48px;
    padding: 12px;
    text-align: right;
  }
  .mobile-header a { display: inline-block; }
  .mobile-header svg { width: 20px; display: block; }
  .mobile-header svg g { stroke: #222222; }

  #mobile-nav-wrapper.nav-open { height: 100%; }
  #mobile-nav-wrapper.nav-open .mobile-header { position: fixed; width: 100%; }

  ul#mobile-nav {
    padding: 48px 12px 24px 12px;
    margin: 0 0 12px 0;
    max-height: 100%;
    overflow-y: auto;
    list-style: none;
    display: none;
  }
  #mobile-nav-wrapper.nav-open ul#mobile-nav { display: block; }
  ul#mobile-nav li { margin: 7px 0; }
  ul#mobile-nav li a, ul#mobile-nav li span { color: #222222; font-size: 10px; line-height: 15px; }

  .viewer { padding: 60px 12px 48px 12px; }
  .text-page { padding: 60px 12px 48px 12px; }
}
