/* GRID */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 570px);
    gap: 60px;
    justify-content: start; /* centers grid on page */
    margin-top: 40px;
	margin-bottom: 60px;
}

/* WRAPPER */
.post-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* CARD */
.post-card {
    width: 570px;
    height: 330px;
    display: block;
    position: relative;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow: -12px 12px 25px rgba(0, 0, 0, 0.25);

    text-decoration: none;
    overflow: hidden;
    border-radius: 20px;
    margin: 20px 0 30px 0;

    z-index: 0; /* important */
}

.post-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("../images/white.png");
    background-repeat: repeat;
    background-position: center;

    opacity: 0.5; /* 👈 controls image transparency */

    z-index: 1;
    pointer-events: none;
}

/* TITLE TOP LEFT */
.post-title {
    position: absolute;
    top: 10px;
    left: 20px;

    color: var(--color-main-menu);
    font-size: 60px;
    font-weight: 600;

    z-index: 2;
}

/* BUTTON UNDER CARD */
.post-button {
    margin-left:20px;
}


/* RESPONSIVE */
@media (max-width: 1280px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 40px;
    }

    .post-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}