.project-container {
    padding: 32px 0px;
}

button {
    cursor: none !important;
}

a:hover {
    cursor: none !important;
}

.project-list {
    list-style: none;
    padding: 0;
}

.project{
    flex: 1 1 100%;
    padding-bottom: 48px;
    /* width: auto; */
}

.project a {
    text-decoration: none;
    color: black;
}

.project a:hover .card-title{
    color: black;
    border-bottom: 1px solid black;
}

.project a:hover .image-group{
    opacity: 0.8;
}

.project-description {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 0px !important;
}

.image-group {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.main-image {
    position: relative;
    width: 100%; /* maintain full width */
    height: 70%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.main-image img {
    position: absolute; /* absolute position within the .main-image */
    top: 0;
    left: 0;
    height: 100%; /* refer to the .main-image height */
    width: 100%; /* refer to the .main-image width */
    object-fit: cover;
    border-radius: 8px 8px 0px 0px;
}

.sub-image{
    display: flex;
    align-items: stretch;
    min-height: 12vh;
    height: 30%;
    margin-top: 4px !important;
    gap: 4px;
}

.sub-image .col{
    flex: 1;
    min-height: 100%;
    padding: 0px;
    overflow: hidden;
    position: relative;
    background-color: rgb(243, 242, 242);
    box-sizing: border-box; 
    border: none !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* .sub-image img {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border: none !important;
} */

.sub-image .col:first-child {
    margin-left: 12px;
    border-radius: 0px 0px 0px 8px;
}

.sub-image .col:last-child {
    margin-right: 12px;
    border-radius: 0px 0px 8px 0px;
}

.sub-image .col:first-child img {
    /* margin: 0; */
    border-radius: 0px 0px 0px 8px;
}

.sub-image .col:last-child img{
    border-radius: 0px 0px 8px 0px;
}

.card-title{
    width: fit-content;
    margin: auto
}

/* Project details */
.small-avatar{
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.detail-title{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.carousel-control-prev-icon:after, .carousel-control-next-icon:after {
    display: none;
}

.carousel-inner {
    height: 30vh;
    overflow: hidden; 
    display: flex;
}

.carousel-item{
    background-color: white;
}

.carousel-item img {
    max-height: 100%;
    width: 100%; 
    object-fit: contain; 
    display: block;  
    margin: 0 auto; 
}

.detail-description{
    color: #3d3d4e;
    white-space: pre-line;
}

.detail-footer{
    display: flex;
    align-items: center;
}

.detail-footer img{
    width: 72px;
    height: 72px;
    margin: 0px 24px;
    border-radius: 50%;
}

.project-detail-line{
    display: inline-block;
    width: 100%;
    border: 1px solid #e7e7e9;
    background: transparent;
}

.thumbnail-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    justify-content: center;
}

.thumbnail-list li{
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgb(243, 242, 242);
    box-sizing: border-box; 
    border: none;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.thumbnail-list li:focus{
    border: 1px solid #3a3a4a;
}

.thumbnail-image {
    width: 100%;
    cursor: pointer;
    height: 100%;
    
}

/* Tablet view */
@media (min-width: 576px) {
    .project{
        flex: 1 0 48%;
        padding-bottom: 16px;
    }
}

/* Desktop view */
@media (min-width: 768px) {
    .project-container {
        padding: 48px 72px;
    }

    .project {
        flex: 1 0 32%;
        padding-bottom: 16px;
    }

    .carousel-inner{
        height: 80vh;
    }
}