
.yazar-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.yazar-item {
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden;
    padding: 10px;
}

.yazar-resim {
    margin: 0 auto;
    border-radius: 8px;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .yazar-grid-wrapper {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        scroll-snap-type: x mandatory;
        padding: 10px 0;
    }

    .yazar-item {
        flex: 0 0 calc(50% - 10px);
        scroll-snap-align: center;
    }

    .yazar-grid-wrapper::-webkit-scrollbar {
        height: 10px;
    }

    .yazar-grid-wrapper::-webkit-scrollbar-thumb {
        background-color: yellow;
        border-radius: 10px;
    }

    .yazar-grid-wrapper::-webkit-scrollbar-track {
        background-color: black;
    }
}
