.project{
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;
}
.project__block{
    position: relative;
    display: flex;
    flex-direction: column;
    gap:16px;
    max-width: 400px;
    height: 670px;
    border-radius: 20px;
    overflow: hidden;
    justify-content: space-between;
}
   
.project__image{
    position: relative;
    z-index: 1;
    width: 100%;
    height: 670px;
    border-radius: 20px;

}
.project__image1{
    width: 100%;
    height: 100%;
    height: 214px;
    border-radius: 20px;
    overflow: hidden;
    object-fit: cover;
}
.project__image2{
    width: 100%;
    height: 100%;
    height: 440px;
    border-radius: 20px;
}
.project__image3{
    width: 100%;
    height: 100%;
    height: 354px;
    border-radius: 20px;
    overflow: hidden;
    object-fit: cover;
}
.project__image4{
    width: 100%;
    height: 100%;
    height: 300px;
    border-radius: 20px;
}
.project__name{
    display: flex;
    position: absolute;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    color: red;
    z-index: 2;

}
.project {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.project__block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    height: 670px;
    border-radius: 20px;
    overflow: hidden;
    justify-content: space-between;
}

.project__block-project {
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.project__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.project__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.project__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0) 80%,
        rgba(255, 255, 255, 0.1) 80%,
        rgba(255, 255, 255, 0.3) 60%,
        rgba(255, 255, 255, 0.5) 100%
    );
    
     backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    mask-image: linear-gradient(to top, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.project__name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    color: #ffffff;
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.project__block-project:hover .project__overlay {
    height: 70%;
    opacity: 1;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.project__block-project:hover .project__name {
    opacity: 1;
    transform: translateY(0);
}

.project__block-project:hover .project__image {
    transform: scale(1.05);
}
.project {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;
}

.project__block--first {
    width: 400px;
    height: 670px;
}

.project__block-project--1 {
    height: 214px;
}

.project__block-project--2 {
    height: 440px;
}


.project__block--second {
    width: 446px;
    height: 670px;
}

.project__block-project--3 {
    height: 354px;
}

.project__block-project--4 {
    height: 300px;
}


.project__block--third {
    width: 400px;
    height: 670px;
}


.project__block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 20px;
    overflow: hidden;
    justify-content: space-between;
}

.project__block-project {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.project__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.project__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.project__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0) 80%,
        rgba(255, 255, 255, 0.1) 80%,
        rgba(255, 255, 255, 0.3) 60%,
        rgba(255, 255, 255, 0.5) 100%
    );
    
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    mask-image: linear-gradient(to top, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 20px;
}

.project__name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    color: #ffffff;
    z-index: 3;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}


.project__block-project:hover .project__overlay {
    height: 70%;
    opacity: 1;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.project__block-project:hover .project__name {
    opacity: 1;
    transform: translateY(0);
}

.project__block-project:hover .project__image {
    transform: scale(1.05);
}

#modalImage {
    transition: opacity 0.25s ease;
}

#modalImage.fade-out {
    opacity: 0;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    /* margin-top: 16px; */
    overflow-x: auto;
    padding-bottom: 6px;
    justify-content: center;
}

.gallery-thumb {
    width: 102px;
    height: 79px;
    object-fit: cover;
    opacity: 0.5;
    cursor: pointer;
    border-radius: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-thumb.active {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-slider {
    width: 100%;
    height: 80%;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
}
