.mps-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.mps-posts__item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mps-posts__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.mps-posts__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
}

.mps-posts__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mps-posts__type {
    align-self: flex-start;
    margin: 1rem 1rem 0;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mps-posts__summary {
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.55;
    color: inherit;
}

.mps-posts__cta {
    margin: auto 1rem 1rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: currentColor;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.mps-posts__cta:hover,
.mps-posts__cta:focus {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 480px) {
    .mps-posts {
        grid-template-columns: 1fr;
    }

    .mps-posts__item {
        border-radius: 14px;
    }
}

.mps-posts__date {
    margin: 0.5rem 1rem 0;
    font-size: 0.875rem;
    opacity: 0.7;
}
.mps-post-loop-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.mps-post-loop-image--contain {
    object-fit: contain;
}

.mps-post-single-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.mps-post-gallery--slider {
    position: relative;
    width: 100%;
}

.mps-post-gallery--slider .mps-post-gallery__viewport {
    position: relative;
    width: 100%;
}

.mps-post-gallery--slider .mps-post-gallery__slide[hidden] {
    display: none;
}

.mps-post-gallery--slider .mps-post-gallery__slide img {
    display: block;
    width: 100%;
    height: auto;
}

.mps-post-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.mps-post-gallery__arrow--prev {
    left: 12px;
}

.mps-post-gallery__arrow--next {
    right: 12px;
}

.mps-post-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.mps-post-gallery__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: currentColor;
    cursor: pointer;
    opacity: 0.3;
}

.mps-post-gallery__dot[aria-current="true"] {
    opacity: 1;
}

.mps-post-gallery--slider img {
    -webkit-user-drag: none;
    user-select: none;
}