
.grid {
  display: grid;
  grid-template-columns: /*minmax(150px, 300px)*/ minmax(300px, 960px);
  grid-template-rows: /*auto*/ auto;
  grid-template-areas:
    "headr"
    "mnu"
    "item3"
    "item4"
    "lnBrk"
    "item5"
    "lnBrk2"
    "item6"
    "lnBrk3"
    "item7"
    "lnBrk4"
    "footr";
  gap: 4px;
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 1240px;
  margin-top: -10px;
}

.item {
  padding: 16px;
  color: rgb(90, 90, 90);
  border-radius: 0px;
}
.item-1 {  
  display: flex;
  align-items: center; /* vertically aligns items */
  grid-area: item1;
  background: none;
  max-width: 960px;
  min-width: 300px;
  max-height: auto;
  min-height: auto;
  padding: 0px;
  border-radius: 0px;
  overflow: hidden;
  text-align: left;
}

.item-1 img {
flex: 1 0 auto; /* allows images to grow and fill available space */
} 

.item-1 img:first-child {
  max-width: 56%;
  height: auto; /* maintains aspect ratio */
  margin-right: auto; /* aligns the first image to the left */
}

.item-1 img:last-child {
  max-width: 18%;
  height: auto; /* maintains aspect ratio */
  margin-left: auto; /* aligns the last image to the right */
}

.item-2 {
  grid-area: item2;
  background: #1173BB;
  color: white; /* font color */
  font-size: 3vh; 
  max-width: 960px;
  max-height: 30px;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4.3px;
  overflow: hidden;
}

.item-3 {
  grid-area: item3;
  background: none;
  min-width: 300px;
  max-width: 980px;
  height: auto;
  padding: 0px;
  margin-bottom: -8px;
  overflow: hidden;
}

.item-3 img {
  margin-top: -16px;
  width: 100%;
  height: auto;
  background-color:none;
}
.item-4 {
  grid-area: item4;
  background: none;
  color: rgb(90, 90, 90);
  font-size: 20px;
  text-align: justify;
  max-width: 960px;
  min-width: 300px;
  max-height: auto;
  min-height: auto;
  overflow: auto;
}
.item-5 {       /*  --- feature 1 --- */
  grid-area: item5;
  background:none;
  min-width: 300px;
  max-width: 960px;
  max-height: auto;
  min-height: auto;
  overflow: auto;

  display: grid;
  font-size: 1rem;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto;
  grid-area: "imgBx synBx";
  gap: 10px;
}

.item-6 {       /*  --- feature 2 --- */
  grid-area: item6;
  background: none;
  min-width: 300px;
  max-width: 960px;
  max-height: auto;
  min-height: auto;
  overflow: auto;

  display: grid;
  font-size: 1.22rem;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  grid-area: "imgBx synBx";
  gap: 10px;
}
.item-7 {
  grid-area: item7;
  background: none;
  min-width: 300px;
  max-width: 960px;
  max-height: auto;
  min-height: auto;
  overflow: auto;
  padding: 0px;
}

.item-8 {
  grid-area: item8;
  background:none;
  font-size: 18px;
  color: rgb(90, 90, 90);
  min-width: 300px;
  max-width: 960px;
  max-height: auto;
  min-height: auto;
  overflow: auto;
  padding: 0px;

  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto;
  grid-area: "synBx imgBx";
  gap: 10px;
}

.imgBx {
  /* width: 100%; */
  width: clamp(23vw, 23vw, );
  height: auto;
  background-color: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.synBx { 
  width: 100%;
  line-height: 1;
  height: 100%;
  overflow: auto;
  background-color: rgb(215, 215, 215);
  border-radius: 16px;
  padding: 15px;

  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: justify;
  /* font-size: max(0.8rem, 1.4vw); line-height:  1.1rem; */
}

.aBx { 
  width: 100%;
  line-height: 1;
  height: 100%;
  overflow: auto;
  background-color: none;
  border-radius: 16px;
  padding: 15px;

  display: flex;
  flex-direction: column;
  justify-content: none;
  text-align: justify;
  /* font-size: max(0.8rem, 1.4vw); line-height:  1.1rem; */
}

.grdSwp {
  order: 1;
}


@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
    grid-template-areas:
    "headr"
    "mnu"
    "item3"
    "item4"
    "lnBrk"
    "item5"
    "lnBrk2"
    "item6"
    "lnBrk3"
    "item7"
    "lnBrk4"
    "footr";
  }
  .headr{
    max-height: 24px;
    background-color: none;
    margin-bottom: 1px;
  }
  .mnu{
    font-size: 0.3em;}
  .item-3 {
    max-width: 100%;
  }
  .imgBx{
    min-width: 240px;
  }
}

 /* Add the following media query to flip the display */
  @media (max-width: 721px) {
      .item-5 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
      "imgBx"
      "synBx";
  }
      .item-6 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
      "imgBx"
      "synBx";
  }
      .footr {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
      "imgBx"
      "synBx";
  }
  .grdSwp {
    order: 0;
  }
}


@media (max-width: 721px) {
  .synBx {
    font-size: 0.9rem;
    background-color: white;
    /* max-width: 340px; */
  }
}





 




