.gallery-download-container {
    width: 100%;
    margin: 20px 0;
}

.gallery-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-download-item {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
	aspect-ratio: 4 / 3;
}

.gallery-download-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-download-item img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  display: block !important;
  max-width: none !important;
}


.gallery-download-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgb(255, 255, 255);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.gallery-download-btn:hover {
    background: rgb(255, 255, 255);
}

.gallery-download-all {
    text-align: center;
    padding: 20px 0;
}

.gallery-download-all-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
}

.gallery-download-all-btn:hover:not(:disabled) {
    background: #005a87;
}

.gallery-download-all-btn:disabled {
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .gallery-download-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-download-item img { height: auto; }
}

@media (max-width: 480px) {
    .gallery-download-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-download-item img { height: auto; }
}