* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    min-height: 100vh; /* Sayfayı tamamen kaplayacak */
}

main {
    width: 100%; /* Genişliği yüzde 100 yapıyoruz */
    display: flex;
    justify-content: center; /* İçeriği yatayda ortalıyoruz */
    padding: 100px 0 50px; /* Üst boşluğu artırıyoruz (100px), alt boşluk 50px */
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 200px); /* Her biri 200px genişliğinde 5 sütun */
    gap: 20px; /* Resimler arasındaki boşluğu artır */
    justify-content: center; /* Galeriyi yatayda ortalıyoruz */
}

.gallery-item {
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}


/* Modal stili */
.modal {
    display: none; /* Başlangıçta görünmesin */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden; /* Modal açıldığında kaymayı engelle */
}

.modal-content {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 80%;
    height: 80%;
    margin: auto;
    top: 10%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1001;
}

.modal-left {
    flex-basis: 60%;
}

.modal-left img {
    width: 100%;
    height: auto;
}

.modal-right {
    flex-basis: 35%;
    color: black;
    padding: 20px;
    font-size: 18px;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: black; /* Düğmenin rengi */
    background-color: white; /* Beyaz arka plan */
    padding: 5px 10px;
    border-radius: 50%; /* Yuvarlak buton */
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002; /* Çarpı düğmesi diğer öğelerin üzerinde olmalı */
}

.close:hover,
.close:focus {
    color: #999;
    background-color: #f0f0f0;
}

/* Galeri Stili */
.gallery {
    display: grid;
    grid-template-columns: repeat(5, 200px); /* Her biri 200px genişliğinde */
    gap: 20px; /* Resimler arasındaki boşluk */
    padding: 50px;
    justify-content: center;
}

.gallery-item {
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
