/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Back to Portfolio Button */
.ctp-back-button-wrapper {
	margin-inline: auto;
    width: var(--theme-container-width);
    max-width: var(--theme-block-max-width);
    margin-bottom: 12px;
}

.ctp-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid #ED982F;
    border-radius: 4px;
    background: #ED982F;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.ctp-back-button:hover {
    background: #C87611;
    color: #ffffff;
    border-color: #C87611;
}

.ctp-back-arrow {
    font-size: 18px;
    line-height: 1;
}


.ctp-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.ctp-category-card {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.ctp-category-card:hover {
    transform: translateY(-5px);
}

.ctp-category-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ctp-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ctp-category-content {
    padding: 20px;
}

.ctp-category-title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

.ctp-category-count {
    font-size: 14px;
}

@media (max-width: 1024px) {

    .ctp-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {

    .ctp-category-grid {
        grid-template-columns: 1fr;
    }

}