.page-atlas .container {
  max-width: 1100px;
  margin: 0 auto;
}

.atlas-title {
  text-align: center;
  margin: 28px 0 24px;
  font-size: 24px;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  padding: 0 18px;
  align-items: start;
}

.atlas-card {
  width: 100%;
  text-align: center;
}

.atlas-card img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.atlas-card h5 {
  margin: 8px 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.atlas-content {
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  color: #333;
}

.pagination {
  text-align: center;
  margin: 28px 0 20px;
}

.pagination a,
.pagination span,
.pagination strong {
  margin: 0 5px;
  font-size: 14px;
}

.pagination span {
  color: #aaa;
}

.backtotop {
  text-align: center;
  margin-bottom: 28px;
}

.atlas-view {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px 40px;
}

.atlas-view-title {
  text-align: center;
  margin: 30px 0 24px;
  font-size: 24px;
}

.atlas-view-images img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 22px;
}

.atlas-view-content {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: #222;
}

.atlas-view-nav {
  text-align: center;
  margin-top: 34px;
}

.page-atlas .header,
.page-atlas-view .header {
  min-height: auto !important;
  height: auto !important;
  background-image: none !important;
  background: #f4f4f4 !important;
  padding-bottom: 0 !important;
}

.page-atlas .navbar_under,
.page-atlas-view .navbar_under {
  margin-top: 0 !important;
}

.atlas-post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
}

.atlas-post-nav div:first-child {
  text-align: left;
}

.atlas-post-nav div:nth-child(2) {
  text-align: center;
}

.atlas-post-nav div:last-child {
  text-align: right;
}

.atlas-post-nav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #111;
  background: #fff;
}

.atlas-post-nav a:hover {
  background: #f2f2f2;
}


@media screen and (max-width: 900px) {
  .atlas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .atlas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
    padding: 0 12px;
  }
}

  .atlas-card h5 {
    font-size: 14px;
  }

  .atlas-content {
    font-size: 12px;
  }
}