/* Arrow navigation like banner-main-wrapper */

.posts-grid-wrapper {
    position: relative;
}

/* Hide scrollbar but keep scroll functionality */
.posts-grid {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.posts-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.posts-grid-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 0;
}

.posts-grid-nav:hover:not(:disabled) {
    background-color: var(--color-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transform: translateY(-50%) scale(1.15);
    border-color: rgba(0, 0, 0, 0.15);
}

.posts-grid-nav:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95);
}

.posts-grid-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.posts-grid-nav svg {
    width: 24px;
    height: 24px;
}

.posts-grid-nav-left {
    left: calc(var(--spacing-md) * -3);
}

.posts-grid-nav-right {
    right: calc(var(--spacing-md) * -3);
}

@media (max-width: 768px) {
    .posts-grid-nav {
        width: 36px;
        height: 36px;
    }

    .posts-grid-nav svg {
        width: 20px;
        height: 20px;
    }

    .posts-grid-nav-left {
        left: var(--spacing-sm, 10px);
    }

    .posts-grid-nav-right {
        right: var(--spacing-sm, 10px);
    }
}
