* {
  -webkit-tap-highlight-color: transparent;
}

/* Removes outline from everything */
*:focus {
    outline: none;
}

/* Specific to input and textarea */
input:focus, textarea:focus {
    outline: none;
}

body {
  margin: 0;
  font-family: "EB Garamond", 'garamond', 'Times New Roman', Times, serif;
}

.eb-garamond-<uniquifier> {
  font-family: "EB Garamond", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.container {
  font-family: "EB Garamond", 'garamond', 'Times New Roman', Times, serif;
  padding: 40px;

  p {
    font-size: 20px;
  }

  h2 {
    margin: 0 0 40px;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.3em;
  }

  h3 {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: .05em;
    margin: 0 0 7px;
  }

  .header-lockup {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 40px;

    h2 {
      margin: 0;
    }

    button.menu-toggle {
      font-family: "EB Garamond", 'garamond', 'Times New Roman', Times, serif;
      background: none;
      border: none;

      @media (min-width: 769px) {
        display: none;
      }
    }
  }

  .main-content {
    display: flex;
    min-height: 100vh;
    gap: 40px;
    box-sizing: border-box;
    position: relative;

    .sidebar {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s ease;
      background: rgba(255, 255, 255, 0.95);
      z-index: 1000;
      display: flex;
      flex-direction: column;

      @media (min-width: 769px) {
        position: static;
        height: auto;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: block;
        width: 20%;
        padding: 0;
      }

      .projects {
        margin-bottom: 30px;
      }

      button {
        display: block;
        margin: 5px 0 0;
        padding: 0;
        width: 100%;
        cursor: pointer;
        border: none;
        background: none;
        text-align: left;
        font-size: 20px;
        font-family: "EB Garamond", 'garamond', 'Times New Roman', Times, serif;

        &.active {
          font-style: oblique;
        }
      }

      .sidebar.open {
        opacity: 1;
        pointer-events: auto;
      }
    }

    .sidebar.active {
      opacity: 1;
      display: block;
      pointer-events: all;
      width: 100%;

      @media (min-width: 769px) {
        width: 20%;
      }
    }

    .sidebar.active ~ .content {
      pointer-events: none;
    }
  }
  

  .content {
    width: 0;
    font-size: 20px;
    display: none;
    position: absolute;

    @media (min-width: 769px) {
      width: 80%;
      display: block;
      position: relative;
    }

    .content-container {
      display: none;

      &.active {
        display: block;
      }

      .carousel {
        position: relative;
        overflow: hidden;
        user-select: none;

        &:hover {
          cursor: default;
        }

        &.hover-left {
          cursor: w-resize;
        }

        &.hover-right {
          cursor: e-resize;
        }

        figure {
          margin: 0;
          display: none;
          text-align: center;

          &.active {
            display: block;
          }

          img {
            max-width: 100%;
            max-height: 90vh;
            height: auto;
            user-select: none;
            pointer-events: none;
          }
        }
      }
    }

    .content-container.default {
      figure {
        margin: 0;
        text-align: center;

        img {
          max-width: 100%;
          max-height: 90vh;
          height: auto;
        }
      }
    }

    .content-container.cv {
      .cv-inner {
        display: flex;
        flex-direction: column;
        gap: 50px;

        .cv-group {
          .cv-year:first-child {
            margin: 0;
          }

          .cv-year {
            display: flex;
            gap: 50px;
            margin: 20px 0 0;

            h3 {
              max-width: 100px;
              width: fit-content;
              margin: 2px 0 0;
            }

            ul {
              list-style: none;
              padding: 0;
              margin: 0;

              li:first-child {
                margin: 0;
              }

              li {
                margin: 6px 0 0;
              }
            }
          }
        }
      }
    }

    .content-container.contact {
      p {
        margin: 0 0 0;
      }
    }
  }

  .content.active {
    display: block;
    width: 100%;
    position: absolute;

    @media (min-width: 769px) {
      width: 80%;
      position: relative;
    }
  }
}