* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

html {
  height: 100vh;
  width: 100vw;
  background-color: #161616;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: "Aglet Mono", monospace;
  font-weight: 100;
  font-size: 20px;
  letter-spacing: -1.4px;
  color: #e0e0e0;
}

.wrapper {
  display: flex;
  height: 80vh;
  width: 100vw;
  align-items: center;
  padding: 0 60px;
  gap: 60px;
  scroll-behavior: smooth;
}

.dogGif {
  margin: 30px;
  height: 350px;
  width: 350px;
  position: sticky;
  left: 175px;
  z-index: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dogGif img {
  height: 300px;
  width: auto;
}

.pages {
  position: relative;
  top: -25px;
  left: 100px;
  z-index: 1;
  height: 600px;
  width: max-content;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 80px;
}

.pages > div {
  height: 100%;
  position: relative;
  display: flex;
  left: 0;
  flex-direction: column;
  justify-content: center;
  text-wrap: nowrap;
  margin: 75px 0;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.pages > div:last-child {
  margin-right: 100px;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.1s ease-out;
  pointer-events: none;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.1s ease-out;
}

.toggle {
   transition: opacity 0.3s ease;
}

.toggle:hover {
  opacity: 0.5;
  cursor: pointer;
}

/* ========== FLEX CONTAINERS FOR INSIDE CONTENT ========== */

.about .mediaRow {
  display: flex;
  flex-direction: column; /* stack p tags vertically */
  align-items: flex-start; /* align left */
  gap: 0.2rem; /* space between p tags */
  margin-top: 2px;
  overflow: visible;
}

.about .mediaRow p {
  align-self: flex-start;
  width: 600px !important;
  white-space: normal;
  word-wrap: break-word;
}

.about .mediaRow p:nth-of-type(3) {
  margin-top: 10px;
}

.about span,
.block-text span {
  font-size: 0.70rem;
  opacity: 60%;
}

.mediaRow,
.insidePhoto,
.insideVideo,
.insideDesign,
.insideLight,
.insideDJ {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-wrap: nowrap;
  gap: 70px;
  overflow: auto;
  max-width: 100%;
}

.insidePhoto,
.insideVideo,
.insideDesign,
.insideLight,
.insideDJ {
  gap: 5px;
}

.about .mediaRow p,
.block-text p{
  font-size: 0.87rem;
  align-self: flex-start;
  width: 550px;
  white-space: normal;
  word-wrap: break-word;
}

.block-text p {
  line-height: 1.2em;
  font-size: 0.8rem;
  margin-top: 0.7em;
}

.block-text p:first-of-type {
  margin-top: 40px
}

a {
  text-decoration: none;
  color:#e0e0e0;
  opacity: 60%;
  font-weight: 100;
  transition: opacity 0.2s ease-in, color 0.2s ease-in;
}

a:hover {
  opacity: 100%;
  color: white;
}

.mediaRow {
  margin-top: 5px;
}

.cvToggle{
  opacity: 65%;
  cursor: pointer;
}

.cvImage {
  opacity: 0;
  max-width: 100%;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease;
}
.cvImage.show {
  opacity: 1;
  height: auto;
}

/* ========== CONTENT BLOCKS ========== */

.photo,
.video,
.design,
.light,
.dj {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-right: 40px;
}

h1 {
  font-size: 1.2em;
  font-weight: 100;
}

h2 {
  margin-top: -4px;
  justify-self: flex-start;
  font-size: 0.8rem;
  font-weight: 100;
}

.block iframe {
  margin-left: -20px;
}

.block img {
  max-height: 300px;
  width: auto;
  display: block;
}

.block video {
  max-height: 500px;
  width: auto;
}

/* ========== CONTENT PANEL ANIMATION ========== */

.content {
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  width: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.content.open {
  width: auto;
  opacity: 1;
  max-height: 200px;
  overflow: visible;
  margin-right: 50px;
}

/* MOBILE */

@media (max-width: 768px) {
  html {
    height: auto;
    width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto;
    font-size: 22px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
  }

  body {
    overflow-x: hidden !important;
  }

  .wrapper {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    padding: 0;
    gap: 40px;
  }

  .dogGif {
    position: sticky;
    top: 20px;
    left: 0;
    height: auto;
    width: 70%;
    margin: 70px auto 0 auto;
  }

  .dogGif img {
    max-width: 100%;
    height: auto;
  }

  .pages {
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    left: 55px !important;
    width: 100% !important;
    top: 0;
    flex-direction: column;
    height: auto;
    gap: 10px;
  }


  .pages > div {
    margin: 5px 0 !important;
  }

  .pages > div:last-child {
    margin-bottom: 20px !important;
  }

  .mediaRow,
  .insidePhoto,
  .insideVideo,
  .insideDesign,
  .insideLight,
  .insideDJ,
  .photo,
  .video,
  .design,
  .light,
  .dj {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    overflow: visible;
    width: 100%;
    text-align: start;
  }

  .insidePhoto,
  .insideVideo,
  .insideDesign,
  .insideLight,
  .insideDJ {
    width: 300px;
    flex-direction: column !important;
    gap: 5px;
    overflow-y: none;
    padding-right: 40px;
  }

  .about .mediaRow p {
    align-self: flex-start;
    width: 250px !important;
    white-space: normal;
    word-wrap: break-word;
  }

  .about .mediaRow p,
  .block-text p{
    font-size: 0.87rem;
    width: 250px;
    white-space: normal;
    word-wrap: break-word;
  }

  .block {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .block-text p {
    opacity: 0;
    transform: translateY(10px);
    margin-top: 0px;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: 
      opacity 0.6s ease,
      transform 0.6s ease,
      max-height 0.6s ease,
      margin-bottom 0.6s ease;
  }

  .block-text p.visible {
    opacity: 1;
    transform: translateY(0);
    margin-top: 20px;
    margin-bottom: 20px;
    max-height: 500px;        
  }

  .block-text p:first-of-type.visible {
    margin-top: 20px;
  }
  
  .block img,
  .block video {
    max-height: fit-content;
    width: 100%;
    padding-right: 0;
  }

  .block-text h1,
  .block-text h2,
  .block img {
    cursor: pointer;
  }

  .content.open {
    margin-right: 0;
  }
}

/* LARGER SCREENS */

@media (min-height: 900px) {

  html {
    height: auto;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    font-size: 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
  }

  .wrapper{
    margin-top: 110px;
  }

  .dogGif {
  margin: 30px;
  height: 400px;
  width: 400px;
  position: sticky;
  left: 405px;
  z-index: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dogGif img {
  height: 400px;
  width: auto;
}

.pages {
  position: relative;
  top: -25px;
  left: 350px;
  z-index: 1;
  height: 600px;
  width: max-content;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 100px;
}

.pages > div {
  height: 100%;
  position: relative;
  display: flex;
  left: 0;
  flex-direction: column;
  justify-content: center;
  margin: 75px 0;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

.mediaRow,
.insidePhoto,
.insideVideo,
.insideDesign,
.insideLight,
.insideDJ {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-wrap: nowrap;
  gap: 175px;
  overflow: auto;
  max-width: 100%;
}

.insidePhoto,
.insideVideo,
.insideDesign,
.insideLight,
.insideDJ {
  gap: 20px
}

.block img {
  max-height: 500px;
  width: auto;
  display: block;
  padding-right: 30px;
}

}

/* FIX IFRAME ON SMALLER SCREENS */

@media (max-height: 900px) {
  .block iframe {
  height: 300px;
  max-width: 500px;
  }

  .block video {
  height: 300px !important;
  width: auto;
}
}

/* LOAD-IN ANIMATIONS */

@keyframes fadeInGif {
  0% {
    opacity: 0;
    transform: translate(300px, 100px);
  }
  50% {
    opacity: 1;
    transform: translate(300px, 0px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

.dogGif {
  animation: fadeInGif 1.8s ease-in-out;
}

@keyframes fadeInPages {
  0% {
    opacity: 0;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.pages {
  animation: fadeInPages 2.1s ease-in-out;
}


@keyframes fadeInGifLarge {
  0% {
    opacity: 0;
    transform: translate(20vw, 100px);
  }
  50% {
    opacity: 1;
    transform: translate(20vw, 0px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}


@keyframes fadeInGifMobile {
  0% {
    opacity: 0;
    transform: translateY(150px);
  }
  50% {
    opacity: 1;
    transform: translateY(150px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 768px) {
  .dogGif {
    animation: fadeInGifMobile 1.8s ease-in-out;
  }
}

@media (min-width: 900px) {
  .dogGif {
    animation: fadeInGifLarge 1.8s ease-in-out;
  }
}