.atlas-photo-credits-tools {
  display: grid;
  gap: 0.75rem;
  margin-block: 1rem;
}

.atlas-photo-credits-search {
  display: grid;
  gap: 0.35rem;
  max-inline-size: 32rem;
}

.atlas-photo-credits-search label {
  font-weight: 700;
}

.atlas-photo-credits-tools input[type="search"] {
  box-sizing: border-box;
  min-block-size: 44px;
  inline-size: 100%;
}

.atlas-photo-credits-results,
.atlas-photo-credits-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.atlas-photo-credits-results {
  justify-content: space-between;
  font-size: 0.875rem;
}

.atlas-photo-credits-results p {
  margin: 0;
}

.atlas-photo-credits-tools [hidden],
.atlas-photo-credits[hidden],
.atlas-photo-credits tr[hidden] {
  display: none !important;
}

.atlas-photo-credits-pages button {
  min-block-size: 44px;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.atlas-photo-credits-pages button:disabled {
  opacity: 0.55;
  cursor: default;
}

.atlas-photo-credits-tools :is(input, button):focus-visible,
.atlas-photo-credits a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

table.atlas-photo-credits {
  inline-size: 100%;
  table-layout: fixed;
  font-size: 1rem;
  line-height: 1.4;
}

.atlas-photo-credits :is(th, td) {
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.atlas-photo-credits thead th:first-child { inline-size: 36%; }
.atlas-photo-credits thead th:nth-child(2) { inline-size: 25%; }

.atlas-photo-credits tbody th {
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 700;
}

.atlas-photo-credits .atlas-credit-detail {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
}

.atlas-photo-credits a {
  display: inline-block;
  min-block-size: 24px;
  max-inline-size: 100%;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 540px) {
  .page-id-40052 .post_content h1:first-child {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem);
    line-height: 1.12;
  }

  table.atlas-photo-credits {
    font-size: 0.875rem;
  }

  .atlas-photo-credits :is(th, td) {
    padding: 0.45rem 0.35rem;
  }
}
