/**
 * Recipes List Block Styles (collections-first page).
 *
 * @package YaloFSE
 */

.recipes_list.recipes-collections {
  background: var(--color-body-background);
}

.recipes_list.recipes-collections .rfg-grid-wrap {
  min-width: 0;
}

.recipes_list.recipes-collections .rrc-collections {
  display: grid;
  gap: 14px;
}

.recipes_list.recipes-collections .rrc-collection__hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: 360px;
  background-color: #9c9c9c;
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

.recipes_list.recipes-collections .rrc-collection__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.recipes_list.recipes-collections .rrc-collection__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.recipes_list.recipes-collections .rrc-collection__title {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 54px;
  line-height: 1.08;
  font-style: normal;
}

.recipes_list.recipes-collections .rrc-collection__cta {
  color: #fff;
  font-family: var(--font-primary);
  font-size: 46px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recipes_list.recipes-collections .rrc-collection__recent {
  display: none;
}

.recipes_list.recipes-collections .rrc-recipe-card {
  padding: 0;
}

.recipes_list.recipes-collections .rrc-recipe-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.recipes_list.recipes-collections .rrc-recipe-media {
  display: block;
}

.recipes_list.recipes-collections .rrc-recipe-media .recipe-thumb {
  margin: 0;
  aspect-ratio: 1;
}

.recipes_list.recipes-collections .rrc-recipe-media .recipe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipes_list.recipes-collections .rrc-recipe-overlay {
  display: none;
}

@media (min-width: 768px) {
  .recipes_list.recipes-collections {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .recipes_list.recipes-collections .rrc-collections {
    gap: 16px;
  }

  .recipes_list.recipes-collections .rrc-collection__hero {
    min-height: 390px;
  }

  .recipes_list.recipes-collections .rrc-collection__title {
    font-size: 52px;
    margin-bottom: 10px;
  }

  .recipes_list.recipes-collections .rrc-collection__cta {
    font-size: 42px;
  }

}

@media (min-width: 1200px) {
  .recipes_list.recipes-collections .rrc-collection__hero {
    min-height: 420px;
  }

  .recipes_list.recipes-collections .rrc-collection__title {
    font-size: 50px;
  }

  .recipes_list.recipes-collections .rrc-collection__cta {
    font-size: 40px;
  }

  .recipes_list.recipes-collections .rrc-collection__recent {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .recipes_list.recipes-collections .rrc-recipe-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
  }

  .recipes_list.recipes-collections .rrc-recipe-media .recipe-thumb {
    position: absolute;
    inset: 0;
    margin: 0;
    aspect-ratio: auto;
  }

  .recipes_list.recipes-collections .rrc-recipe-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .recipes_list.recipes-collections .rrc-recipe-card:hover .rrc-recipe-overlay,
  .recipes_list.recipes-collections .rrc-recipe-card:focus-within .rrc-recipe-overlay {
    opacity: 1;
    visibility: visible;
  }

  .recipes_list.recipes-collections .rrc-recipe-overlay .recipe-title {
    color: #fff;
    margin: 0 0 12px;
    font-family: var(--font-primary);
  }

  .recipes_list.recipes-collections .rrc-recipe-overlay__meta {
    margin: 0 0 16px;
    color: #fff;
    font-family: var(--font-secondary);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
  }

  .recipes_list.recipes-collections .rrc-recipe-overlay__cta {
    margin: 0;
    background-color: #ffd400;
    color: #002e64;
    border: 1px solid transparent;
  }

  .recipes_list.recipes-collections .rrc-recipe-overlay__cta:hover,
  .recipes_list.recipes-collections .rrc-recipe-overlay__cta:focus,
  .recipes_list.recipes-collections .rrc-recipe-overlay__cta:active {
    background-color: #fff;
    color: #002e64;
    border: 1px solid #002e64;
  }
}

@media (max-width: 767px) {
  .recipes_list.recipes-collections {
    padding-top: 0;
  }

  .recipes_list.recipes-collections .rfg-mobile-open {
    margin-top: 0;
  }
}