/* User Galleries List Page CSS */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    padding: 24px 0;
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .gallery-card {
        flex: 0 0 32%; /* 3 per row on tablet */
        max-width: 32%;
        height: 200px !important;
    }
}

@media (max-width: 600px) {
    .gallery-card {
        flex: 0 0 100% !important; /* 1 per row on mobile */
        max-width: 100%;
        gap: 0;
    }
}

.gallery-card {
    flex: 0 0 32%; /* 3 per row on desktop */
    box-sizing: border-box;
    margin: 10px 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background: #222;
    cursor: pointer;
    transition: transform 0.2s;
    height: 300px;
}

.gallery-card:hover {
    transform: scale(1.03);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    display: block;
}

.gallery-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 10px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.load-more-btn {
    display: block;
    margin: 0 auto 32px auto;
    padding: 12px 32px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.load-more-btn:hover {
    background: #555;
}

.spinner {
  border: 4px solid #eee;
  border-top: 4px solid #333;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
