/* ESSAOUIRA COOKING — CULINARY JOURNAL v1.3
Hero Full Bleed + Journal Body Contained */

/* Hide Joomla/T4 headings */
body.com_content.view-category .t4-masthead,
body.com_content.view-category .ja-masthead,
body.com_content.view-category .page-masthead,
body.com_content.view-category .t4-section.t4-masthead,
body.com_content.view-category .page-header,
body.com_content.view-category .page-title,
body.com_content.view-category .blog-featured,
body.com_content.view-article .page-header{
  display:none !important;
}

body.com_content.view-category #t4-main-body,
body.com_content.view-category .t4-main-body,
body.com_content.view-article #t4-main-body,
body.com_content.view-article .t4-main-body{
  padding-top:0 !important;
  margin-top:0 !important;
}

body.com_content.view-category,
body.com_content.view-article{
  overflow-x:hidden;
}

/* Hero only is full bleed */
.ec-journal-hero,
.ec-article-hero{
  position:relative;
  width:100vw;
  max-width:100vw;
  left:50%;
  margin-left:-50vw !important;
  margin-right:-50vw !important;
  min-height:620px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  color:#fff;
  background:
    linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.68)),
    var(--ec-journal-hero-image,var(--ec-article-image))
    center center / cover no-repeat;
}

.ec-journal-hero::before,
.ec-article-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(circle at 20% 20%,rgba(255,250,243,.15),transparent 35%),
    linear-gradient(90deg,rgba(76,12,71,.35),transparent 55%),
    linear-gradient(180deg,rgba(44,33,24,.05),rgba(44,33,24,.75));
}

.ec-journal-hero__content,
.ec-article-hero__content{
  position:relative;
  z-index:2;
  max-width:960px;
  width:100%;
  padding:100px 24px;
  text-align:center;
}

.ec-journal-page{
  max-width:1180px;
  width:min(1180px,calc(100% - 44px));
  margin:0 auto;
  padding:80px 0;
}

/* Featured story */
.ec-featured-story{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr);
  overflow:hidden;
  border-radius:34px;
  background:#fffaf3;
  border:1px solid rgba(76,12,71,.10);
  box-shadow:0 24px 70px rgba(44,33,24,.10);
}

.ec-featured-story__media{
  display:block;
  min-height:460px;
  background:#4c0c47;
}

.ec-featured-story__media img,
.ec-story-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ec-story-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:38px;
}

.ec-story-card{
  overflow:hidden;
  border-radius:28px;
  background:#fff;
  border:1px solid rgba(76,12,71,.10);
  box-shadow:0 18px 46px rgba(44,33,24,.07);
}

.ec-story-card__image{
  display:block;
  height:230px;
  overflow:hidden;
}

.ec-journal-topics{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:52px;
}

.ec-journal-pagination{
  margin-top:48px;
  text-align:center;
}

@media (max-width:900px){
  .ec-featured-story{
    grid-template-columns:1fr;
  }

  .ec-story-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:767px){
  .ec-journal-hero,
  .ec-article-hero{
    min-height:500px;
  }

  .ec-journal-page{
    width:calc(100% - 32px);
    padding:54px 0;
  }

  .ec-story-grid{
    grid-template-columns:1fr;
  }

  .ec-featured-story__media{
    min-height:270px;
  }
}
