/* ==========================================================
   ARTICLE POST LAYOUT
========================================================== */


/* ==========================================================
   Main Article Image
   Right side, below Title and Date
========================================================== */

.articlepostimage {
  float: right;
  width: 42%;
  max-width: 500px;
  margin: 0 0 30px 40px;
}

/* Main Image */
.articlepostimage img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Image Hover */
.articlepostimage:hover img {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}


/* ==========================================================
   Article Body
   Left side of Main Image
========================================================== */

.articlepostbody {
  font-size: 1.35rem;
  line-height: 1.75;
  color: #333333;
}

/* Prevent Drupal field wrappers from interfering */
.articlepostbody .field__item {
  font-size: inherit;
  line-height: inherit;
}

/* Paragraphs */
.articlepostbody p {
  margin-top: 0;
  margin-bottom: 22px;
}

/* Headings */
.articlepostbody h2,
.articlepostbody h3,
.articlepostbody h4 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 30px;
  margin-bottom: 15px;
}

.articlepostbody h2 {
  font-size: 2rem;
  color: #5387ce;
}

.articlepostbody h3 {
  font-size: 1.75rem;
  color: #333333;
}

.articlepostbody h4 {
  font-size: 1.5rem;
  color: #333333;
}

/* Links */
.articlepostbody a {
  color: #5387ce;
  font-weight: 600;
  text-decoration: none;
}

.articlepostbody a:hover {
  color: #dd821d;
  text-decoration: underline;
}


/* ==========================================================
   Article Gallery
   Always below Body and Main Image
========================================================== */

.articlepostimages {
  clear: both;
  width: 100%;
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid #dddddd;
}

/* Gallery Label */
.articlepostimages .field__label {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
}


/* ==========================================================
   Gallery Grid
========================================================== */

.articlepostimages .field__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Individual Gallery Item */
.articlepostimages .field__item {
  min-width: 0;
}

/* Gallery Images */
.articlepostimages img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Gallery Hover */
.articlepostimages .field__item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}


/* ==========================================================
   Tablet
========================================================== */

@media (max-width: 900px) {

  .articlepostimage {
    width: 45%;
    max-width: 400px;
    margin: 0 0 25px 30px;
  }

  .articlepostbody {
    font-size: 1.25rem;
    line-height: 1.7;
  }

  .articlepostimages .field__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .articlepostimages img {
    height: 220px;
  }
}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 600px) {

  /* Stack Main Image */
  .articlepostimage {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 25px 0;
  }

  .articlepostimage img {
    width: 100%;
    border-radius: 14px;
  }

  /* Body */
  .articlepostbody {
    font-size: 1.15rem;
    line-height: 1.65;
  }

  .articlepostbody h2 {
    font-size: 1.7rem;
  }

  .articlepostbody h3 {
    font-size: 1.5rem;
  }

  .articlepostbody h4 {
    font-size: 1.35rem;
  }

  /* Gallery */
  .articlepostimages {
    margin-top: 30px;
    padding-top: 25px;
  }

  .articlepostimages .field__label {
    font-size: 1.5rem;
  }

  .articlepostimages .field__items {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .articlepostimages img {
    width: 100%;
    height: auto;
  }
}