* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: white;
}

.site {
  display: grid;
  grid-template-columns: 350px 1fr;
  width: 100vw;
  height: 100vh;
  padding: 20px;
  align-items: start;
}

.menu {
  z-index: 2;
}

/* Título */

.name {
  display: block;
  margin: 0 0 18px 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  color: rgb(255, 0, 0);
  text-decoration: none;
}

/* Menú */

.menu a:not(.name) {
  display: inline-block;
  color: black;
  text-decoration: none;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 400;
  transform-origin: center center;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.menu a:not(.name):hover {
  color: #ff0000;
  transform: scale(1.08);
}

/* Imagen */

.artwork {
  width: 100%;
  height: calc(100vh - 40px);
  overflow: hidden;
}

.artwork img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: center center;
}

/* Galería de imágenes con scroll */
.image-series {
  width: 100%;
  height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 30px;
  padding: 20px;
}

/* Tablet */

@media (max-width: 1000px) {
  .site {
    grid-template-columns: 280px 1fr;
  }

  .name,
  .menu a:not(.name) {
    font-size: 28px;
  }
}

/* Mobile header (hidden on desktop) */
.mobile-header {
  display: none;
}

/* Mobile */

@media (max-width: 768px) {
  html,
  body {
    overflow: hidden;
  }

  /* Mobile top bar */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 100;
  }

  .mobile-header a {
    text-decoration: none;
  }

  .mobile-title {
    font-size: 20px;
    font-weight: 600;
    color: rgb(255, 0, 0);
  }

  .mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
  }

  /* Hide the sidebar nav on mobile by default */
  .menu {
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    width: 100%;
    background: white;
    padding: 16px;
    z-index: 99;
  }

  .menu.mobile-open {
    display: block;
  }

  /* Hide the desktop title inside nav on mobile */
  .menu .name {
    display: none;
  }

  .menu a:not(.name) {
    font-size: 28px;
    line-height: 1.8;
  }

  .site {
    display: block;
    padding: 8px;
    margin-top: 48px;
  }

  .artwork {
    width: 100%;
    height: calc(100vh - 56px);
  }

  .artwork img {
    object-fit: cover;
    object-position: top center;
  }
}

