

/* Callout base styles */
.ccc-callout-section {
  --callout-section-background: #f2f2ef;
  --ccc-default-callout-accent-color: #a1a1a1;
  --ccc-callout-accent: var(--ccc-theme-color);
}

/* Theme variations */
.ccc-callout-solid {
  --callout-section-background: var(--ccc-theme-color);
  --ccc-callout-accent: var(--ccc-white);
  color: var(--ccc-white);

  h3, p {
    color: var(--ccc-white) !important;
  }
}

.ccc-callout-gradient {
  --callout-section-background: var(--ccc-theme-gradient);
  --ccc-callout-accent: var(--ccc-white);
  color: var(--ccc-white);

  h3, p {
    color: var(--ccc-white) !important;
  }
}

.ccc-callout-light {
  --callout-section-background: var(--ccc-light-gray);
  --ccc-callout-accent: var(--ccc-theme-color);
}

/* Callout styles */
.ccc-callout-section .callout {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: var(--callout-section-background);
  box-shadow: 0 4px 8px rgba(100,116,139,.2);
  margin: 0 0 24px;
  width: 100%;
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .callout {
    padding: 24px;
  }
}

/* Photo callout */
.ccc-callout-section .callout.photo {
  flex-direction: row;
  padding: 0;
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .callout.photo {
    flex-direction: column;
  }
  .ccc-callout-section.ccc-callout-image-right .callout.photo {
    flex-direction: column-reverse;
  }  
}

.ccc-callout-section .callout.photo .photo:before {
  left: 0;
}

.ccc-callout-section .callout.photo .content {
  padding: 32px;
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .callout.photo .content {
    padding: 24px;
  }
}

.ccc-callout-section .callout.photo .photo + .content {
  padding: 32px;
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .callout.photo .photo + .content {
    padding: 24px;
  }
}

.ccc-callout-section .callout.photo .content + .photo:before {
  right: 0;
  left: unset;
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .callout.photo .content + .photo:before {
    right: unset;
    left: 0;
  }
}

/* Half width callout */
.ccc-callout-section .callout.half {
  flex-basis: calc(50% - 8px);
  max-width: calc(50% - 8px);
}

.ccc-callout-section .callout.half:first-child {
  margin: 0 8px 24px 0;
}

.ccc-callout-section .callout.half:last-child {
  margin: 0 0 24px 8px;
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .callout.half {
    flex-basis: 100%;
    max-width: 100%;
  }

  .ccc-callout-section .callout.half:first-child,
  .ccc-callout-section .callout.half:last-child {
    margin: 0 0 24px;
  }
}

/* Callout typography */
.ccc-callout-section .callout h3 {
  font-family: BioRhyme;
  font-size: 1.5rem;
  line-height: 2.25rem;
  text-transform: none;
  position: relative;
  padding: 0 0 32px;
  margin: 0 0 16px;
}

.ccc-callout-section .callout h3:after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 94px;
  height: 6px;
  background: var(--ccc-callout-accent);
}

.ccc-callout-section .callout p {
  font-size: 1.125rem;
  line-height: 1.6875rem;
}

@media only screen and (max-width: 1024px) {
  .ccc-callout-section .callout p {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

/* Photo styles */
.ccc-callout-section .callout .photo {
  position: relative;
  width: 384px;
  min-width: 384px;
}

@media only screen and (max-width: 1024px) {
  .ccc-callout-section .callout .photo {
    width: 223px;
    min-width: 223px;
  }
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .callout .photo {
    width: 100%;
    height: 200px;
  }
}

.ccc-callout-section .callout .photo:before {
  position: absolute;
  content: "";
  top: 0;
  width: 20px;
  height: 100%;
  background: var(--ccc-callout-accent);
}

.ccc-callout-section .callout .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ccc-callout-section .callout .content h3 {
  padding: 0;
}

.ccc-callout-section .callout .content h3:after {
  display: none;
}

/* Pullquote styles */
.ccc-callout-section .pullquote {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  margin: 35px 0;
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .pullquote {
    flex-direction: column;
  }
}

.ccc-callout-section .pullquote .content {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  width: calc(100% - 100px);
  background: #e3e1db;
  padding: 48px 48px 36px 0;
  margin-left: auto;
}

@media only screen and (max-width: 1024px) {
  .ccc-callout-section .pullquote .content {
    width: calc(100% - 80px);
  }
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .pullquote .content {
    padding: 32px 32px 32px 0;
    width: calc(100% - 32px);
  }
}

.ccc-callout-section .pullquote .content:before {
  position: absolute;
  content: "";
  bottom: -14px;
  left: -99px;
  width: 100px;
  height: 100%;
  background: #e3e1db;
  transform: skewY(-16deg);
  border-bottom: 13px solid var(--ccc-callout-accent);
}

@media only screen and (max-width: 1024px) {
  .ccc-callout-section .pullquote .content:before {
    width: 80px;
    left: -79px;
    top: 11px;
  }
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .pullquote .content:before {
    width: 32px;
    left: -31px;
    top: 16px;
    transform: skewY(-45deg);
  }
}

.ccc-callout-section .pullquote .content:after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 13px;
  background: var(--ccc-callout-accent);
}

.ccc-callout-section .pullquote .content p {
  font-family: BioRhyme;
  font-size: 1.375rem;
  line-height: 2rem;
  margin: 0 0 32px;
}

@media only screen and (max-width: 1024px) {
  .ccc-callout-section .pullquote .content p {
    font-size: 1.125rem;
    line-height: 1.6875rem;
  }
}

.ccc-callout-section .pullquote .content .author {
  position: relative;
  font-style: normal;
  font-family: Gibson Semi Bold;
  font-size: 1.25rem;
  line-height: 1.875rem;
  padding: 0 0 0 54px;
  margin: 0 0 16px;
}

@media only screen and (max-width: 1024px) {
  .ccc-callout-section .pullquote .content .author {
    font-size: 1.125rem;
    line-height: 1.6875rem;
  }
}

.ccc-callout-section .pullquote .content .author:before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  width: 30px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.ccc-callout-section .pullquote .content .title {
  font-style: normal;
  font-family: Gibson Semi Bold;
  font-size: 1rem;
  line-height: 1.5rem;
  padding-left: 54px;
  margin: 0;
}

.ccc-callout-section .pullquote .photo {
  width: 282px;
  min-width: 282px;
  height: 100%;
  margin: 24px 24px 0 0;
}

@media only screen and (max-width: 1024px) {
  .ccc-callout-section .pullquote .photo {
    width: 225px;
    min-width: 225px;
  }
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .pullquote .photo {
    width: 100%;
    margin: 40px 0 0;
  }



}

.ccc-callout-section .pullquote .photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.ccc-callout-section .pullquote .photo + .content {
  width: calc(100% - 406px);
}

@media only screen and (max-width: 1024px) {
  .ccc-callout-section .pullquote .photo + .content {
    width: calc(100% - 328px);
  }
}

@media only screen and (max-width: 767px) {
  .ccc-callout-section .pullquote .photo + .content {
    width: calc(100% - 32px);
    margin: 40px 0 0;
  }
}

.ccc-callout-gradient .callout .photo:before,
.ccc-callout-solid .callout .photo:before {
  content:unset !important;
}