/*პროექტების სიისთვის*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    margin-bottom: 50px;
    transform: translateX(-10px);
}
.project-year {
    font-size: 15px;
    transform: translateY(8px);
    margin-bottom: 10px;
    float: left;
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    opacity: 0.9;
    margin: 15px;
    cursor: pointer;
}

.project-card img {
    max-width: 100%;
    height: auto;
    border-style:double;
}

.details-button {
    display: inline;
    margin-top: 10px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    float: right;
}
/*პროექტების დეტალებისთვის*/

.projects-details {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 85vh;
    width: calc(100% - 40px);
    margin-top: 50px;
    margin-bottom: -22px;
}

.project-detail-card {
    border-radius: 8px;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.project-detail-header h3 {
    margin: 0;
    font-size: 24px;
}

.project-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.project-detail-image-area
{
    width: 50%;
}

.project-detail-main-image img
 {
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
    transition: transform 0.2s ease;
    border-style: double;
}

.project-detail-main-image img:hover
{
    transform: scale(1.05);
}

.project-detail-image-collage
{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.collage-grid img {
    width: 97%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
    cursor: zoom-in;
    border-style: double;
}

.collage-grid img:hover {
    transform: scale(1.05);
}

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    cursor: pointer;
    text-align: center;
    line-height: 100%;
}

#overlay img {
    max-width: 80%;
    max-height: 80%;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.project-detail-full-description {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
    text-align: justify;
    text-justify: inter-word; /* გამოავლენს ტექსტს თანაბრად */
    margin-bottom: 10px;
    text-indent: 30px; /* პირველი აბზაცის დასაწყისის მანძილი */
}

.project-detail-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center; /* ტექსტის ცენტრში მორგება */
    gap: 20px;
    position: relative;
}

.project-detail-section-image-area {
    position: relative;
    width: 100%;

}

.project-detail-section-image-area > img {
    border-style: double;
    width: 100%;
}

.project-detail-section > p {
    width: 90%;
    margin-left: 5%;
    text-align: justify;
    text-justify: inter-word;
}

.caption {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
}

.projects-details-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.project-detail-year {
    font-weight: bold;
    font-size: 16px;
}

.footer-icons i {
    font-size: 20px;
    margin-left: 10px;
    cursor: pointer;
}

    /* ძირითადი კონტეინერის სტილები */
    .projects-filter-area {
        display: flex;
        flex-wrap: wrap; /* ელემენტები გადახვევა, თუ საჭირო იქნება */
        justify-content: space-between; /* ელემენტების თანაბრად განაწილება */
        align-items: center; /* ვერტიკალური ცენტრი */
        gap: 15px; /* სივრცე ელემენტებს შორის */
        max-width: 1200px; /* მაქსიმალური სიგანე */
        margin: 0 auto; /* ცენტრში კონტეინერის განლაგება */
        padding: 20px; /* შიდა სივრცე */
        box-sizing: border-box;
        border-radius: 10px; /* მომრგვალებული კუთხეები */
        width: calc(100% - 25px) ;
        margin-left: -0px;
    }

    /* ლეიბლების სტილები */
    .projects-filter-area label {
        font-weight: bold;
        font-size: 16px;
        margin-right: 10px;
    }

    /* Select, input და button სტილები */
    .projects-filter-area select,
    .projects-filter-area input,
    .projects-filter-area button {
        flex: 1;
        padding: 10px;
        font-size: 16px;
        border-radius: 5px; /* მომრგვალებული კუთხეები */
        box-sizing: border-box;
        transition: all 0.3s ease;
    }

    .projects-filter-area select,
    .projects-filter-area input {
        max-width: 200px; /* მაქსიმალური სიგანე for select and input */
    }

    .projects-filter-area input {
        flex: 2; /* საძიებო ველი იქნება ორჯერ ფართო */
    }

    /* ღილაკების სტილები */
    .projects-filter-area button {
        cursor: pointer;
        border: none;
        font-weight: bold;
        padding: 10px 20px;
    }

    /* მობილური მოწყობილობების სტილები */
    @media (max-width: 768px) {
        .projects-filter-area {
            flex-direction: column; /* ელემენტები ვერტიკალურად განლაგდება */
            gap: 10px;
            margin-left: 10px;
        }

        .projects-filter-area select,
        .projects-filter-area input,
        .projects-filter-area button {
            text-align: center;
            max-width: 100%; /* სრული სიგანე */
        }

        .projects-filter-area *{
            width: 100%;
        }

        .projects-filter-area input {
            flex: 1; /* სრულად განლაგდება ვერტიკალურად */
        }
    }
@media (max-width: 768px) {
    .projects-grid {
        transform: translateX(0px);
    }
    .project-content
    {
        flex-direction: column;
    }

    .project-detail-image-area,
    .project-detail-image-collage {
        width: 100%;
    }

    .collage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-detail-section .project-detail-section-image-area:nth-child(2){
        margin-top: 20px;
    }
}