* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

.custom-cursor {
    color: white;
}

.container {
    margin: 0 auto;
    padding: 40px;
}

header {
    text-align: right;
    margin-bottom: 40px;
}

header h4 {
    margin-top: 1rem;
    font-style: italic;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: right;
}

h2, h3 {
    font-weight: 700;
    text-align: right;
}

h2 {
    font-size: .85rem;
    margin-bottom: 5px;
}

h3 {
    font-size: 0.6rem;
    margin-bottom: 40px;
}

h4 { 
    font-size: 0.8rem;
}

* Improved dots animation */
.pulsing-text {
    display: inline-block;
}

.dot-1, .dot-2, .dot-3 {
    opacity: 0;
    animation: dots 1.5s infinite ease-in-out;
}

.dot-1 {
    animation-delay: 0.1s;
}

.dot-2 {
    animation-delay: 0.2s;
}

.dot-3 {
    animation-delay: 0.3s;
}

@keyframes dots {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}





.work-item {
    text-align: right;
    transition: all 0.75s ease-in-out;
    margin-bottom: 40px;
    cursor: pointer;
}

.work-item p {
    margin-bottom: 5px;
    font-size: .7rem;
    line-height: 1.4;
}

.media, .multi-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.75s ease-in-out;
    display: block;
    justify-content: right;
    transform-origin: top;
    position: relative;
}

.work-item.active .media, .work-item.active .multi-container {
    max-height: 500px; /* Enough for most content */
    transform-origin: top;
}

.media img {
    max-width: 15rem;
    height: auto;
    margin: 15px 5px;
    display: block;
}

.media video {
    max-height: 20rem;
    height: auto;
    margin: 15px 0;
    display: block;
    transform-origin: top;
    flex-shrink: 0;
   margin-left: auto;
}

.media iframe {
    width: 30rem;
    height: 20rem;
    margin: 15px 0;
    border: none;
}

.video-container {
    position: relative;
    display: inline-block; /* This makes the container fit the size of the video */
  }

  #nas-video {
    max-width: 40.8rem;
    margin-top: 5px;
  }

  
  .multi-container .video-container {
    position: relative;
    display: inline-block;
  }



.youtube-link {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  transition: transform 0.2s ease;
  opacity: 0;
}

.youtube-icon {
  width: 70px;
  height: auto;
  
}

.video-container:hover .youtube-link {
  opacity: 1;
    
}

.youtube-link:hover {
  transform: scale(1.1);
}


.multi-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
}

.multi-container video, .multi-container img {
    height: 15rem;
    width: auto;
    margin: 15px 0px 15px 20px;
    display: block;
}

.press {
    text-align: right;
    margin-top: 80px;
}

.press p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.icon-container {
    margin: 4rem 0 1rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: right;
    text-align: center;
}

.icon-container img {
    width: 8rem;
}

i {
    font-size: 25px;
    color: black;
    margin-right: 2rem;
}





@media (max-width: 768px) {
    body .container {
        padding: 20px;
    }
    
    body h1 {
        font-size: 2.2rem;
    }
    
    body h2 {
        font-size: 1.4rem;
    }

    body .multi-container {
        flex-wrap: wrap;
    }
    
    body video, body .multi-container video, body .media video {
        height: 12rem;
        width: auto;

    }

    body .media img, body .multi-container img {
        height: 10rem;
        width: auto;

    }

    body #nas-container .multi-container img {
        height: 7rem;
        margin-left: 1rem;
    }

    body #arsenal-container .multi-container img, body #arsenal-container .multi-container video {
        height: 6rem;
       
      
    }

    body #nike-container .multi-container img {
        height: 6rem;
   
     
    }

    body .media iframe {
        width: auto;
        height: 12rem;
    }


   body .youtube-link {
        display: none;
        visibility: hidden;
   }

   body .work-item.active .media, body .work-item.active .multi-container {
    max-height: 750px; /* Enough for most content */
}

   
}

