/*
  Site-specific overrides and reusable utility styles.
  Keep custom styles here so template CSS updates stay simple.
*/

/* Sidebar avatar */
#logo .image {
  width: 11em;
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.5em;
  background: transparent;
}

#logo .image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.image.avatar48 {
  background: transparent;
}

/* Portfolio card links */
#portfolio .item header h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  transition: none;
}

#portfolio .item header h3 a:hover {
  color: inherit;
  border-bottom: 0;
  text-decoration: none;
}

#portfolio .item[data-href] {
  cursor: pointer;
}

/* Skills */
.skill-container {
  width: 48%;
  margin-bottom: 20px;
}

.skill-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 1.2em;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.skills-subsection {
  margin-top: 2rem;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background-color: #ddd;
}

.progress {
  height: 100%;
  border-radius: 10px;
  background-color: #8ebebc;
}

.progress-65 {
  width: 65%;
}

.progress-70 {
  width: 70%;
}

.progress-80 {
  width: 80%;
}

.progress-85 {
  width: 85%;
}

.progress-90 {
  width: 90%;
}

.progress-95 {
  width: 95%;
}

.progress-100 {
  width: 100%;
}

/* Embeds */
.video-embed {
  position: relative;
  height: 0;
  overflow: hidden;
  padding-bottom: 56.25%;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-frame {
  width: 100%;
  height: 100vh;
  border: 0;
}

.pdf-mobile-fallback {
  margin: 1rem 0 2rem;
}

.pdf-mobile-fallback p {
  margin-bottom: 1rem;
}

@media screen and (max-width: 736px) {
  .skill-container {
    width: 100%;
  }
}
