body {
    display: flex;
    flex-direction: column;
}

.credit {
    text-align: end; 
    width: 100%; 
    display: block; 
    font-size: 0.8em; 
    font-style: italic;
}

#main-project {
    margin-top: 50px;
    width: 75%;
    align-self: center;
}

#scroll-img-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

#img-big {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.667);
    z-index: 500;
    justify-content: center;
    align-items: center;
}

#img-big.open {
    display: flex;
}

#img-big .scroll-left {
    position: absolute;
    top: 50%;
    left: 5px;
    cursor: pointer;
    background: none;
    border: none;
    color: #FFF;
}

#img-big .scroll-right {
    position: absolute;
    top: 50%;
    right: 5px;
    cursor: pointer;
    background: none;
    border: none;
    color: #FFF;
}

#big-img {
    max-width: 85%;
    max-height: 95%;
}

.scroll-img {
    width: 100%;
    height: 50vh;
    align-self: center;
    overflow: scroll;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 8;
}

.scroll-img img {
    height: 100%;
    width: auto;
    z-index: 9;
    cursor: zoom-in;
}

#project-section {
    margin-top: 40px;
    width: 100%;
    align-self: center;
    display: flex;
    gap: 20px;
}

.scroll-img-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.scroll-img-btn svg {
    color: rgb(255, 252, 252);
}
  
.scroll-img-btn.scroll-right {
    right: 0;
    transform: translateX(20px);
  }
  
.scroll-img-btn.scroll-left {
    left: 0;
    transform: translateX(-20px);
}
  
#scroll-img-container:hover .scroll-img-btn {
    opacity: 1;
    transform: translateX(0);
}

.text-column {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    word-wrap: break-word;
}

.text-column p  {
    text-align: justify;
    margin: 0;
}

#main-project h2 {
    font-size: 1.3em;
}

.img-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: end;
    padding-top: 150px;
    gap: 20px;
}

.img-column figure {
    width: 90%;
    max-width: 100%;
    margin: 0px;
}

.img-column img {
    height: auto;
    width: 100%;
    object-fit: contain;
}

@media all and (max-width: 780px) {
    #main-project {
        width: 90%;
    }
}

@media all and (max-width: 780px) {
    #main-project {
        margin-top: 70px;
    }
}

@media all and (max-width: 650px) {
    #project-section {
        flex-direction: column;
    }

    .img-column img {
        width: 100%;
    }
}

@media (hover: none) and (pointer: coarse) {
    .scroll-img-btn {
        opacity: 1 !important;
        align-items: center;
        justify-content: center;
    }
}