/* CORE LAYOUT */
body {
  margin: 0;
  padding: 0;
  font-family: 'Questrial', Arial, sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* LINK STYLING */
a {
  color: #00aeef;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #007eb4;
  text-decoration: underline;
}

/* HEADING TYPOGRAPHY */
h1, h3, h4, h5, h6 {
  font-family: 'Jost', Arial, sans-serif;
  color: #00aeef;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

h2 {
  font-family: 'Questrial', Arial, sans-serif;
  color: #00aeef;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* MAIN CONTAINERS */
section {
  padding: 2.2em 1em;
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
}
.post-container, .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1em;
}

/* HERO / BLOG TITLE */
.blog-hero h1,
.post-container > h1 {
  text-align: center;
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 700;
  color: #00aeef;
  margin-top: 1.5em;
  margin-bottom: 1em;
  line-height: 1.1;
  font-size: clamp(2.1em, 4vw, 2.8em);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
@media (max-width: 900px) {
  .blog-hero h1,
  .post-container > h1 {
    font-size: clamp(1.6em, 5vw, 2.1em);
    max-width: 95vw;
  }
}
@media (max-width: 700px) {
  .blog-hero h1,
  .post-container > h1 {
    font-size: 1.2em;
    margin-top: 0.6em;
    margin-bottom: 0.7em;
    max-width: 97vw;
  }
}

/* BLOG TEXT BLOCKS */
.hero-intro,
.blog-text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1em;
  padding-right: 1em;
}
.hero-intro p,
.blog-text p {
  font-family: 'Questrial', Arial, sans-serif;
  font-size: 1.35em;
  text-align: center;
  color: #262626;
  margin-top: 1em;
  margin-bottom: 1em;
  line-height: 1.7;
  letter-spacing: 0.01em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-intro p:last-child,
.blog-text p:last-child {
  margin-bottom: 0.5em;
}
/* Reduce gap between .blog-text and following h2 */
.blog-text + section > h2,
.blog-text + h2,
.hero-intro + section > h2,
.hero-intro + h2 {
  margin-top: 0.7em !important;
}

/* POST GALLERY GRID */
.post-gallery.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  justify-items: center;
  margin-bottom: 2em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* GALLERY FIGURE CAPTION */
.post-gallery figcaption,
figure figcaption {
  font-family: 'Questrial', Arial, sans-serif;
  font-size: 1.07em;
  color: #444;
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 0.6em;
  line-height: 1.5;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.02em;
}
.post-gallery figcaption small {
  color: #999;
  font-size: 0.93em;
  letter-spacing: 0.01em;
}

/* IMAGE DEFAULT */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* BUTTON DEFAULT */
button {
  font-family: 'Jost', Arial, sans-serif;
  background-color: #00aeef;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.75em 1.5em;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
button:hover,
button:focus {
  background-color: #007eb4;
}

/* MISC CLASSES */
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }

/* MODAL GALLERY */
#gallery-modal {
  position: fixed;
  z-index: 9999;
  display: none;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
#gallery-modal.active { display: flex; }
#gallery-modal img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.28);
}
#gallery-modal .close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.2em;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2;
}
#gallery-modal .gallery-next,
#gallery-modal .gallery-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0,174,239,0.72);
  border: none;
  border-radius: 50%;
  font-size: 2.1em;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
#gallery-modal .gallery-prev { left: 28px; }
#gallery-modal .gallery-next { right: 28px; }
#gallery-modal .gallery-next:hover,
#gallery-modal .gallery-prev:hover {
  background: #0093cc;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 1100px) {
  .post-container, .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  section {
    padding: 1.4em 0.7em;
  }
  .post-gallery.grid {
    grid-template-columns: 1fr !important;
    gap: 1.2em;
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  section {
    padding: 0.9em 0.4em;
  }
  .hero-intro p,
  .blog-text p {
    font-size: 1em;
    margin: 1em auto 1.1em auto;
  }
}
.ingredient-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1.2rem;
}
.ingredient-gallery img{width:100%;border-radius:12px;}
