/**
 * Theme Name: Crown Hand Tools
 * Description: Crown Hand Tools WordPress theme
 * Author: Ayup Creative
 * Author URI: https://ayupcreative.com
 * Template: blocksy
 * Text Domain: blocksy
 * Version: 1.0
 */

main h1:not(.no-decoration),
main h2:not(.no-decoration),
main h3:not(.no-decoration),
main h4:not(.no-decoration),
main h5:not(.no-decoration),
main h6:not(.no-decoration) {
    display:flex!important;
    flex-direction: column;
}

main h1:not(.hp-listing__title),
main h2:not(.hp-listing__title),
main h3:not(.hp-listing__title),
main h4:not(.hp-listing__title),
main h5:not(.hp-listing__title),
main h6:not(.hp-listing__title) {
    width:fit-content!important;
}

main .hero-section[data-type="type-2"] h1:not(.no-decoration),
main .hero-section[data-type="type-2"] h2:not(.no-decoration),
main .hero-section[data-type="type-2"] h3:not(.no-decoration),
main .hero-section[data-type="type-2"] h4:not(.no-decoration),
main .hero-section[data-type="type-2"] h5:not(.no-decoration),
main .hero-section[data-type="type-2"] h6:not(.no-decoration) {
    margin-left:auto!important;
    margin-right:auto!important;
}

main h1:not(.no-decoration)::after,
main h2:not(.no-decoration)::after,
main h3:not(.no-decoration)::after,
main h4:not(.no-decoration)::after,
main h5:not(.no-decoration)::after,
main h6:not(.no-decoration)::after
{
    margin-top:5px;
    display: flex;
    content:'M'!important;
    font-size:0.5rem!important;
    color:transparent;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    width:100%;
    max-width:40rem;
    min-height:5px;
}

main h1.has-text-align-center,
main h2.has-text-align-center,
main h3.has-text-align-center,
main h4.has-text-align-center,
main h5.has-text-align-center,
main h6.has-text-align-center {
    display:block!important;
    width:100%!important;
}

main h1.has-text-align-center:not(.no-decoration)::after,
main h2.has-text-align-center:not(.no-decoration)::after,
main h3.has-text-align-center:not(.no-decoration)::after,
main h4.has-text-align-center:not(.no-decoration)::after,
main h5.has-text-align-center:not(.no-decoration)::after,
main h6.has-text-align-center:not(.no-decoration)::after
{
    margin-left:auto;
    margin-right:auto;
}

main h2::after,
main h3::after,
main h4::after {
    max-width:15rem;
}

footer ul.widget-menu li a {
    font-size:0.875rem!important;
}

.wpcf7-form .container {
    margin-bottom: 1rem!important;
}

.wpcf7-form .container label {
    margin-bottom: 0.25rem!important;
}

.hp-listing__image {
    margin: 0 auto;
}

.hp-listing__image a img {
    height: 3rem;
    width: 100%;
    object-fit: contain;
}

.hp-listing {
    padding: 2rem 2rem 1rem 2rem;
    border: 1px solid var(--theme-palette-color-5);
}

.hp-listing--view-block .hp-listing__created-date {
    display: none;
}

.hp-listing__title {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.hp-listing__location a {
    white-space: normal;
}

.hp-page {
    max-width: 100% !important;
}

.hp-listing__categories {
    text-align: center;
}

.hp-listing__location {
    text-align: center;
	display: block;
}

.hp-listing__location .hp-icon {
    display: none;
}

.hp-listing__attributes {
    text-align: center;
}

.hp-listing__location a, .hp-listing__categories a, .hp-listing__title a {
  pointer-events: none;
}

.hp-listing__image a {
	display: block;
	pointer-events: none;
	cursor: default;
}
