:root {
  --primary-color: #0070bb;
}

.sidebar-section {
  margin-top: 1.8rem;
  padding-bottom: 2rem;
  background-color: #efefef;
  border-radius: 0.75rem;
}
.sidebar-section p, .sidebar-section h2, .sidebar-section h3, .sidebar-section h4, .sidebar-section h5, .sidebar-section h6 {
  margin: 0;
}
.sidebar-section h2, .sidebar-section h3, .sidebar-section h4, .sidebar-section h5, .sidebar-section h6 {
  margin-bottom: 1.75rem;
  padding: 1.3rem 2rem;
  font-size: 1.6rem;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 0.75rem 0.75rem 0 0;
}
.sidebar-section p, .sidebar-section a, .sidebar-section h3, .sidebar-section h4, .sidebar-section h5, .sidebar-section h6 {
  line-height: 1.6;
}
.sidebar-section ul, .sidebar-section ol {
  padding: 0 2rem 0 3rem;
}
.sidebar-section ul .bordered:not(li:last-child), .sidebar-section ol .bordered:not(li:last-child) {
  border-bottom: solid 1px var(--primary-color);
}
.sidebar-section ul li h2, .sidebar-section ul li h3, .sidebar-section ul li h4, .sidebar-section ul li h5, .sidebar-section ul li h6, .sidebar-section ol li h2, .sidebar-section ol li h3, .sidebar-section ol li h4, .sidebar-section ol li h5, .sidebar-section ol li h6 {
  margin-bottom: 0;
  padding: 0;
  font-size: 1.4rem;
  font-weight: 700;
  background-color: transparent;
  color: inherit;
}
.sidebar-section ul li:not(:last-child), .sidebar-section ol li:not(:last-child) {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}
.sidebar-section ul li.bordered:not(:last-child), .sidebar-section ol li.bordered:not(:last-child) {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}
.sidebar-section ul {
  padding: 0 2rem;
  list-style-type: none;
}
.sidebar-section > ul, .sidebar-section > ol {
  max-height: 35rem;
  overflow-y: auto;
}
.sidebar-section ::-webkit-scrollbar {
  width: 8px;
  background: initial;
}
.sidebar-section ::-webkit-scrollbar-thumb {
  width: 8px;
  border-radius: 10px;
  background: lightgray;
}
.sidebar-section .pub-search-link {
  padding: 0.7rem 1.5rem;
  border: solid medium var(--primary-color);
  border-radius: 8px;
}
.sidebar-section .pub-search-link a {
  color: var(--primary-color);
}

.loading {
  margin-top: 2rem;
  padding-top: 2rem;
  width: 100%;
  text-align: center;
}

#images-container {
  width: 100%;
  max-height: 500px;
  overflow: auto;
}

#images-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
#images-grid .grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48%;
}
@media (min-width: 768px) {
  #images-grid .grid-item {
    width: 23%;
  }
}

.modal-body {
  position: relative;
}
.modal-body figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.modal-body figure img {
  width: 100%;
}
.modal-body .btn {
  position: relative;
}
.modal-body .nav-btn {
  position: absolute;
  top: 45%;
  width: 20px;
  height: 20px;
  color: #fff;
}
.modal-body .prev-btn {
  left: 2rem;
}
.modal-body .next-btn {
  right: 2rem;
}

.modal-footer a::before {
  content: " " !important;
  padding-left: 0 !important;
  left: 0 !important;
}

::-webkit-scrollbar {
  width: 8px;
  background: initial;
}

::-webkit-scrollbar-thumb {
  width: 8px;
  border-radius: 10px;
  background: lightgray;
}

.newClass {
  color: white;
}