/*
Theme Name: Joshman Theme
Template: twentytwentyfour
*/
/**
 * Smooth scrolling on the whole document
 */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

.project-categories-wrapper {
  background: white;
  border-radius: 20px;
  padding: 30px;
  width: -moz-fit-content;
  width: fit-content;
  flex-basis: 400px;
  min-width: 300px;
  height: -moz-fit-content;
  height: fit-content;
}
.project-categories-wrapper ul {
  margin-top: 0.5em;
  margin-left: 0;
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}
.project-categories-wrapper ul li {
  margin-left: 0;
  margin-bottom: 0;
}
.project-categories-wrapper ul li a {
  text-decoration: none;
  pointer-events: none;
}

.entry-content p {
  max-width: 30em;
  margin-bottom: 0.5em;
  margin-top: 0.2em;
}

hr, hr.wp-block-separator {
  margin-block: 2em;
  background: none;
  border: none;
  border-top: 1.5px solid lightgrey;
}

.soft-shadow {
  box-shadow: 0 50px 50px -50px rgba(0, 0, 0, 0.2);
}

@media screen and (min-width: 950px) {
  .wp-block-column:has(.project-categories) {
    display: flex;
    justify-content: flex-end;
  }
  .single .entry-content .alignwide {
    max-width: unset !important;
    width: calc(100% + 8rem);
    position: relative;
    margin-left: -4rem !important;
  }
}
h2 {
  margin-block: 0.5rem 1rem;
}

strong {
  font-weight: 500;
}

.text-small {
  font-size: 0.8em;
}

.text-grey {
  color: #7d7d7d;
}

.audio-container {
  display: flex;
  align-items: center;
  gap: 1em;
}

.waveform {
  flex-grow: 1;
}

.play-btn {
  height: -moz-fit-content;
  height: fit-content;
  line-height: 100%;
  display: flex;
  align-items: center;
  transition: transform 0.1s;
}
.play-btn:focus {
  outline: none;
  border: none;
}
.play-btn:active {
  transform: scale(0.985);
}

.project-grid {
  display: flex;
  flex-flow: column;
  gap: 40px;
  margin-block: 2em;
}

.project-grid .project {
  display: flex;
  padding: 20px;
  gap: 20px;
  border-radius: 32px;
  background-color: white;
  text-decoration: none;
  border: 2px solid white;
  box-sizing: border-box;
  transition: all 1s;
  box-shadow: 0 50px 50px -50px rgba(0, 0, 0, 0.2);
}
.project-grid .project h2 {
  margin-bottom: 0;
}
.project-grid .project > div {
  flex-basis: 50%;
  flex-shrink: 0.5;
}
.project-grid .project:hover {
  transition: all 0.25s;
  border-color: #434351;
}
.project-grid .project:hover .project-card__arrow {
  transition: transform 0.25s;
  transform: translateX(10px);
}

.project .project-img {
  aspect-ratio: 3/2;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
}

.project-text-content {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}
.project-text-content p {
  margin-top: 0.2em;
}

.project-card__arrow {
  transition: transform 1s;
}

.gallery-wrapper {
  box-shadow: 0 50px 50px -50px rgba(0, 0, 0, 0.2);
}

.circle-image {
  border-radius: 50%;
  overflow: hidden;
  mix-blend-mode: multiply;
  position: relative;
}
.circle-image:after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #434351;
  mix-blend-mode: screen;
}