/* Hero Banner Block Styles */
.wp-block-cakeclub-hero-banner {
    width: 100%;
    position: relative;
}

.hero-banner-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #000000;
    overflow: hidden;
    min-height: 620px;
}

/* Centred image layer; left/right of it show the container background colour */
.hero-banner-image-layer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Edge fades so the image merges into the background colour */
.hero-banner-image-layer::before,
.hero-banner-image-layer::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    pointer-events: none;
}

.hero-banner-image-layer::before {
    left: 0;
    background: linear-gradient(to right, #000000, transparent);
}

.hero-banner-image-layer::after {
    right: 0;
    background: linear-gradient(to left, #000000, transparent);
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
}

.hero-banner-text-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 60%;
}

.hero-banner-heart-wrapper {
    margin-bottom: 5px;
    /* Nudges the heart toward the centre of the script line, like the design */
    padding-left: 18%;
}

.hero-banner-heart {
    display: block;
    width: 70px;
    height: auto;
    transform: rotate(-8deg);
}

.hero-banner-heading-group {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.hero-banner-script {
    font-family: 'BNRendallScript', cursive;
    font-weight: normal;
    line-height: 1;
    margin-bottom: 5px;
    text-transform: none;
}

.hero-banner-heading {
    font-family: var(--font-heading, 'Mindset', sans-serif);
    font-weight: normal;
    line-height: 0.95;
    letter-spacing: 2px;
    text-transform: uppercase;
    word-wrap: break-word;
}

/* Alignment variations */
.hero-banner-align-left .hero-banner-content {
    justify-content: flex-start;
}

.hero-banner-align-left .hero-banner-text-wrapper {
    align-items: flex-start;
    text-align: left;
}

.hero-banner-align-center .hero-banner-content {
    justify-content: center;
}

.hero-banner-align-center .hero-banner-text-wrapper {
    align-items: center;
    text-align: center;
}

.hero-banner-align-center .hero-banner-heart-wrapper {
    padding-left: 0;
}

.hero-banner-align-right .hero-banner-content {
    justify-content: flex-end;
}

.hero-banner-align-right .hero-banner-text-wrapper {
    align-items: flex-end;
    text-align: right;
}

.hero-banner-align-right .hero-banner-heart-wrapper {
    padding-left: 0;
    padding-right: 18%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-banner-container {
        min-height: 420px;
    }

    .hero-banner-content {
        padding: 40px 20px;
    }

    .hero-banner-text-wrapper {
        max-width: 100%;
    }

    .hero-banner-heading {
        letter-spacing: 1px;
    }
}
