.collective-creators-wrap .collective-creators-listing {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 40px;
}

.collective-creators-wrap .collective-creators-listing .collective-creator-box {
    cursor: pointer;
}

.collective-creators-wrap .collective-creators-listing .collective-creator-box .collective-creator-img {
    text-align: center;
}

.collective-creators-wrap .collective-creators-listing .collective-creator-box .collective-creator-img img {
    max-width: 175px;
    object-fit: contain;
    width: 100%;
}

.collective-creators-wrap .collective-creators-listing .collective-creator-box h5 {
    color: #000000;
    font-family: "tenon", Sans-serif;
    font-weight: 300;
    font-size: 24px;
    text-align: center;
    margin-bottom: 0;
    margin-top: 20px;
}

.collective-creator-popup {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.collective-creator-popup .collective-creator-popup-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    max-width: 1000px;
    background-color: #000;
    transform: translateY(-50%);
    border-radius: 29px;
    overflow: hidden;
}

.collective-creator-popup-actions {
   text-align: right;
    padding-right: 50px;
    padding-top: 20px;
    padding-bottom: 0;
}

.collective-creator-popup-actions a img {
    height: 40px;
    width: 40px;
    text-decoration: none;
}

.collective-creator-popup .collective-creator-popup-content .collective-creator-gallery {
    display: none;
}

.collective-creator-popup .collective-creator-popup-content .collective-creator-gallery .images-wrapper .grid-card {
    float: left;
    width: 20%;
}

.collective-creator-popup .collective-creator-popup-content .collective-creator-gallery .all-images-holder.hide {
    display: none;
}

.collective-creator-popup .collective-creator-popup-content .collective-creator-gallery .slick-arrow {
    font-size: 0;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    outline: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    height: 30px;
    width: 30px;
    z-index: 1;
}

.collective-creator-popup .collective-creator-popup-content .collective-creator-gallery .slick-arrow.slick-next {
    left: auto;
    right: 20px;
}

.collective-creator-popup .collective-creator-popup-content .collective-creator-gallery .slick-arrow:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.collective-creator-popup .collective-creator-popup-content .collective-creator-gallery .slick-arrow.slick-prev:before {
    background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iI2ZmZiIgY2xhc3M9InNpemUtNiI+DQogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTE1Ljc1IDE5LjUgOC4yNSAxMmw3LjUtNy41IiAvPg0KPC9zdmc+DQo=');
}

.collective-creator-popup .collective-creator-popup-content .collective-creator-gallery .slick-arrow.slick-next:before {
    background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iI2ZmZiIgY2xhc3M9InNpemUtNiI+DQogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0ibTguMjUgNC41IDcuNSA3LjUtNy41IDcuNSIgLz4NCjwvc3ZnPg0K');
}

.collective-creator-gallery-mobile {
    display: none;
}

.collective-creator-gallery-desktop {
    column-count: 4;
    column-gap: 10px;
}

.collective-creator-gallery-desktop > div {
    margin: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    margin-bottom: 10px;
    break-inside: avoid;
}

.collective-creator-gallery-desktop > div img {
    grid-row: 1 / -1;
    grid-column: 1;
}

.collective-creator-gallery-desktop > div img:not(.show-img) {
    display: none;
}

@media screen and (max-width: 1024px) {
    .collective-creators-wrap .collective-creators-listing {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media screen and (max-width: 767px) {
    .collective-creators-wrap .collective-creators-listing {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .collective-creators-wrap .collective-creators-listing .collective-creator-box h5 {
        font-size: 18px;
    }
    .collective-creator-popup-actions {
        padding: 20px;
    }
    .collective-creator-popup-actions a img {
        height: 28px;
        width: 28px;
    }
    .collective-creator-popup .collective-creator-popup-content {
        max-width: 85%;
    }
    .collective-creator-popup-content-inner {
        max-height: 80vh;
        overflow-y: auto;
    }
}


/* Main CSS */
.grid-wrapper > div {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .grid-wrapper > div > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
  }

  .grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 180px;
    grid-auto-flow: dense;
    max-width: 800px;
    margin: auto;
  }
  .grid-wrapper .wide {
    grid-column: span 2;
  }
  .grid-wrapper .tall {
    grid-row: span 2;
  }
  .grid-wrapper .big {
    grid-column: span 2;
    grid-row: span 2;
  }

  .desktop-grid {
    display: grid;
  }

  .mobile-grid {
    display: none;
  }

  @media only screen and (max-width: 600px) {
    .mobile-grid {
      display: grid;
    }

    .grid-wrapper {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      grid-auto-rows: 150px;
      grid-auto-flow: dense;
    }

    .desktop-grid {
      display: none;
    }
  }