.wp-block-custom-theme-category-block {
    margin-bottom: 20px;
}

.wp-block-custom-theme-category-block .category-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.wp-block-custom-theme-category-block .category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wp-block-custom-theme-category-block .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.wp-block-custom-theme-category-block .category-overlay {
    left: 0;
    top: 0;
    color: white;
    background-color: var(--wp--preset--color--custom-page-title);
    height: calc(100% - 4rem);
    width: calc(100% - 4rem);
    transition: transform 0.3s ease;
    position: absolute;
    z-index: 5464;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transform: translate(0px, 1000px);
}

.wp-block-custom-theme-category-block .category-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
}

.wp-block-custom-theme-category-block .category-excerpt {
    font-size: 18px;
    line-height: 1.4;
}

.wp-block-custom-theme-category-block .category-image-container:hover .category-image {
    transform: scale(1.05);
}

.wp-block-custom-theme-category-block .category-image-container:hover .category-overlay {
    transform: translate(0px, 0px);
}

.wp-block-custom-theme-category-block .category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
