.gallery-container {
    padding: 20px;

	border-radius:10px;
}

h2 {
    
    padding: 10px;
    margin-bottom: 20px;
    color: #eee;
    background-color: #444857;
    font-size: 1.2rem;
}

.top-3-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.rest-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.overlayz {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 15px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
}

.top-1, .top-2, .top-3 {
    position: relative;
}

.top-1::before, .top-2::before, .top-3::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 10px;
    background: conic-gradient(transparent 0deg, transparent 90deg, rgba(255, 255, 255, 0.8) 180deg, transparent 270deg);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.top-1::before {
    background: conic-gradient(transparent 0deg, transparent 90deg, gold 180deg, transparent 270deg);
}

.top-2::before {
    background: conic-gradient(transparent 0deg, transparent 90deg, silver 180deg, transparent 270deg);
}

.top-3::before {
    background: conic-gradient(transparent 0deg, transparent 90deg, #cd7f32 180deg, transparent 270deg);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.last-updated {
    color: #6c757d;
    font-size: 12px;
    text-align: center;
    margin-bottom: 10px;
}

@media (max-width: 576px) {
    .top-3-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}