#back {
    position: relative;
    display: block;
    height: 30px;
}
#close:hover {
    background-color: var(--sec-color-gray-tp);
}
#back > button {
    border: none;
    background-color: white;
    position: absolute;
    height: 100%;
    right: 0;
}
#back > button:hover {
    cursor: pointer;
}
#back > button > img {
    height: 100%;
}
.project-detail-container {
    display: flex;
    margin-top: 50px;
    height: 70vh;
    width: 100%;
}
.project-detail-div:first-of-type {
    width: 60%;
}
.project-detail-div:nth-of-type(2) {
    width: 35%;
    padding-left: 30px;
}

.project-detail-header {
    font-size: var(--headline-2);
    line-height: var(--headline-2-lineheight);
    margin-bottom: 6vh;
}
.project-detail-paragraph {
    font-size: var(--flowtext);
    margin-bottom: 3vh;
}
td:first-of-type {
    padding-right: 8px;
}
.project-detail-div img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.project-description {
    display: block;
    width: 60%;
    margin: 40px 0;
    font-size: var(--flowtext);
}
table {    
    margin: 0;
    padding: 0;
}
.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.gallery-item {
    position: absolute;
    
    width: 100%;
    height: 100%;
}
.gallery-item > img {
    object-fit: cover;
}
#next, #prev {
    position: absolute;
    height: 100%;
    width: 2.6vw;
    z-index: 2;
}
#next {
    right: 0;
}
#next:hover, #prev:hover {
    cursor: pointer;
    background-color: var(--sec-color-gray-tp);
}
.button-image {
    position: absolute;
    max-height: 30px;
    top: 50%;
    margin-top: -15px;
    width: 100%;
}
#next > .button-image {
    transform: rotate(-90deg);
}
#prev > .button-image {
    transform: rotate(90deg);
}

#slider-control {
    display: flex;
    justify-content: center;
    align-items: center;
}
#control-element {
    display: flex;
    flex-direction: row;
    align-items: center;
}
#next-img, #prev-img {
    margin: 5px;
    padding: 1px;
    width: 2.5vh;
    height: 2.5vh;
}
#next-img:hover, #prev-img:hover {
    cursor: pointer;
    background-color: var(--sec-color-gray-tp);
}
#prev-img {
    transform: rotate(90deg);
}
#next-img {
    transform: rotate(-90deg);
}
#image-amount {
    font-size: var(--subline);
    color: var(--prim-color);
}


.fade {
    animation-name: fade;
    animation-duration: 0.7s;
}  
@keyframes fade {
    from {opacity: .6} 
    to {opacity: 1}
}


@media only screen and (max-width: 1200px) {
    .project-detail-container {
        display: block;
        margin-top: 50px;
        height: fit-content;
        width: 100%;
    }
    .project-detail-div:first-of-type {
        width: 100%;
    }
    .project-detail-div:nth-of-type(2) {
        width: 100%;
        padding-left: 0px;
    }

    .project-description {
        display: block;
        width: 100%;
        margin: 40px 0;
        font-size: var(--flowtext);
    }
    .gallery-container {
        min-height: 45vh;
    }
}