.msds-section {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #fdfdfd;
}

.msds-banner img,
.msds-subheader img,
.msds-full-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.msds-divider {
  border: none;
  height: 2px;
  background-color: #ccc;
  margin: 40px 0;
}

.msds-text-block {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.msds-image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0;
}

.msds-image-row img {
  flex: 1 1 45%;
  max-width: 48%;
  height: auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.msds-image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0;
}

.msds-image-grid img {
  height: 225px;
  width: auto;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  object-fit: contain;
}

.msds-download-captions {
  display: flex;
  justify-content: space-around;
  text-align: center;
  font-size: 14px;
  margin: 10px 0 40px 0;
}

.msds-download-captions div {
  flex: 1 1 45%;
}

.msds-image-row-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0;
}

.msds-image-row-3 img {
  height: 250px;
  width: auto;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  object-fit: contain;
}

/* Tablet: 2 per row */
@media (max-width: 900px) {
  .msds-image-row-3 img {
    flex: 1 1 calc(50% - 10px);
  }
}

/* Mobile: 1 per row */
@media (max-width: 600px) {
  .msds-image-row-3 img {
    flex: 1 1 100%;
  }
}

.msds-captioned-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  justify-content: space-between;
}

.msds-captioned-block {
  flex: 1 1 calc(33.33% - 14px);
  max-width: calc(33.33% - 14px);
}

.msds-captioned-block img {
  height: 250px;
  width: auto;
  max-width: 100%;
  display: block;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  object-fit: contain;
}

.msds-caption-left {
  margin-top: 10px;
  font-size: 14px;
  text-align: left;
}

@media (max-width: 900px) {
  .msds-captioned-block {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .msds-captioned-block {
    flex: 1 1 100%;
    max-width: 100%;
  }
}