#projects{
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

#projects_meta{
    justify-content: center; 
    text-align: center;
    display: grid;
    margin: 3px auto;
}

#projects_meta p{
    justify-content: center; 
    margin: 2px auto;
}

.project_link_icon{
    width: 35px;
}

.project_back{
    padding: 5px;
    border: #333 2px solid;
    border-radius: 3px;
    margin: 5px;
    background-color: #333;
    color: white;
    width: 300px;
    height: 385px;
    display: inline-block;
}

.project_back div{
    padding: 5px;  
}

.project_name{
    font-size: 20px;
    width: 100%;
    height: 40px;
}

.project_meta-info{
    font-size: 16px;
    font-style: italic;
    text-align: right;
}

.project_time{
    font-size: 16px;
    font-style: italic;
        text-align: right;
}
                
.project_description{
    text-align: justify;
}

.project_main_image{
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
}

a.project_card_click {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: whitesmoke;
}
a.project_card_click:visited {
    text-decoration: none;
    color: whitesmoke;
}


/* Pop-up CSS */

#project_popup_overlay{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 300ms;
    visibility: hidden;
    opacity: 0;
}

#project_popup{
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 55%;
    max-width: 666px;
    max-height: 70%;
    position: relative;
    transition: all 500ms ease-in-out;
    overflow: auto;
}

#project_popup .close {
    position: absolute;
    top: 5px;
    right: 20px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

#project_popup .close:hover {
    color: #06D85F;
}

#project_popup_video{
    width: 100%;
    height: 400px;
}

#project_popup_title{
    font-weight: bold;
    font-size: 24px;
    padding: 10px 0px;
}

#project_popup_info{
    font-size: 18px;
    padding: 10px 0px;
}

#project_popup_tags{
    font-style: italic;
    padding: 10px 0px;
    font-style: bold;
    color: #333;
}

#project_popup_dates{
    padding: 10px 0px;
    font-style: italic;
    color: #333;
}

/* for grouping types - added Sep 2025 */
.project-list-group-title{
    margin: 0px;
    padding: 10px;
    padding-left: 20px;
    font-size: 18px;
    width: 100%;
    box-sizing: border-box;
}
.project-list-group-title:hover{
    background-color: #333;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #fff;
    border-radius: 15px;
    border-bottom: 3px double black;
}

.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  margin-right: 10px;
}

.arrow-right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.arrow-down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

/* REMOVED 2 column pop-up in May 2025 */
#project_popup_left{
    width: 70%;
    display: block;
    float:left;
    height: 100%;
}

#project_popup_right{
    width: 30%;
    display: block;
    margin-left: 70%;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
    padding: 10px;
}

/* UI changes for phone */
@media (max-width: 768px)  {
    .project_back{
        display: block;
        margin: 10px auto;
    }
    #project_popup{
        margin: 20px;
        width: inherit;
        height: inherit;
    }
    #project_popup_video{
        height: 250px;
    }
    /* REMOVED 2 column pop-up in May 2025 */
    #project_popup_left{
        width: 100%;
        margin-top: 25px;
    }
    #project_popup_right{
        margin-top: 176px;
        width: inherit;
        margin-left: 0px;
    }
}