* {
  /* box-sizing: border-box; padding and border are included in the width and height: */
  box-sizing: border-box;
  font-family: "MS PMincho", sans-serif;
}

html,
body {
  margin: 0;
  height: 100%;
  width: 100%;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(100px, auto);
  /* options */
  color: slategray;
  background-color: lightgray;
  /* border: solid 2px red; */
}

/*  ====================   Box1: Main menu incl. Hamburger menu   ===========================*/

.box1 {
  grid-column-start: 1;
  grid-column-end: 4;
  margin: 0 auto;
  margin-top: 10px;
  width: 99%;
  color: white;
  background-color: slategray;
  border: 5px solid steelblue;
  border-radius: 15px;
  font-style: italic;
}

.top-nav {
  display: flex;
  flex-direction: row;
  height: 100px;
  align-items: center;
  justify-content: space-around;
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  /* overflow: hidden; */
  margin: 0 auto;
  padding: 0;
  /* border: 2px solid red; */
}

.menu #tl {
  background-color: steelblue;
  border-radius: 20px;
}

.menu .item {
  overflow: hidden;
}

.menu .item:hover {
  background-color: steelblue;
  border-radius: 20px;
}

.menu .item a {
  text-decoration: none !important;
  color: #ccddf9;
  font-size: 28px;
  letter-spacing: 3px;
  margin: 0 50px;
}

.menu .item a:hover {
  color: orange;
}

/* ========================================= t.b.v. Hamburger Menu (NOT visable)   ============================= */

/*  Input element: Checkbox */
#menu-toggle {
  display: none;
}

/* Element: Label for: checkbox */
.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*  Hamburger menu: Div class = menu-button */
.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked+.menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked+.menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked+.menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}

/* ============================================ Start page under top-menu:  any box and position where needed !   ============================== */

.box2 {
  grid-row-start: 2;
  grid-column-start: 1;
  grid-column-end: 4;

  /* Text color background border padding etc.  */
  /* border: solid 2px red; */
}

.box2 a {
  text-decoration: none;
}

.box2 ul {
  list-style: none;
}

/*  blog ------------------------------ */

.box2 #blog {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* border: solid 2px red; */
}

.box2 .blog-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* border: solid 2px red; */
}

.box2 .blog-heading span {
  color: #f33c3c;
}

.box2 .blog-heading h3 {
  color: slategray;
letter-spacing: 3px;
  font-size: 2.4rem;
  font-weight: 600;
  font-family: papyrus;
  font-style: italic;
  /* font-family: playball; */
}

.box2 .blog-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
  background-color: lightgray;
  border: 10px solid #888888; 
}

.box2 .blog-box {
  margin: 20px;
  width: 250px;
  background-color: #ffffff;
  border: 1px solid #ececec;
  border-radius: 15px;
  box-shadow: -5px 10px #888888; 
  /* box-shadow: 5px 10px #888888;  */
}

.box2 .blog-img {
  width: 100%;
  height: auto;
}

.box2 .blog-img img {
  /* margin: 10px; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* border: 2px solid slategray; */
  border-radius: 15px;
}

.box2 .blog-text {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.box2 .blog-text span {
  color: #f33c3c;
  font-size: 0.9rem;
}

.box2 .blog-text .blog-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: #272727;
}

.box2 .blog-text .blog-title:hover {
  color: #f33c3c;
  transition: all ease 0.3s;
}

.box2 .blog-text p {
  color: #9b9b9b;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 20px 0;
}

.box2 .blog-text a {
  color: #0f0f0f;
}

.box2 .blog-text a:hover {
  color: #f33c3c;
  transition: all ease 0.3s;
}

/* ==========================================   Hide Webstat ====================================== */

.webstatcode {
  visibility: hidden;
}

/* ===========================================================================   Any screen width behavior   =========================================== */

/* ================ Mobile behavior = 0-1320px width ================= */

@media (max-width: 1320px) {
  .menu .item a {
      /* margin van 50px naar: */
      margin: 0 40px;
  }

  .box3 .locnav #locmenu li {
      margin: 0 10px;
  }
}

/* ============= Mobile behavior = 0-1200px width ================= */

@media (max-width: 1200px) {
  .menu .item a {
      /* margin van 40px naar: */
      margin: 0 30px;
  }

  .box3 .locnav #locmenu li {

      padding: 0 10px;
      font-size: 18px;
      letter-spacing: 1px;
  }
}

/* ============= Mobile behavior = 0-1080px width ================= */

@media (max-width: 1080px) {
  .menu .item a {
      /* margin van 30px naar: */
      margin: 0 20px;
  }
}

/* ============= Mobile behavior = 0-950px width ================= */

@media (max-width: 950px) {
  .menu .item a {
      /* margin van 20px naar: */
      margin: 0 10px;
  }

  .box3 .locnav #locmenu li {
      margin: 0 5px;
  }
}

/* ============= Mobile behavior = 0-820px width ================= */

@media (max-width: 820px) {

  /*    Hamburger-menu:    */
  .menu-button-container {
      display: flex;
  }

  /* Uitklap menu */
  .box1 .menu {
      flex-direction: column;
      margin-top: 100px;
      position: absolute;
      top: 0px;
      left: 13%;
      width: 73%;
      justify-content: center;
      align-items: center;
      /* border: 2px solid red; */
  }

  #menu-toggle~.menu li {
      height: 0;
      margin: 0;
      padding: 0;
      border: 0;
      transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  #menu-toggle:checked~.menu li {
      border: 1px solid #333;
      border-radius: 10px;
      height: 2.5em;
      /* list item hoogte na uitklappen*/
      padding: 0.5em;
      transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .menu li {
      display: flex;
      justify-content: center;
      margin: 0;
      padding: 0.5em 0;
      width: 70%;
      color: white;
      background-color: lightslategray;
      z-index: 1;
  }

  .menu li:not(:last-child) {
      border-bottom: 5px solid darkolivegreen;
  }

  .menu .item a {
      font-size: 18px;
      letter-spacing: 5px;
  }

  /* ======================================= */
  .box3 .locnav #locmenu li {
      margin: 0 5px;
  }
}

/* ============= Mobile behavior = 0-420px width ================= */

@media (max-width: 420px) {
  .photodiv img {
      width: 50%;
  }

  .scripture {
      width: 100%;
      padding: 0 5%;
      font-size: 14px;
      text-align: left;
      line-height: 22px;
      /* border: 2px solid red; */
  }

  .scripture #source {
      text-align: right;
      font-style: italic;
  }

  .box3 .locnav {
      height: 100px;
      /* border: 2px solid red; */
  }

  .box3 .locnav #locmenu li {
      margin: 0 10px;
      padding: 0 5px;
      font-size: 14px;
      letter-spacing: 1px;
  }

  .box3 .mainframe .viewbox {
      padding: 0 10px;
      font-size: 14px;
  }

  .box3 .mainframe .viewbox h1 {
      letter-spacing: 3px;
  }
}