.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 32px;
}

.tiles .tile-post {
    width: 100%;
    max-width: 499px;
    overflow: hidden;
    position: relative;
    background: var(--white);
    box-shadow: rgba(50, 50, 93, 0.15) 0px 13px 27px -5px, rgba(0, 0, 0, 0.2) 0px 8px 16px -8px;
    border-radius: 20px;
    transition: all 300ms ease-out 0s;
}

.tiles .tile-post:hover {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.tiles .tile-post a,
.tiles .tile-post a:hover {
    text-decoration: none;
}

.tiles .tile-post a {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.tiles .tile-post a:hover .button-primary {
    background: var(--secondary-color);
}

.tiles .tile-post figure {
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
    position: relative;
    max-height: 275px;
    height: 100%;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.tiles .tile-post figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.tiles .tile-post figure:before {
    content: "";
    width: 100%;
    height: 100%;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    transition: all 300ms ease-out 0s;
}

.tiles .tile-post:hover figure:before {
    background: rgba(84, 58, 235, 0.75);
}

.tiles .tile-post:hover figure + span {
    bottom: -36px;
    opacity: 1;
}

.tiles .tile-post figure img {
    -webkit-transform: rotate(14deg) scale(1.4);
    transform: rotate(14deg) scale(1.4);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.tiles .tile-post:hover figure img {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
}

.tiles .tile-content {
    color: rgba(33, 37, 41, 0.5);
    font-size: var(--font-size-h6);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    padding: 24px 16px;
}

.tiles .tile-content .header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px dashed #e9e9e9;
    padding-bottom: 16px;
}

.tiles .tile-content .title {
    font-size: var(--font-size-h4);
    font-style: normal;
    color: var(--text-color);
    margin: 0;
}

.tiles .tile-content .date {
    font-size: 12px;
}

.tiles .tile-category {
    font-size: 12px;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 999;
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 8px;
    line-height: 1;
    border-radius: 20px;
}

@media (max-width: 992px) {
    .tiles {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .tiles .tile-content .title {
        font-size: var(--font-size-h3);
    }

    .tiles .button {
        width: 100%;
    }
}
@media (max-width: 576px) {
    .tiles {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}