.loading_wrap {
  max-width: 1920px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
  color: #555;
  font-size: 14px;
}

.loading_spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  border: 4px solid #eee;
  border-top-color: #333;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.main_filter {
    max-width: 1920px;
    margin: auto;
    padding: 15px 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 35px;
    border-bottom: 1px solid #eee;
}

.filter_btn {
    font-size: 16px;
    border-radius: 10px;
    border: none;
    padding: 5px 0px;
    cursor: pointer;
    background-color: transparent;
    font-weight: 500;
    color: #333;
}

.filter_btn.active {
    color: #333;
    padding: 5px 0px 3px 0px;
    border-radius: 0px;
    /* background-color: #8c52ff; */
    font-weight: 700;
    border-bottom: 2px solid #8c52ff;
    /* padding: 3px 18px; */
}

.main_wrap {
    max-width: 1920px;
    margin: 0 70px;
    padding-bottom: 50px;
    padding-top: 15px;
}

.masonry {
    margin: 0 auto;
    opacity: 0;
    /* 초기 상태에서는 보이지 않도록 */
    transition: opacity 0.3s ease;
}

.item {
    position: relative;
    display: none;
    justify-content: center;
    align-items: center;
    width: calc(25% - 20px);
    margin: 10px;
    box-shadow: 0px 0px 10px rgb(200, 200, 200);
    font-size: 0;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
}

.item:nth-child(-n+5) {
    display: block;
    /* 처음 20개의 아이템은 표시 */
}

.multi_icon {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
    font-size: 12px;
}

.item a {
    width: 100%;
    height: 100%;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.item:hover img {
    filter: brightness(0.3);
    transform: scale(1.05);
    transition: 0.5s ease;
}

.adItem:hover img {
    filter: unset !important;
    transform: unset !important;
    transition: unset !important;
}

.item:hover .secret_photo img {
    filter: unset;
    transform: unset;
    transition: unset;
}

/* 마우스를 올렸을 때 이름이 나타남 */
.item:hover .uploader {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 30px;
}

.item:hover .uploader:hover{
    background-color: #dccbff;
}

.item:hover .uploader:hover .uploader_img{
   box-shadow: 0px 0px 2px rgb(150, 150, 150);
}

.uploader {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: none;
    transition: 0.3s ease;
    width: fit-content;
}

.uploader_img {
    width: 20px;
    aspect-ratio: 1/1;
    border-radius: 100%;
    border: none;
    overflow: hidden;
    font-size: 0;
}

.uploader_img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(1) !important;
}

.uploader_name {
    color: #8c52ff;
    font-size: 14px;
    font-weight: 600;
}

.secret_photo {
    width: 100%;
    border-radius: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #8c52ff;
    color: white;
}

.secret_bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.m_uploader {
    display: none;
}



@media screen and (max-width: 1024px) {
    .item {
        width: calc(33.333% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .main_filter {
        padding: 15px 30px;
        gap: 25px;
        /* justify-content: center; */
    }

    .filter_btn {
        font-size: 14px;
        padding: 5px 0px;
    }

    .main_wrap {
        margin: 0 30px;
    }

    .item {
        width: calc(33.333% - 20px);
        box-shadow: none;
    }

    .item img{
        border-radius: 5px;
    }

    .item:hover img {
        filter: none;
        transform: none;
        transition: none;
    }

    .item:hover .uploader {
        display: none;
    }

    .m_uploader {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
        padding: 5px 15px;
        border: 1px solid #dadada;
        margin-top: 5px;
        border-radius: 30px;
    }

    .m_uploader_img {
        width: 22px;
        aspect-ratio: 1/1;
        border-radius: 100%;
        border: none;
        overflow: hidden;
        font-size: 0;
        box-shadow: 0px 0px 2px rgb(150, 150, 150);
    }

    .m_uploader_img img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .m_uploader_name {
        color: #8c52ff;
        font-size: 12px;
        font-weight: 500;
    }
}

@media screen and (max-width: 500px) {
    .item {
        width: calc(50% - 20px);
    }

    .secret_photo {
        font-size: 18px;
    }
}

@media screen and (max-width: 350px) {
    .item {
        width: calc(100% - 20px);
    }
}