.galleries_scroll h4,
p {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.year_btn {
  padding: 4px 30px;
  border: none;
  background: white;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(85, 85, 85, 0.432);
  border-radius: 5px;
  transition: all 100ms ease;
}
.year_btn:hover {
  box-shadow: 0 0 8px rgba(85, 85, 85, 0.432);
}
.year_btn.active {
  background: var(--bg-primary);
  color: white;
}

.gallery_images_container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery_images_container .activites > img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 10px;
}
.activites:nth-child(n + 1) {
  animation: Evenani 0.5s linear forwards;
}
.activites:nth-child(2n + 1) {
  animation: Oddani 0.5s linear forwards;
}
@keyframes Oddani {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes Evenani {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activities_desc > h4 {
  color: grey;
  font-weight: bold;
}
.activities_desc > p {
  color: rgb(171, 171, 171);
  font-size: 14px;
  font-style: italic;
}

.paginate_btn,
.paginate_prev_btn,
.paginate_next_btn {
  width: 40px;
  height: 35px;
  border-radius: 3px;
  border-collapse: separate;
  background-color: white;
  border: 1px solid grey;
  transition: all 0.1s linear;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(85, 85, 85, 0.432);
}
.paginate_btn {
  display: none;
}
.paginate_btn.btn_show {
  display: block;
}
.next_prev_btn {
  color: var(--bg-primary);
  cursor: pointer;
}
.next_prev_btn > i {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  background-color: transparent;
}
.next_prev_btn[disabled="true"] {
  background-color: rgb(76, 76, 76);
  opacity: 0.4;
  color: white;
  cursor: not-allowed;
}
.paginate_btn:hover,
.next_prev_btn:hover,
.paginate_btn.active {
  border: none;
  background-color: var(--bg-primary);
  color: white;
  box-shadow: 0 0 13px rgba(32, 32, 32, 0.4);
}

@media screen and (min-width: 768px) and (max-width: 919px) {
  .gallery_images_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media screen and (max-width: 768px) {
  .gallery_images_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
@media screen and (max-width: 450px) {
  .gallery_images_container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
}
