/* remix_grid.css */

.remix-grid-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media screen and (max-width: 999px) {
  .remix-grid-container {
    gap: 40px;
  }

  .remix-grid-element {
    width: 100%;
  }
}

@media screen and (min-width: 992px) {
  .remix-grid-container {
    gap: 10px;
  }

  .remix-grid-element {
    width: calc(20% - 10px);
  }
  .remix-grid-element img {
    aspect-ratio: 1;
    object-fit: cover;
  }
}
.remix-grid-element .imgs {
  position: relative;
  margin: 0;
  padding: 0;
}

.remix-grid-element .thumb {
  cursor: pointer;
  width: 100%;
  border-radius: 10px;
  margin: 0;
  padding: 0;
  transition: filter ease-in 0.3s;
}

.remix-grid-element .icon {
  cursor: pointer;
  position: absolute;
  width: 80px;
  top: calc(50% - 40px);
  left: calc(50% - 40px);
  margin: 0;
  padding: 0;
  transition: transform ease-in 0.3s;
}

.remix-grid-element:hover .icon {
  transform: scale(1.3);
}
.remix-grid-element:hover .thumb {
  filter: brightness(1.3);
}

.remix-grid-element h3 {
  cursor: pointer;
}

.remix-grid-modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.remix-grid-modal .modal-content {
  background-color: none;
  margin: 15% auto;
  padding: 20px;
  border: none;
  width: 650px;
  max-width: 90%;
  text-align: center;
  position: relative;
}

.remix-grid-modal .close {
  position: absolute;
  right: -30px;
  top: -30px;
  color: #aaa;
  float: right;
  font-size: 38px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.9);
  line-height: 38px;
  border-radius: 30px;
  height: 40px;
  width: 40px;
}

.remix-grid-modal .close:hover,
.remix-grid-modal .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.remix-grid-pagination {
  width: 100%;
  text-align: center;
}
.remix-grid-pagination ul {
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  gap: 8px;
}

.remix-grid-pagination .page-link {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  margin-left: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  font-family: sans-serif;
  border-radius: .375rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  background-color: #fafafa;
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #e8e8e9;
  border-radius: 50px;
}
.remix-grid-pagination .active>.page-link {
  color: #fff;
  background-color: #31c77f;
}
.remix-grid-pagination:has(.change-filter) {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 5px;
}
.remix-grid-pagination .change-filter {
  color: #000;
  font-size: 18px;
  padding: 10px 15px;
  background-color: #fff;
  border: 1px solid #e8e8e9;
  border-radius: 5px;
  font-family: sans-serif;
  cursor: pointer;
  transition: all ease-in 0.5s;
}
.remix-grid-pagination .change-filter.active {
  border: 1px solid #31c77f;
  box-shadow: 5px 5px 5px 0px rgba(49,199,127,0.75);
  -webkit-box-shadow: 5px 5px 5px 0px rgba(49,199,127,0.75);
  -moz-box-shadow: 5px 5px 5px 0px rgba(49,199,127,0.75);
}