/*
	* CSS for Blocks
	*
	* @package      sallysbakingrecipes
	* @author       Lindsay Humes
	* @since        1.0.0
	* @license      GPL-2.0+
*/
.sbc-challenge {
    margin: 40px auto;
    border: 2px solid #fef6f7;
    border-radius: 5px;
}

.gleam-widget {
    background: url(../images/bg.png) repeat center;
    padding: 40px 20px;
}
.challenge-cta-button  {
    background: url(../images/bg-sprinkles.svg) repeat center;
    padding: 40px 20px;
    background-size: contain;
}
.challenge-cta-button .wp-block-button {
    margin: 20px auto;
    max-width: 1045px!important;
    border-radius: 5px;
}
.challenge-cta-button .wp-block-button__link {
    font-weight: 600;
    font-size: 24px;
    line-height: 1;
    border-radius: 5px!important;
    background: #C3366F;
    color: #fFFFFF!important;
}
.challenge-cta-button .wp-block-button__link:hover {
background: #117878;
}
/*--------------------------------------------------------------
## Block: Columns
--------------------------------------------------------------*/
.section-columns {
    padding: 20px 0 40px;
}
.section-columns .section-title {
    margin: 0 auto 10px;
    text-align: center;
}
.section-columns .content-meta {
    margin: 0 auto 10px;
    text-align: center;
    max-width: 800px;
}
.section-column-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 20px;
}
.column-img {
    position: relative;
    margin: -80px auto 0;
    display: block;
}
.column-img img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
}
.section-column {
    -webkit-box-shadow: 0 0 10px 0 rgba(33, 33, 33, .1);
    -moz-box-shadow: 0 0 10px 0 rgba(33, 33, 33, .1);
    box-shadow: 0 0 10px 0 rgba(33, 33, 33, .1);
    background: #FFFFFF;
    position: relative;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
}
h3.column-headline {
    margin: 10px auto;
}
.column-desc {
    line-height: 1.4;
    font-size: 16px;
}
.section-column .read-more {
    display: block;
    margin: 10px auto 0;
}

/*--------------------------------------------------------------
## Block: Callout Post Challenge
--------------------------------------------------------------*/
.callout-post-challenge {
    background: #FFFFFF;
    position: relative;
    max-width: 1045px;
    margin: 20px auto;
    width: calc(100% - 20px);
    border-radius: 5px;
    display: grid;
    grid-template-columns: 2fr 1fr;
        -webkit-box-shadow: 0 0 10px 0 rgba(33, 33, 33, .1);
    -moz-box-shadow: 0 0 10px 0 rgba(33, 33, 33, .1);
    box-shadow: 0 0 10px 0 rgba(33, 33, 33, .1);
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.monthly-icon {
        background: url(../images/icon-current-challenge.svg) no-repeat center;
        width: 100px;
        height: 100px;
        position: absolute;
        left: -50px;
        top: 20px;
      -webkit-animation: rotating 10s linear infinite;
      -moz-animation: rotating 10s linear infinite;
      -ms-animation: rotating 10s linear infinite;
      -o-animation: rotating 10s linear infinite;
      animation: rotating 10s linear infinite;
}
.callout-post-challenge-img {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    border-radius: 5px 0 0 5px;
}
.callout-post-challenge-img img:first-child {
        border-radius: 5px 0 0 5px;
}
.callout-post-challenge-abbr-content {
    padding: 20px;
    position: relative;
}
.callout-post-challenge-abbr-content .block-overprint {
    width: fit-content;
    padding: 8px;
    background: #FDEDF0;
    position: relative;
    margin: 0 0 0 -40px;
}
.callout-post-challenge-abbr-content h2 {
    margin: 10px 0;
}
.callout-post-challenge-button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.callout-post-challenge-abbr-content .read-more {
margin-top: 0;

}
.callout-post-challenge-abbr-content .read-more .sm-caps {
    font-size: 11px;
}
.callout-post-challenge-abbr-content .read-more-secondary {
    border: 2px solid #212121;
    color: #212121;
    background: #FFFFFF;
    margin-left: 5px;
}
.callout-post-challenge-abbr-content .read-more-secondary:visited {
    color: #212121;
}
.callout-post-challenge-abbr-content .read-more-secondary:hover {
    border: 2px solid #C3366F;
}

/*--------------------------------------------------------------
RESPONSIVE
--------------------------------------------------------------*/
@media screen and (max-width: 840px) {
.callout-post-challenge {
    display: block;
}
.callout-post-challenge-abbr-content .block-overprint {
    margin: -40px 0 0 0;
}
.monthly-icon {
    left: calc(100%/2 - 50px);
    top: -20px;
}
}


@media screen and (max-width: 600px) {
    .section-column-group {
    display: block;
}
.section-column {
    margin-top: 70px;
}
.challenge-cta-button .wp-block-button__link {
    font-size: 20px;
}

}
