* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  --main:rgb(230, 232, 219);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width:100vw;
  min-height: 100vh;
  background-color: var(--main);
}

h1, h2, h3, h4, h5 {
  color: rgba(108, 97, 97, 0.56);}
h1 {
  font-size: 40pt;}
h2 {
  font-size: 28pt;
  margin-top: 5px;
  margin-bottom: 5px;}
h3 {
  font-size: 20pt;
  margin-top: 5px;
  margin-bottom: 5px;}
h4 {
  font-size: 15pt;
  margin-top: 5px;
  margin-bottom: 5px;}
h5 {
  font-size: 12pt;
  margin-top: 5px;
  margin-bottom: 5px;}
p {
  color: rgba(52, 47, 47, 0.561);
  margin-top: 5px;
  margin-bottom: 5px;}
a {
  color:rgb(235, 161, 101);}

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 6rem;
  align-items: center;
}

.post-header {
  display: flex;
  align-self: center;
  justify-content: center;
  flex-direction: column;
  width: 70%;
  padding: 3rem;
  padding-bottom: 0;
}

.post {
  display: flex;
  align-self: center;
  justify-content: center;
  flex-direction: column;
  width: 70%;
  padding: 3rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.h-info {
  margin-top: -8px;
  margin-bottom: 5px;}
.h-info h5 {
  margin-top: 0;
  margin-bottom: 0;}
.h-info h5:nth-of-type(2) {margin-top: -5px;}

.blog-img {
  display: flex;
  align-items: center;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;}
.blog-img img {
  width: 100%;}
#height400px {
  height: 400px;}
#height500px {
  height: 500px;}
#height600px {
  height: 600px;}

.work-media {
  display: flex;
  align-items: center;
  width: 100%;
  /* height: fit-content; */
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;}
.work-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
  vertical-align: center;
  padding-bottom: 10px;  
  padding-top: 15px;}
.media-grid#misc-grid {
  grid-template-columns: repeat(3, minmax(200px, 1fr));}


.bandcamp-embed {
  width: 100%;
  max-width: 700px; /* optional */}
.bandcamp-embed iframe {
  width: 100%; /* adjust per embed type */
  aspect-ratio: 1 / 1;
  border: 0;}

.navbar {
  background-color: rgb(107, 107, 107);
  width: fit-content;
  border-bottom-right-radius: 20px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  transition: all 5s steps(2, end);
  transition: border-bottom-right-radius 200ms ease;}

.navbar button {
  transition: all 0.3s ease;
  background-color: transparent;
  border: none;
  color: var(--main);
  font-size: 1.2em;
  padding: 15px;
  text-align: left;
  cursor: pointer;
  width: 3em;
  height: 3em;
  overflow: hidden;}
.navbar button:hover {
  background-color: rgba(255, 255, 255, 0.1);}
.navbar button::after {
  content: "";
  position: absolute;
  transition: all 300ms ease;
  opacity: 0%;
  clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);}
  
.navbar:hover button {
  width: 9.4em;}
.navbar:hover button::after {
  opacity: 100%;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);}

.navbar:hover #home::after {
  content: "georgehearnden";}
.navbar:hover #about::after {
  content: "bout";}
.navbar:hover #blog::after {
  content: "log";}
.navbar:hover #work::after {
  content: "ork";}

.navbar button span {
  transition-delay: 1000ms;}
.navbar:has(.work-container:hover) {
  border-bottom-right-radius: 0;}

/* WORK NAV */

.work-container {
  transition: all 600ms ease;}
.work-container button::after {
  position: absolute;
  content: "";
  transition: all 600ms ease;
  opacity: 0%;
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);}
.work-container:hover button::after {
  opacity: 100%;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);}

.work-container:hover .work-nav {
  width: fit-content;}
.work-container:hover .work-nav button {
  height: 3em;}

.work-container:hover #projbtn::after {
  content: "projects";}
.work-container:hover #musicbtn::after {
  content: "music";}
.work-container:hover #miscbtn::after {
  content: "misc";}

.work-nav {
  position: fixed;
  z-index: 10;
  height: fit-content;
  background-color: rgb(92, 92, 92);
  width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  vertical-align: middle;
  border-bottom-right-radius: 20px;

  top: 173px;
  overflow: hidden;}
.work-nav button {
  transition: all 0.3s ease;
  background-color: transparent;
  border: none;
  color: var(--main);
  font-size: 1.2em;
  padding: 15px;
  text-align: left;
  cursor: pointer;
  width: 0;
  height: 0;
  overflow: hidden;
  position: relative;
}
.work-nav button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.work-nav button span {
  transition-delay: 1000ms;
}

/* PAGE MANAGEMENT */

.category {
  padding-top: 50px;
  color: rgba(108, 97, 97, 0.56);
}
.category:first-of-type {
  margin-top: -100px;
}
.category::after{
  content: "..........";
  color: transparent;
  display: inline;
}
.underline {
  background-color: rgba(108, 97, 97, 0.56);
  width: 300px;
  height: 3px;
}

.poster-container iframe {
  border:0; 
  width: 100%; 
  aspect-ratio: 16/9;
  max-width: 600px;
}
.poster-container .text p {
  padding-left: 0rem;
}
.poster-container #bodypose {
  aspect-ratio: 12 / 9;
}

.poster-container #py-audio {
  aspect-ratio: 11 / 9;
}

.poster-container {
  width: 70%;
  min-width: 500px;
  height: fit-content;
  margin: 1rem;
  margin-bottom: 2rem;
  margin-left: 0;
  /* align-self: center; */
}

.poster-two {
  display:grid; 
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem; 
}

.poster-container h3 {
  color: rgba(52, 47, 47, 0.561);
  padding-bottom: 1rem;
}

.poster {
  width: 100%;
  /* aspect-ratio: 2.1 / 3; */
  object-fit: cover;
  justify-self: center;
  align-self: center;
}

.hori {
  grid-column: span 2;
  /* margin-left: 4rem; */
}

.vid-link {
  padding-bottom: 1rem;
}

.reel {
  width: 100%;
  justify-self: left; 
}

@media only screen and (max-width: 687px) and (hover: none) {
  .media-grid {
    grid-template-columns: repeat(1, minmax(200px, 1fr));
  }
  .media-grid#misc-grid {
    grid-template-columns: repeat(2, minmax(80px, 1fr));}

  .post-header {
    width: 100%;
    padding: 0;
  }

  .video-grid {
    display: block;
    
  }
  .post {
    width: 100%;
    padding: 1rem;
  }

  .page #post-header {
    padding-left: 0;
    padding-top: 3rem;
  }
  
  .blog-img {
    height: auto;
  }

  #height400px {
    height: 400px;
  }

  #height500px {
    height: fit-content;
  }

  #height600px {
    height: fit-content;
  }

  .category:first-of-type {
    margin-top: 6rem;
  }

  .underline {
    width: 50%;
  }

  .navbar {
    width: 70%;
    min-width: unset;
    max-width: unset;
    flex-direction: row;
  }

  .navbar button {
    flex: 1;
    padding: 0px;
    padding-left: 15px;
  }
  .work-container:hover button::after {
    opacity: 0%;
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  }

  .work-container:hover .work-nav {
    width: 0;
  }

  .work-container:hover .work-nav button {
    height: 0;
  }
  .work-container,
  .work-container button::after,
  .work-nav,
  .work-nav button {
    transition: none;
  }
  .work-nav {
    display: none;
  }
  .work-container:hover #projbtn::after,
  .work-container:hover #musicbtn::after,
  .work-container:hover #miscbtn::after {
    content: "";
  }
  .work-container {
    flex: 1;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
  }

  .navbar:hover #home::after {
    content: "gh";
  }

  #home::after {
    content: "gh";
    opacity: 1;
    clip-path: none;
  }

  #blog::after {
    content: "log";
    opacity: 1; 
    clip-path: none;
  }

  #work::after {
    content: "ork";
    opacity: 1;
    clip-path: none;
  }

  .work-nav {
    display: none;
  }

  .page {
    padding: 2rem;
    width: 100vw;
    overflow: clip;
  }

  .poster-container {
    width: 100%;
    min-width: unset;
  }

  .poster-two {
    grid-template-columns: repeat(1, minmax(220px, 1fr));
  }

  .text p {
    width: 100%;
    min-width: unset;
    /* margin-left: 0rem; */
  }

  h3.work-header {
    margin-left: 1rem;;
  }

  .work-header {
    margin-left: 2rem;
  }

  .hori {
    grid-template-columns: repeat(1, minmax(200px, 1fr));
  }
}