.case-study-intro{
    padding:2rem 8rem;
}

.header-img{
    padding: 2rem 2rem;

}

.header-img img{
    border-radius: 1rem;
}

video{
    width: 100%;
}

.graphic{
    position: relative;
    padding: 4rem 0 ;
    display: flex;
    align-items: center;
}

@media (max-width: 48.5em) {
    .graphic{
        display: none;
    }
}

.graphic video{
    z-index: 1;
}

.text-overlay{
    position: absolute;
    right:0;
    left:0;
    z-index: 10;
    justify-items: center;
    align-items: center;
}

.data{
    padding:0 2rem;
}



.section-container {
  display: flex;
  justify-content: center;
  padding-left: 2rem;
  padding-right:2rem;
  padding-bottom:2rem;
}

.inside-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-width: 80rem; 
}


.right-column {
  flex: 1; 
  min-width: 10rem;
}

.left-column{
  flex: 1; 
  min-width: 10rem; 
}

.left-column img{
    max-width: 70%;
    min-width: 10rem;
    border-radius: 1rem;
}

.right-column {
  flex: 2; 
}

.responsibilities{
    display: flex;
    flex-direction: row;
    gap:2rem;

}


.word-wrap{
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}




#HMW{
    max-width: 60rem;
    padding: 2rem 2rem 2rem 4rem;
}

.gallery {
    display: flex;
    flex-direction: row;
    overflow-x: auto; 
    max-width:70rem ;
    margin: 0 auto; 
    scroll-behavior: smooth;


}

.gallery div {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.gallery div span {
    transition: transform 0.3s;
    flex: 0 0 100%; 
}

.gallery div img {
    width: 100%;
    transition: transform 0.5s;
    pointer-events: none; 
}

.gallery span:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.gallery-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem 2rem 1rem;
    position: relative; 
}

#back-btn, #forward-btn {
    display: block; 
    position: absolute;
    top: 50%;
    height: 8vw;
    transform: translateY(-50%); /* Center vertically */
    min-height: 2rem;
    max-height: 3.25rem;
}

#back-btn {
    left: 0;
}

#forward-btn {
    right: 0;
}

.gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.bento-box{
    margin:2rem 4rem;
    gap:2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


.bento-box-card {
    flex-basis: 30rem;
    min-width: 17.5rem;
    height: auto;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: rgb(41, 41, 41);
}



.img-description{
    padding:1rem;
    margin: 0;
    background-color: rgb(41, 41, 41);
}

.bento-box-card img{
    transition: transform 0.2s; /* Apply transition to the element itself */
}
.hero-img:hover{
    cursor: pointer;
    transform: scale(1.2);
}


#Task_Flow{
    padding: 2rem;
} 


#Alicia{
    position: absolute;
    top: 1.5rem;
    left:1.5rem;
    max-width: 60%;
    z-index: 1;
} 

#Alicia:hover{
    z-index: 5;
}

#Martin{
    position: absolute;
    right:1.5rem;
    bottom: 2rem;
    max-width: 50%;
    z-index: 2;
}

#Martin:hover{
    z-index: 5;
}


.img-container{
    background-color: black;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.modal{
    display: block;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    top:0;
    right: 0;
    left: 0;
    bottom:0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 6;
    pointer-events: none;
    transition: 0.25s ease-out;
}


.modal.open{
    opacity: 1;
    pointer-events: all;
}

.modal img{
    position: absolute;
    max-width: 80%;
    max-height: 80%;
    height:auto;
    top:50%;    
    left:50%;
    transform: translate(-50%,-50%);
}

@media(max-width:30rem){
    .modal img{
        max-width: 100%;
    }
}



#development{
    margin:2rem 0;
}

.final-product{
    display: flex;
    flex-wrap: wrap;
}

.final-product div{
flex-grow: 1;
}

.final-product video{
    max-width: 28rem;
}

#final-mock{
    margin-top:6rem;
}

.mockup-info{
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right:auto;
    padding:3rem;
}


.pdfmodal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
   position: relative; 
    margin: 6rem auto;
    width: 80%;
    height: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 3rem;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#pdfViewer{
    position: absolute;
    left: 0;
    top: 0rem;

}





@media (min-width: 25rem) {
    .gallery-wrap {
        margin: 0 2rem 2rem 2rem;
    }
   
}

@media(min-width:31rem){
    
}


@media (min-width: 41.25rem) {
    .inside-container{
        flex-direction: row;
    }

   

    .responsibilities{
        flex-direction: column;
        gap:0;
    }

    .header-img{
        padding:8rem 2rem;
    }

}
@media (min-width:53rem) {
    
    .gallery div span {
        flex: 0 0 calc(32% - (2rem / 3)); /* Three images per row*/
    }
    #back-btn, #forward-btn {
        display: none; 
        
    }
  
}

@media (min-width:75rem) {
    .case-study{
        padding:2rem 16rem;
    }

}