html {
  font-size: 16px;
}

body {
  font-family: body;
  font-family: "EB Garamond", "Garamond", "Book Antiqua", serif;
  font-size: 1.2em;
  font-style: normal;
  line-height: normal;
  font-weight: normal;
  font-variant: normal;
  color: #000000;
  margin: 4%;
}
.nav-bar {
  align-content: center;
  margin: auto;
}
h1 {
  font-family: "EB Garamond", "Garamond", "Book Antiqua", Serif;
  font-size: 2.2em;
  text-align: center;
  color: rgb(101, 165, 65);
}
.grid-container {
  display: grid;
  grid-template-columns: 45% 52%;
  gap: 3%;
  width: 95%;
  margin: 0 auto;
}

.text-content {
  font-family: "EB Garamond", "Garamond", "Book Antiqua", Serif;
  font-size: 1em; /* Styles for left text column */
}

.image-gallery {
  /* Styles for right image gallery */
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.image-pair img {
  max-width: 100%;
  height: auto;
  display: block;
}

.woven {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* For 4 images in a row */
  gap: 40px; /* Modern syntax for grid-gap */
  align-items: center; /* Vertically center items */
  margin-bottom: 20px;
  overflow-x: auto; /* Adds horizontal scroll if needed */
}

.style2 {
  font-family: "gabriola", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 1.4em;
  color: rgb(101, 165, 65);
}
.style3 {
  font-family: "EB Garamond", "Garamond", "Book Antiqua", Serif;
  font-size: 1em;
}

.image {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: opacity 3s ease-in-out;
}

.fade-out {
  opacity: 0;
}

.Grid_2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-gap: 30px;
  font-family: "EB Garamond", "Garamond", "Book Antiqua", serif;
  font-size: 1em;
  font-style: normal;
  line-height: normal;
  font-weight: normal;
  font-variant: normal;
  margin: 0 auto;
  width: 80%;
  max-width: 1200px;
  align-content: center;
}

.Grid_2 img {
  width: 100%; /* Make images fill their grid cells */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Ensure images fit within their containers without distortion */
  border: 0; /* Remove any default borders */
}
.Grid_3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 2;
  grid-gap: 60px;
  /* font-size: 1.3rem; */
  /* margin: 0 auto; */
  width: 80%;
  max-width: 1200px;
  /* align-content: center; */
}
.Grid_3 img {
  width: 100%; /* Make images fill their grid cells */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Ensure images fit within their containers without distortion */
  border: 0; /* Remove any default borders */
}
.Grid_5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto;
  grid-gap: 40px;
  font-size: 1em;
  margin: 0 auto;
  width: 80%;
  max-width: 1200px;
  align-content: center;
}

.Grid_5 img {
  width: 100%; /* Make images fill their grid cells */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Ensure images fit within their containers without distortion */
  border: 0; /* Remove any default borders */
}

/* Target only the .style2 elements in the first row */
.Grid_5 > .style2 {
  line-height: 1.1; /* Adjust this value to reduce spacing (default is ~1.4) */
  margin-bottom: 0.2em; /* Reduce space below the label */
  word-break: keep-all; /* Prevent unwanted word breaks */
}

/* Optional: Ensure the images stay close to their labels */
.Grid_5 > a {
  margin-top: 0; /* Remove any default spacing */
}

.label-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px; /* Same as your Grid_5 gap */
}

.label-row .style2 {
  line-height: 1.2;
  margin-bottom: 0;
}
.Grid_p_container {
  max-width: 1200px; /* Controls how wide the whole image section can get */
  margin: 0 auto; /* Centers it horizontally */
  padding: 0 20px; /* Space on left/right of screen */
}

.Grid_p {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px; /* Space between images */
}

.Grid_p {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px; /* Adjust spacing between images if needed */
}

.Grid_p img {
  height: 100%;
  max-width: 80%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 0;
  /* vertical-align: bottom; */
}

.img_block {
  flex: 1;
  text-align: center;
  /* width: 48%; */
}

figcaption {
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}
.panel {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-rows: 1fr auto;
  grid-gap: 10px;
  grid-auto-flow: dense;
}

.col-3 {
  grid-column-start: 3;
  grid-row: span 8;
}
