
/* Ensure parent divs of .small-img wrap and center images */
.markdown-img-row, .small-img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: flex-start;
}

.two-img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.two-img-row img {
  width: calc(50% - 0.5rem);
  height: 260px;
  display: block;
  object-fit: cover;
}

/* Custom small image class for markdown HTML */
.small-img {
  width: 32% !important;
  height: 250px;
  display: inline-block;
  object-fit: cover;
}

.blog-prose table,
.tour-content table,
.prose table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.blog-prose th,
.blog-prose td,
.tour-content th,
.tour-content td,
.prose th,
.prose td {
  padding: 0.875rem 1rem;
  vertical-align: top;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.blog-prose thead th,
.tour-content thead th,
.prose thead th {
  background-color: rgba(0, 0, 0, 0.06);
}

.blog-prose tbody tr:nth-of-type(odd),
.tour-content tbody tr:nth-of-type(odd),
.prose tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.035);
}

.tour-content th:first-child,
.tour-content td:first-child {
  padding-right: 1rem;
}

.tour-content th:nth-child(2),
.tour-content td:nth-child(2) {
  padding-left: 1rem;
}

@media (max-width: 767.98px) {
  .two-img-row img {
    width: 100%;
    height: auto;
  }

  .small-img {
    width: 100% !important;
    height: 300px;
    margin-bottom: 16px;
    object-fit: cover;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .small-img {
    width: 31% !important;
    height: 150px !important;
    display: inline-block !important;
    object-fit: cover !important;
  }
}

