.indy-bento-widget .main-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* Bento items */
.indy-bento-widget .main-wrapper .bento-item {
  background-color: #fef7ec;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
}
.indy-bento-widget .main-wrapper .bento-item .content-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
}
.indy-bento-widget .main-wrapper .bento-item .badge {
  margin-bottom: 8px;
}
.indy-bento-widget .main-wrapper .bento-item .badge:not(.alt) {
  color: #60503a;
  background: #fceedb;
}
.indy-bento-widget .main-wrapper .bento-item .title {
  text-align: center;
}
.indy-bento-widget .main-wrapper .bento-item .text {
  text-align: center;
  font-size: 16px;
  letter-spacing: -0.16px;
  margin-top: 16px;
  /*margin-bottom: 16px;*/
  margin-bottom: 0;
  max-width: 440px;
}
.indy-bento-widget .main-wrapper .bento-item .image-wrap {
  /*flex-grow: 1;*/
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 213px;
  position: relative;
}
.indy-bento-widget .main-wrapper .bento-item .image-wrap .item-img {
  display: block;
}

/* Footer button */
.indy-bento-widget .btn-wrapper .btn {
  display: block;
  margin: 32px auto 0;
}

@media (max-width: 1239px) {
  .indy-bento-widget .main-wrapper .bento-item .btn {
    font-size: 14px;
    line-height: 24px;
  }
  .indy-bento-widget .main-wrapper .bento-item .image-wrap {
    /*height: 90px;*/
    margin-bottom: -78px;
  }
  .indy-bento-widget .main-wrapper .bento-item .link {
    color: var(--UI-Secondary, #2e4254);
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    margin-top: 8px;
  }
  .indy-bento-widget .main-wrapper .bento-item .link::after {
    display: inline-block;
    content: "";
    background-image: url(/wp-content/themes/hello-child/img/chevron-2.svg);
    width: 16px;
    height: 16px;
    background-size: contain;
    vertical-align: sub;
  }
}

@media (min-width: 1240px) {
  .indy-bento-widget .main-wrapper {
    margin-top: 80px;
    display: flex;
    gap: 32px;
  }
  .indy-bento-widget .main-wrapper .bento-item:nth-child(4n + 1),
  .indy-bento-widget .main-wrapper .bento-item:nth-child(4n) {
    width: 406px;
  }
  .indy-bento-widget .main-wrapper .bento-item:nth-child(4n + 2),
  .indy-bento-widget .main-wrapper .bento-item:nth-child(4n + 3) {
    flex-grow: 1;
  }
  .indy-bento-widget .main-wrapper .bento-item .content-wrap {
    padding: 36px 40px;
    height: 224px;
  }
  .indy-bento-widget .main-wrapper .bento-item .title {
    letter-spacing: -0.432px;
    font-size: 24px;
  }
  .indy-bento-widget .main-wrapper .bento-item .image-wrap .item-img {
    transform: translateY(16px);
    transition: transform 400ms linear;
    /*max-height: 198px;*/
  }
  .indy-bento-widget .main-wrapper .bento-item:nth-child(4n + 2) .item-img,
  .indy-bento-widget .main-wrapper .bento-item:nth-child(4n + 3) .item-img {
    width: 624px;
    height: 328px;
  }
  .indy-bento-widget .main-wrapper .bento-item:hover .image-wrap .item-img {
    transform: translateY(0px);
  }
  .indy-bento-widget .main-wrapper .bento-item .image-wrap .link {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    background-image: url(/wp-content/themes/hello-child/img/arrow-long.svg);
    background-repeat: no-repeat;
    background-size: 24px;
    background-position: center;
    border: 1px solid #222c36;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 400ms linear;
  }
  .indy-bento-widget .main-wrapper .bento-item:hover .image-wrap .link {
    opacity: 1;
  }
  .indy-bento-widget .btn-wrapper .btn {
    width: fit-content;
    margin-top: 64px;
  }
}
