/* ========= PORTFOLYO GRID TASARIMI ========= */



.latest-projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0px auto; /* Sayfanın ortasında hizalama */
    margin-top: 40px;
    padding: 0;
    max-width: 1300px;
    width: 90%;
    justify-content: center;
}
/* Tablet: 4 sütun */
@media (max-width: 1280px) {
    .latest-projects {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Tablet: 2 sütun */
@media (max-width: 1024px) {
    .latest-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil: 1 sütun */
@media (max-width: 768px) {
    .latest-projects {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .project-item {
        padding: 15px;
        width: 100%;
        text-align: left; /* İçeriği sola yasla */
    }

    .project-item img {
        max-height: 220px;
        width: 100%;
        object-fit: cover;
    }

    .project-title {
        font-size: 18px;
        margin-top: 10px;
    }

    .project-location,
    .project-category {
        font-size: 14px;
    }
}


/* Tek Bir Proje Kutusu */
.project-item {
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.project-item:hover {
    transform: scale(1.05);
}

/* Proje Görseli */
.project-item img {
    width: 100%; /* Sabit genişlik */
    height: 215px; /* Sabit yükseklik */
    object-fit: cover;
}

/* Proje İçeriği */
.project-content {
    padding: 15px;
    flex-grow: 1;
}

/* Proje Başlığı */
.project-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Konum Bilgisi */
.project-location, 
.project-category {
    font-size: 14px;
    color: #626262;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* İnce Çizgi */
.project-divider {
    width: 100%; /* Daha kısa çizgi */
    margin-left: 0; /* Sola yasla */
    margin-top: 10px;
    margin-bottom: 10px;
    border: 0;
    height: 1px;
    background: #ccc;
}



/* ========= SINGLE SAYFASI SLIDER TASARIMI ========= */

.project-slider {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.main-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
}

/* Thumbnail Galeri */
.thumbnail-gallery {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.thumbnail-gallery img {
    width: 80px;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumbnail-gallery img:hover {
    opacity: 0.7;
}

/* ========= MODAL GÖRÜNTÜLEME ========= */

.modal {
    display: none;
    position: fixed;
    z-index: 9999 !important;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

/* Modal İçindeki Resmi Tam Ekran Göster */
.modal-content {
    width: 70vw;
    height: 70vh;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Kapatma Butonu */
.close-modal {
    z-index: 10000 !important;
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* İleri/Geri Butonları */
.prev, .next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
}

.prev { left: 20px; }
.next { right: 20px; }


